From 58a5d519cb8baa37226d3bab2f77d3bb703e0a5e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 6 Mar 2006 15:09:39 +0000 Subject: =?UTF-8?q?So,=20using=20=C2=BB-c=20"$DAEMON=20$@"=C2=AB=20does=20?= =?UTF-8?q?not=20really=20work.=20=20So=20let's=20build=20a=20command=20wi?= =?UTF-8?q?th=20some=20while=20loop=20magic.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/echolot.init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3