fix windows build
authorJoey Hess <joeyh@joeyh.name>
Fri, 30 Dec 2016 15:37:24 +0000 (11:37 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 30 Dec 2016 15:37:24 +0000 (11:37 -0400)
Utility/Su.hs

index ace8cbf3e38fe94ddac5e086ea9a80187530bbd5..464c8aaf517eeab03f450c90bf7eeaf174f72a6b 100644 (file)
@@ -98,5 +98,5 @@ mkSuCommand cmd ps = firstM (\(SuCommand _ p _) -> inPath p) =<< selectcmds
        shellcmd = unwords $ map shellEscape (cmd:toCommand ps)
 #else
 -- For windows, we assume the user has administrator access.
-mkSuCommand cmd ps = SuCommand NoPromptPassword cmd ps
+mkSuCommand cmd ps = return $ SuCommand NoPromptPassword cmd ps
 #endif