dnsmasq: prevent bad command line error when a dhcp pool has ignore set and the corre...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 03:52:04 +0000 (03:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 03:52:04 +0000 (03:52 +0000)
SVN-Revision: 20048

package/dnsmasq/files/dnsmasq.init

index 7955fdb0ecb85245b329eec7d913f1a105b95fd5..0c038b7d3101d529e8954b1304177b2a050bd56a 100644 (file)
@@ -235,7 +235,7 @@ dhcp_add() {
                DNS_SERVERS="$DNS_SERVERS $dnsserver"
        }
 
-       append_bool "$cfg" ignore "-2 $ifname" && return 0
+       append_bool "$cfg" ignore "-2 '$ifname'" && return 0
 
        config_get proto "$net" proto
        [ static = "$proto" ] || return 0