diff options
author | Glenn L McGrath | 2001-03-28 23:57:51 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-03-28 23:57:51 +0000 |
commit | ae8ad35590ad2b82232920c94a0e2317e4008552 (patch) | |
tree | 95fa4c0a84095894fd214d59cdb7219e7185aa03 /tar.c | |
parent | e0a7f917c293fbde421fbdffc9cb3dd47ff14ee2 (diff) | |
download | busybox-ae8ad35590ad2b82232920c94a0e2317e4008552.zip busybox-ae8ad35590ad2b82232920c94a0e2317e4008552.tar.gz |
Fixes from Robert Kaiser
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -292,12 +292,13 @@ extern int tar_main(int argc, char **argv) status = readTarFile(tarFd, extractFlag, listFlag, tostdoutFlag, verboseFlag, extractList, excludeList); close(tarFd); - } - #ifdef BB_FEATURE_TAR_GZIP - gz_close(pid); - fclose(comp_file); + if (unzipFlag == TRUE) { + gz_close(pid); + fclose(comp_file); + } #endif + } if (status == TRUE) return EXIT_SUCCESS; |