diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-03-28 23:57:51 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-03-28 23:57:51 +0000 |
commit | ae8ad35590ad2b82232920c94a0e2317e4008552 (patch) | |
tree | 95fa4c0a84095894fd214d59cdb7219e7185aa03 /archival/tar.c | |
parent | e0a7f917c293fbde421fbdffc9cb3dd47ff14ee2 (diff) | |
download | busybox-w32-ae8ad35590ad2b82232920c94a0e2317e4008552.tar.gz busybox-w32-ae8ad35590ad2b82232920c94a0e2317e4008552.tar.bz2 busybox-w32-ae8ad35590ad2b82232920c94a0e2317e4008552.zip |
Fixes from Robert Kaiser
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index 9be63ced8..fb8d84446 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -292,12 +292,13 @@ extern int tar_main(int argc, char **argv) | |||
292 | status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag, | 292 | status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag, |
293 | verboseFlag, extractList, excludeList); | 293 | verboseFlag, extractList, excludeList); |
294 | close(tarFd); | 294 | close(tarFd); |
295 | } | ||
296 | |||
297 | #ifdef BB_FEATURE_TAR_GZIP | 295 | #ifdef BB_FEATURE_TAR_GZIP |
298 | gz_close(pid); | 296 | if (unzipFlag == TRUE) { |
299 | fclose(comp_file); | 297 | gz_close(pid); |
298 | fclose(comp_file); | ||
299 | } | ||
300 | #endif | 300 | #endif |
301 | } | ||
301 | 302 | ||
302 | if (status == TRUE) | 303 | if (status == TRUE) |
303 | return EXIT_SUCCESS; | 304 | return EXIT_SUCCESS; |