summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-12-24 13:23:52 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-12-24 13:23:52 -0400
commit2aba1975e8192e7c60ef85118b40654b60cad027 (patch)
tree2fae8a75b0983168ef0988ba404a5021cbc41003 /Utility
parente69496587ef2c7e59075f44ccef523da470553cc (diff)
really fix su command
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Su.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Su.hs b/Utility/Su.hs
index 97dc789d4..44a95c39f 100644
--- a/Utility/Su.hs
+++ b/Utility/Su.hs
@@ -45,7 +45,7 @@ runAsRoot cmd ps = go =<< firstM (inPath . fst) =<< selectcmds
-- These will only work when run in a console.
consolecmds =
- [ ("su", [Param "-c", Param cmd, Param "--"] ++ ps)
+ [ ("su", [Param "-c", Param shellcmd])
, ("sudo", [Param cmd] ++ ps)
, ("su-to-root", [Param "-c", Param shellcmd])
]