summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-03-06 15:09:39 +0000
committerPeter Palfrader <peter@palfrader.org>2006-03-06 15:09:39 +0000
commit58a5d519cb8baa37226d3bab2f77d3bb703e0a5e (patch)
treec9fa976ab7e18f2440063ad068923ce469cd955c /debian
parent181f2dea636ae7da72f47819427570f18b2e4ea6 (diff)
So, using »-c "$DAEMON $@"« does not really work. So let's build a command with some
while loop magic.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/echolot.init7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/echolot.init b/debian/echolot.init
index bb8986d..9768148 100755
--- a/debian/echolot.init
+++ b/debian/echolot.init
@@ -145,7 +145,12 @@ process|add|delete|set|setremailercaps|deleteremailercaps|getkeyconf|sendpings|s
if [ "$CUIDNAME" = "$USER" ]; then
"$DAEMON" "$@"
elif [ "$CUID" = "0" ]; then
- su "$USER" -c "$DAEMON $@"
+ command="$DAEMON"
+ while [ "$#" -gt 0 ]; do
+ command="$command \"$1\""
+ shift
+ done
+ su "$USER" -c "$command"
else
echo "You are neither $USER nor root. Aborting." >&2
exit 1;