From: Jameson Graef Rollins Date: Thu, 12 Feb 2009 23:59:01 +0000 (-0500) Subject: fix the su_monkeysphere_user function so that it does 'bash -c' instead of 'eval... X-Git-Tag: monkeysphere_0.23~101 X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=commitdiff_plain;h=c27c0ad208919590a118d5f271d28b044beea9bb 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. --- 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