archiver: Fix blocking on pipes

This commit is contained in:
Alexander Neumann 2018-04-30 15:31:08 +02:00
parent 19b9c881ca
commit c83c03ed63
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous
var fi os.FileInfo
var errFI error
file, errOpen := arch.FS.OpenFile(target, fs.O_RDONLY|fs.O_NOFOLLOW, 0)
file, errOpen := arch.FS.OpenFile(target, fs.O_RDONLY|fs.O_NOFOLLOW|fs.O_NONBLOCK, 0)
if errOpen == nil {
fi, errFI = file.Stat()
}