tags: +patch
thanks
I attach the patch to fix it
diff -u dhcpcd-3.2.3/debian/config dhcpcd-3.2.3/debian/config
--- dhcpcd-3.2.3/debian/config
+++ dhcpcd-3.2.3/debian/config
@@ -21,7 +21,7 @@
#SET_YP='yes'
# Add other options here, see man 8 dhcpcd-bin for details.
-OPTIONS=''
+OPTIONS=()
;;
# Add other interfaces here
diff -u dhcpcd-3.2.3/debian/dhcpcd dhcpcd-3.2.3/debian/dhcpcd
--- dhcpcd-3.2.3/debian/dhcpcd
+++ dhcpcd-3.2.3/debian/dhcpcd
@@ -64,12 +64,12 @@
. /etc/default/dhcpcd
fi
-for o in $OPTIONS
+for o in "${optio...@]}"
do
- if [ $o = "-h" ]; then
+ if [ "$o" = "-h" ]; then
sendhost=no
fi
- if [ $o = "-H" ]; then
+ if [ "$o" = "-H" ]; then
sethost=yes
fi
if [ x"$o" = x"-I" ]; then
@@ -77,12 +77,11 @@
fi
done
-
# Note that in the absence of /etc/default/dhcpcd we play safe and disallow
# changes to /etc/resolv.conf and friends.
if [ "$SET_DNS" != "yes" ]; then
- OPTIONS="-R $OPTIONS"
+ OPTIONS=("-R" "${optio...@]}")
fi
#if [ "$SET_DOMAIN" = "yes" ]; then
@@ -90,16 +89,16 @@
#fi
if [ "$SET_HOSTNAME" = "yes" ]; then
- OPTIONS="-H $OPTIONS"
+ OPTIONS=("-H" "${optio...@]}")
sethost=yes
fi
if [ "$SET_NTP" != "yes" ]; then
- OPTIONS="-N $OPTIONS"
+ OPTIONS=("-N" "${optio...@]}")
fi
if [ "$SET_YP" != "yes" ]; then
- OPTIONS="-Y $OPTIONS"
+ OPTIONS=("-Y" "${optio...@]}")
fi
# We tell dhcpcd to send the hostname iff the option is not
@@ -114,14 +113,13 @@
if [ ${#name} != 0 ]; then
- OPTIONS="-h $name $OPTIONS"
+ OPTIONS=("-h" "$name" "${optio...@]}")
fi
fi
-
# if we have been upgraded, /etc/dhcpc/inhibit-duid will exist,
# so for the client-id to be backwards compatible unless explicitly set
if [ $setclid = yes ] &&
[ -f /etc/dhcpc/inhibit-duid ]; then
- exec /sbin/dhcpcd-bin -I '' $OPTIONS "$@"
+ exec /sbin/dhcpcd-bin -I '' "${optio...@]}" "$@"
else
- exec /sbin/dhcpcd-bin $OPTIONS "$@"
+ exec /sbin/dhcpcd-bin "${optio...@]}" "$@"
fi