From: Hans Dedecker Date: Tue, 12 Jul 2016 12:23:58 +0000 (+0200) Subject: netifd: quote vendorid and hostname variables in dhcp script X-Git-Tag: v17.01.0-rc1~2087 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=99e5bec2c6da0f676f6662cabab4602854d54012;p=oweals%2Fopenwrt.git netifd: quote vendorid and hostname variables in dhcp script Quote hostname and vendorid variables in dhcp script so they can hold strings having white spaces Signed-off-by: Hans Dedecker --- diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh index 7085bd2aa6..abfdaaffdd 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -56,8 +56,8 @@ proto_dhcp_setup() { -s /lib/netifd/dhcp.script \ -f -t 0 -i "$iface" \ ${ipaddr:+-r $ipaddr} \ - ${hostname:+-H $hostname} \ - ${vendorid:+-V $vendorid} \ + ${hostname:+-H "$hostname"} \ + ${vendorid:+-V "$vendorid"} \ $clientid $broadcast $release $dhcpopts }