aboutsummaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 7884f0477..2db6e279d 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -563,15 +563,15 @@ recordStartTime :: UUID -> Annex ()
recordStartTime u = do
f <- fromRepo (gitAnnexFsckState u)
createAnnexDirectory $ parentDir f
- liftIO $ do
- nukeFile f
- withFile f WriteMode $ \h -> do
+ liftIO $ nukeFile f
+ liftIO $ withFile f WriteMode $ \h -> do
#ifndef mingw32_HOST_OS
- t <- modificationTime <$> getFileStatus f
+ t <- modificationTime <$> getFileStatus f
#else
- t <- getPOSIXTime
+ t <- getPOSIXTime
#endif
- hPutStr h $ showTime $ realToFrac t
+ hPutStr h $ showTime $ realToFrac t
+ setAnnexFilePerm f
where
showTime :: POSIXTime -> String
showTime = show