summaryrefslogtreecommitdiff
path: root/archival/gunzip.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-09-30 05:30:29 +0000
committerGlenn L McGrath2002-09-30 05:30:29 +0000
commit5c99581880a40ab8a41b66b2970907e11a22858c (patch)
treef819cf1c0ac0fa28f9fc2ec34f083fbb0b40c0f1 /archival/gunzip.c
parent924f93e848c507c92beb1b106c7c52e428d3c2c2 (diff)
downloadbusybox-5c99581880a40ab8a41b66b2970907e11a22858c.zip
busybox-5c99581880a40ab8a41b66b2970907e11a22858c.tar.gz
Save status so we know if to delete compressed file
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r--archival/gunzip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 6ec5c69..ca7e343 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);