Package: dpkg
Version: 1.15.8.12
Severity: normal
File: /sbin/start-stop-daemon
When specifying arguments with whitespace in /etc/default/foo,
start-stop-daemon will break these when passing them to the daemon:
/etc/default/foo
ARGS="-c 'bar quux'"
/etc/init.d/foo
start-stop-daemon --start --quiet --exec $DAEMON -- $ARGS
The daemon will then parse it's options as:
op=/c/
optarg=/'bar /
(slashes added to mark begining and end of text)
The only workaround I found so far is:
/etc/default/foo
ARGS="-a -b"
C="bar quux"
/etc/init.d/foo
[ -n "$C" ] && ARGS="$ARGS -c"
start-stop-daemon --start --quiet --exec $DAEMON -- $ARGS "$C"
Regards
Stefan
-- System Information:
Debian Release: 6.0.5
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-xen-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dpkg depends on:
ii coreutils 8.5-1 GNU core utilities
ii libbz2-1.0 1.0.5-6+squeeze1 high-quality block-sorting file co
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
ii xz-utils 5.0.0-2 XZ-format compression utilities
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 0.8.10.3+squeeze1 Advanced front-end for dpkg
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]