From b48c3b2ee4eb44ff33d9212a84f40942b98cde55 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 3 Mar 2015 13:38:51 +1100 Subject: [PATCH] Don't delete the tmpinfile when decompressing from stdin before allowing seek to end to succeed in checking md5 --- runzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runzip.c b/runzip.c index 58702cd..20e54ea 100644 --- a/runzip.c +++ b/runzip.c @@ -388,7 +388,7 @@ i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 exp return -1; } if (TMP_INBUF) clear_tmpinbuf(control); - else if (STDIN) + else if (STDIN && !DECOMPRESS) if (unlikely(!clear_tmpinfile(control))) return -1; } while (total < expected_size || (!expected_size && !control->eof));