really fix su command

This commit is contained in:
Joey Hess 2016-12-24 13:23:52 -04:00
parent d6b401c458
commit c89a9e6ca5
No known key found for this signature in database
GPG key ID: C910D9222512E3C7

View file

@ -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])
]