mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 00:06:32 +00:00
Ignore ErrUnexpectedEOF for io.ReadFull
This commit is contained in:
parent
ba20ed6ef7
commit
b1923063fe
@ -167,7 +167,7 @@ func (arch *Archiver) SaveFile(node *Node) error {
|
|||||||
buf := GetChunkBuf("blob single file")
|
buf := GetChunkBuf("blob single file")
|
||||||
defer FreeChunkBuf("blob single file", buf)
|
defer FreeChunkBuf("blob single file", buf)
|
||||||
n, err := io.ReadFull(file, buf)
|
n, err := io.ReadFull(file, buf)
|
||||||
if err != nil {
|
if err != nil && err != io.ErrUnexpectedEOF {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user