summaryrefslogtreecommitdiffstats
path: root/monkeysphere.sutosudo.patch
blob: b5c1b1906c65e18363dac6b9913c355e298bded1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/share/common	2010-11-14 00:34:09.000000000 +0100
+++ src/share/common	2012-07-18 13:11:35.614304738 +0200
@@ -108,7 +108,7 @@ su_monkeysphere_user() {
 
          # if root, su command as monkeysphere user
 	'root')
-	    su "$MONKEYSPHERE_USER" -c "$*"
+	    sudo -u "$MONKEYSPHERE_USER" -E "$*"
 	    ;;
 
 	# otherwise, fail