mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Fix false warning on compressing from stdin without keep files
This commit is contained in:
parent
591e106d57
commit
773df5436c
2
lrzip.c
2
lrzip.c
|
|
@ -1217,7 +1217,7 @@ bool compress_file(rzip_control *control)
|
||||||
if (TMP_OUTBUF)
|
if (TMP_OUTBUF)
|
||||||
close_tmpoutbuf(control);
|
close_tmpoutbuf(control);
|
||||||
|
|
||||||
if (!KEEP_FILES) {
|
if (!KEEP_FILES && !STDIN) {
|
||||||
if (unlikely(unlink(control->infile)))
|
if (unlikely(unlink(control->infile)))
|
||||||
fatal_return(("Failed to unlink %s\n", control->infile), false);
|
fatal_return(("Failed to unlink %s\n", control->infile), false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue