From 773df5436cd2f000a85ed4a1a84822b89d81ff3e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 16 Apr 2015 15:28:01 +1000 Subject: [PATCH] Fix false warning on compressing from stdin without keep files --- lrzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrzip.c b/lrzip.c index 4a69b6f..2e9a028 100644 --- a/lrzip.c +++ b/lrzip.c @@ -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); }