diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-03-06 14:44:58 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2006-03-06 14:44:58 +0000 |
commit | e7213fc062586bbcf8e2e104a3a6a668617be477 (patch) | |
tree | 3ac9133df81d628694ce1447012b4564dbfb9810 /debian/echolot.init | |
parent | 7fbf202942d076189c89ba457a891951bf7fe58e (diff) |
Properly quote arguments to su -c, since its behaviour has changed.
Diffstat (limited to 'debian/echolot.init')
-rwxr-xr-x | debian/echolot.init | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/echolot.init b/debian/echolot.init index fc14c63..6d4d121 100755 --- a/debian/echolot.init +++ b/debian/echolot.init @@ -139,14 +139,13 @@ reload|force-reload|restart) ;; process|add|delete|set|setremailercaps|deleteremailercaps|getkeyconf|sendpings|sendchainpings|buildstats|buildkeys|buildthesaurus|buildfromlines|dumpconf|summary|enable|disable) # Check for right User - SU="" if [ "$CHECKUID" -gt "0" ]; then CUID=`id -u` CUIDNAME=`id -nu` if [ "$CUIDNAME" = "$USER" ]; then - SU="" + $DAEMON "$@" elif [ "$CUID" = "0" ]; then - SU="su $USER -c" + su $USER -c "$DAEMON $@" else echo "You are neither $USER nor root. Aborting." >&2 exit 1; @@ -154,7 +153,6 @@ process|add|delete|set|setremailercaps|deleteremailercaps|getkeyconf|sendpings|s fi echo "Running $DESC: $NAME $1..." - $SU $DAEMON "$@" echo "done." ;; *) |