Fix false warning on decompressing from stdin without keep files

This commit is contained in:
Con Kolivas 2015-04-16 15:31:23 +10:00
parent 773df5436c
commit 0005c1cd95

View file

@ -820,7 +820,7 @@ bool decompress_file(rzip_control *control)
close(fd_in);
if (!KEEP_FILES) {
if (!KEEP_FILES && !STDIN) {
if (unlikely(unlink(control->infile)))
fatal_return(("Failed to unlink %s\n", infilecopy), false);
}