mirror of https://github.com/containers/podman.git
When the file is empty it is possible our code panics as bar.ProxyReader returns nil when the bar is finished which is the case for 0 size as it doesn't have to read anything from there. However as this happens on different goroutines it is race and most of the time still works. To fix this simply skip the progress bar setup for empty files. While at it fix the deprecated argument in the tests. Fixes #23281 Signed-off-by: Paul Holzinger <pholzing@redhat.com> |
||
---|---|---|
.. | ||
testdata | ||
compression_test.go | ||
config.go | ||
copy_test.go | ||
decompress.go | ||
generic.go | ||
sparse_file_writer.go | ||
sparse_file_writer_test.go | ||
uncompressed.go | ||
zip.go |