aboutsummaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-11-16 12:54:42 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-11-16 12:54:42 -0400
commit56749d75a54a7791f39450dd383bbfc6d1fe0c5b (patch)
tree07014ca956aea8b566e02e730a4605b1b8f36dea /Annex
parent37df6db0b25f0a70bc9916b3f94637b6d11ef596 (diff)
typo
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Perms.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Perms.hs b/Annex/Perms.hs
index cfd25a5ee..1ce342911 100644
--- a/Annex/Perms.hs
+++ b/Annex/Perms.hs
@@ -112,7 +112,7 @@ isContentWritePermOk file = ifM crippledFileSystem
go AllShared = want writeModes
go _ = return True
want wantmode = do
- liftIO $ catchMaybeIO $ fileMode <$> getFileStatus file
+ mmode <- liftIO $ catchMaybeIO $ fileMode <$> getFileStatus file
return $ case mmode of
Nothing -> True
Just havemode -> havemode == combineModes (havemode:wantmode)