From 34a33565c846cd84d3b580181d9b4bf367366f60 Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Fri, 1 Jan 2021 08:06:04 +0100 Subject: [PATCH] Fix loadBlob in filerestorer --- internal/restorer/filerestorer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restorer/filerestorer.go b/internal/restorer/filerestorer.go index 7e9149e36..0b245569c 100644 --- a/internal/restorer/filerestorer.go +++ b/internal/restorer/filerestorer.go @@ -319,7 +319,7 @@ func (r *fileRestorer) loadBlob(rd io.Reader, blobID restic.ID, length int, buf buf = buf[:length] } - n, err := rd.Read(buf) + n, err := io.ReadFull(rd, buf) if err != nil { return nil, nil, err }