]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.ip
network fix parameter passing when using ""
[people/stevee/network.git] / src / functions / functions.ip
index d6fd76dc3ae78e58f761c880431dba0e20accdb6..3b43da77a3a39b367587cb8347e0cd939779e7cb 100644 (file)
@@ -114,13 +114,13 @@ ip_prefix_is_valid() {
 }
 
 ip_get_network() {
-       inetcalc -n $@ && return ${EXIT_OK} || return ${EXIT_ERROR}
+       inetcalc -n "$@" && return ${EXIT_OK} || return ${EXIT_ERROR}
 }
 
 ip_network_is_subset_of() {
        assert [ $# -eq 2 ]
 
-       inetcalc -s $@ && return ${EXIT_TRUE} || return ${EXIT_FALSE}
+       inetcalc -s "$@" && return ${EXIT_TRUE} || return ${EXIT_FALSE}
 }
 
 ip_address_add() {