Don't delete the tmpinfile when decompressing from stdin before allowing seek to end to succeed in checking md5

This commit is contained in:
Con Kolivas 2015-03-03 13:38:51 +11:00
parent 3f746d5d60
commit b48c3b2ee4

View file

@ -388,7 +388,7 @@ i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 exp
return -1; } return -1; }
if (TMP_INBUF) if (TMP_INBUF)
clear_tmpinbuf(control); clear_tmpinbuf(control);
else if (STDIN) else if (STDIN && !DECOMPRESS)
if (unlikely(!clear_tmpinfile(control))) if (unlikely(!clear_tmpinfile(control)))
return -1; return -1;
} while (total < expected_size || (!expected_size && !control->eof)); } while (total < expected_size || (!expected_size && !control->eof));