From c27c0ad208919590a118d5f271d28b044beea9bb Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 12 Feb 2009 18:59:01 -0500 Subject: [PATCH] fix the su_monkeysphere_user function so that it does 'bash -c' instead of 'eval', if the user already is the monkeysphere user, so that a proper subshell is invoked. --- src/share/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/common b/src/share/common index d60631e..42df684 100644 --- a/src/share/common +++ b/src/share/common @@ -95,7 +95,7 @@ su_monkeysphere_user() { # if the current user is the monkeysphere user, then just eval # command if [ $(id -un) = "$MONKEYSPHERE_USER" ] ; then - eval "$@" + bash -c "$@" # otherwise su command as monkeysphere user else -- 2.25.1