From 90166e0bb8e4ebc1c1174d9bc2021c604b7a1bd7 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Mon, 4 Oct 2010 00:37:29 -0400 Subject: fix need for only single argument to gpg_sphere The use of $* instead of $@ in the call to su_monkeysphere_user is what we want to not split the input to the bash subcalls into separate words. --- src/share/common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/share') diff --git a/src/share/common b/src/share/common index 50c9f61..34ac52d 100644 --- a/src/share/common +++ b/src/share/common @@ -103,12 +103,12 @@ su_monkeysphere_user() { case $(id -un) in # if monkeysphere user, run the command under bash "$MONKEYSPHERE_USER") - bash -c "$@" + bash -c "$*" ;; # if root, su command as monkeysphere user 'root') - su "$MONKEYSPHERE_USER" -c "$@" + su "$MONKEYSPHERE_USER" -c "$*" ;; # otherwise, fail -- cgit v1.2.3