This commit is contained in:
Joey Hess 2017-11-16 12:54:42 -04:00
parent 5a4733c5a6
commit 9c7f168e89
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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)