projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf6c5d5
)
fix windows build
author
Joey Hess
<joeyh@joeyh.name>
Fri, 30 Dec 2016 15:37:24 +0000
(11:37 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Fri, 30 Dec 2016 15:37:24 +0000
(11:37 -0400)
Utility/Su.hs
patch
|
blob
|
history
diff --git
a/Utility/Su.hs
b/Utility/Su.hs
index ace8cbf3e38fe94ddac5e086ea9a80187530bbd5..464c8aaf517eeab03f450c90bf7eeaf174f72a6b 100644
(file)
--- a/
Utility/Su.hs
+++ b/
Utility/Su.hs
@@
-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