1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00

repair pack: add support for truncated files

This commit is contained in:
Michael Eischer 2024-01-20 21:54:27 +01:00
parent 7c351bc53c
commit 764b0bacd6

View file

@ -44,7 +44,8 @@ func RepairPacks(ctx context.Context, repo restic.Repository, ids restic.IDSet,
}
return err
})
if err != nil {
// ignore truncated file parts
if err != nil && !errors.Is(err, io.ErrUnexpectedEOF) {
return err
}
bar.Add(1)