tags 500806 patch
thanks

also sprach Pierre Habouzit <madco...@debian.org> [2009.01.15.2330 +0100]:
> +            exec su -c "$username" '"$0" -c "${configfile}" "$@"'

This does not work:

+ exec su -c nsd '"$0" -c "${configfile}" "$@"'
Unknown id: "$0" -c "${configfile}" "$@"


Instead, you need to move the -c after the username, invert the
quotes, and specify the shell (since the user may have a /bin/false
shell). You won't need the shell if you don't use quotes in the
argument, but it doesn't hurt, so:

  exec su "$username" -s$SHELL -c "$0 -c \"$configfile\" $@"

With that, the lenny version of the package does the right thing.

Thanks,

-- 
 .''`.   martin f. krafft <madd...@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
ubuntu is an ancient african word meaning "i can't install debian."
                                                          -- unknown

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to