diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-12 18:59:01 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-12 18:59:01 -0500 |
commit | c27c0ad208919590a118d5f271d28b044beea9bb (patch) | |
tree | 29a67e00dd558ea96ddd9cbd5b1d26b3001e59a7 /src/share/common | |
parent | 65e8a49c924eac3c46c93cb4bb9be9c739a58983 (diff) |
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.
Diffstat (limited to 'src/share/common')
-rw-r--r-- | src/share/common | 2 |
1 files changed, 1 insertions, 1 deletions
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 |