summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;