diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-12-24 13:08:07 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-12-24 13:08:07 -0400 |
commit | 1fae41c46078cc3050463e78233fcba1e931f84d (patch) | |
tree | 62f2a076262db446adfb828e63b829cd283fd08c /Utility | |
parent | 62150ad7d3548e080e7fbe4d7e7a98a4f84c05d6 (diff) |
fix su params
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Su.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Su.hs b/Utility/Su.hs index 001a09fbc..97dc789d4 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 "--", Param cmd] ++ ps) + [ ("su", [Param "-c", Param cmd, Param "--"] ++ ps) , ("sudo", [Param cmd] ++ ps) , ("su-to-root", [Param "-c", Param shellcmd]) ] |