diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-06 21:24:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-06 21:24:34 -0400 |
commit | b1f4078dfbbcc0382ebb8b6dfb18e3d39c93cfd1 (patch) | |
tree | 0399c54888c8d230f00203039c9cb1c215a0d011 /Utility | |
parent | 445fde844662d32f2ab04116c8c1098e57660adc (diff) |
Revert "don't use writeFileProtected on windows"
This reverts commit 5a795c7f7b12429a7003c27e740579248c94a628.
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/FileMode.hs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Utility/FileMode.hs b/Utility/FileMode.hs index cbc960a4a..46c6a31f5 100644 --- a/Utility/FileMode.hs +++ b/Utility/FileMode.hs @@ -133,7 +133,6 @@ setSticky f = modifyFileMode f $ addModes [stickyMode] - as writeFile. -} writeFileProtected :: FilePath -> String -> IO () -#ifndef mingw32_HOST_OS writeFileProtected file content = do h <- openFile file WriteMode void $ tryIO $ @@ -141,6 +140,3 @@ writeFileProtected file content = do removeModes [groupReadMode, otherReadMode] hPutStr h content hClose h -#else -writeFileProtected = writeFile -#endif |