From 58a5d519cb8baa37226d3bab2f77d3bb703e0a5e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 6 Mar 2006 15:09:39 +0000 Subject: So, using »-c "$DAEMON $@"« does not really work. So let's build a command with some while loop magic. 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