Fix false warning on compressing from stdin without keep files

This commit is contained in:
Con Kolivas 2015-04-16 15:28:01 +10:00
parent 591e106d57
commit 773df5436c

View file

@ -1217,7 +1217,7 @@ bool compress_file(rzip_control *control)
if (TMP_OUTBUF)
close_tmpoutbuf(control);
if (!KEEP_FILES) {
if (!KEEP_FILES && !STDIN) {
if (unlikely(unlink(control->infile)))
fatal_return(("Failed to unlink %s\n", control->infile), false);
}