summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
Diffstat (limited to 'Annex')
-rw-r--r--Annex/LockFile.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/LockFile.hs b/Annex/LockFile.hs
index c527d2ec0..14aa293ae 100644
--- a/Annex/LockFile.hs
+++ b/Annex/LockFile.hs
@@ -36,7 +36,7 @@ lockFileShared file = go =<< fromLockPool file
#ifndef mingw32_HOST_OS
mode <- annexFileMode
lockhandle <- liftIO $ noUmask mode $
- openFd file ReadOnly (Just mode) defaultFileFlags
+ openFd file ReadWrite (Just mode) defaultFileFlags
liftIO $ setFdOption lockhandle CloseOnExec True
liftIO $ waitToSetLock lockhandle (ReadLock, AbsoluteSeek, 0, 0)
#else