This commit is contained in:
Joey Hess 2018-06-21 20:54:02 -04:00
parent 9faef71650
commit eb8a8976a9
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -325,6 +325,13 @@ getViaTmpFromDisk rsp v key action = checkallowed $ do
)
, do
warning "verification of content failed"
-- The bad content is not retained, because
-- a retry should not try to resume from it
-- since it's apparently corrupted.
-- Also, the bad content could be any data,
-- including perhaps the content of another
-- file than the one that was requested,
-- and so it's best not to keep it on disk.
pruneTmpWorkDirBefore tmpfile (liftIO . nukeFile)
return False
)