summaryrefslogtreecommitdiff
path: root/Backend/SHA.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-10 11:43:28 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-10 11:43:28 -0400
commit9a272815ddd33272008a4052ea74e7bbc4c842f8 (patch)
tree60ee20c1826133c1fe9c774fac5a78ea21ecd8d3 /Backend/SHA.hs
parent90dd245522ccffee0e77eba3b79e32d6029977fc (diff)
Bugfix: Fix fsck to not think all SHAnE keys are bad.
Diffstat (limited to 'Backend/SHA.hs')
-rw-r--r--Backend/SHA.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/SHA.hs b/Backend/SHA.hs
index 94ebe093e..8ed00b707 100644
--- a/Backend/SHA.hs
+++ b/Backend/SHA.hs
@@ -119,7 +119,7 @@ checkKeyChecksum size key = do
then return True
else do
s <- shaN size file
- if s == keyName key
+ if s == dropExtension (keyName key)
then return True
else do
dest <- moveBad key