[source] netifd: quote vendorid and hostname variables in dhcp script

LEDE Commits lede-commits at lists.infradead.org
Tue Jul 12 05:34:33 PDT 2016


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=99e5bec2c6da0f676f6662cabab4602854d54012

commit 99e5bec2c6da0f676f6662cabab4602854d54012
Author: Hans Dedecker <dedeckeh at gmail.com>
AuthorDate: Tue Jul 12 14:23:58 2016 +0200

    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 <dedeckeh at gmail.com>
---
 package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 7085bd2..abfdaaf 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
 }
 



More information about the lede-commits mailing list