From: Glenn L McGrath Date: Mon, 30 Sep 2002 05:30:29 +0000 (-0000) Subject: Save status so we know if to delete compressed file X-Git-Tag: 0_60_5~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c99581880a40ab8a41b66b2970907e11a22858c;p=oweals%2Fbusybox.git Save status so we know if to delete compressed file --- diff --git a/archival/gunzip.c b/archival/gunzip.c index 6ec5c69ae..ca7e343cc 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c @@ -174,7 +174,8 @@ extern int gunzip_main(int argc, char **argv) #endif if (magic2 == 0x8b) { check_header_gzip(src_fd); - if (inflate(src_fd, dst_fd) != 0) { + status = inflate(src_fd, dst_fd); + if (status != 0) { error_msg("Error inflating"); } check_trailer_gzip(src_fd);