summaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 8f33493b5..666245517 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -203,7 +203,8 @@ fixLink key file = do
showNote "fixing content location"
dir <- liftIO $ parentDir <$> absPath file
let content = absPathFrom dir have
- liftIO $ allowWrite (parentDir content)
+ unlessM crippledFileSystem $
+ liftIO $ allowWrite (parentDir content)
moveAnnex key content
showNote "fixing link"