Package: dhcpcd
Version: 1:1.3.22pl4-20
Severity: important
Tags: patch

Specifying an option containing spaces (for example using "vendor" in
/etc/network/interfaces) causes some "[: too many arguments" messages
and failure on dhcpcd-bin invocation. The attached patch hopefully fixes
both problems.

regards,

Marcin

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-k7
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages dhcpcd depends on:
ii  bsdutils                    1:2.12p-3    Basic utilities from 4.4BSD-Lite
ii  ifupdown                    0.6.4-4.12   high level tools to configure netw
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
--- debian/dhcpcd.orig  2005-03-22 15:51:37.000000000 +0100
+++ debian/dhcpcd       2005-03-22 15:53:06.000000000 +0100
@@ -29,16 +29,13 @@
 
 for o 
 do
-   if [ $o = "-k" ]; then
+   if [ x"$o" = x"-k" ]; then
       keeppid=yes
-   fi
-   if [ $o = "-n" ]; then
+   elif [ x"$o" = x"-n" ]; then
       keeppid=yes
-   fi
-   if [ $o = "-h" ]; then
+   elif [ x"$o" = x"-h" ]; then
       sendhost=no
-   fi
-   if [ $o = "-H" ]; then
+   elif [ x"$o" = x"-H" ]; then
       sethost=yes
    fi
 done
@@ -109,4 +106,4 @@
    fi
 fi
 
-exec /sbin/dhcpcd-bin $OPTIONS $*
+exec /sbin/dhcpcd-bin $OPTIONS "$@"

Reply via email to