diff options
author | Glenn L McGrath | 2002-11-05 02:56:57 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-11-05 02:56:57 +0000 |
commit | 7f2a95319b640d8a40e370352cc4a8d8b8d63e0e (patch) | |
tree | 4a3208eb2fd77b946ccedaff5de898f877eb36cc /archival/tar.c | |
parent | 18bbca18acf229875f2bb60cc37c3e8c22d237bc (diff) | |
download | busybox-7f2a95319b640d8a40e370352cc4a8d8b8d63e0e.zip busybox-7f2a95319b640d8a40e370352cc4a8d8b8d63e0e.tar.gz |
Fail silently if a partial tar header is read as tar.bz2 is leaving trailing junk (not sure why), add some missing files
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index e1e121a..95ef33b 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -748,8 +748,7 @@ int tar_main(int argc, char **argv) #endif /* CONFIG_FEATURE_TAR_GZIP */ #ifdef CONFIG_FEATURE_TAR_BZIP2 if (tar_handle->read == read_bz2) { - BZ2_bzReadOpen(tar_handle->src_fd, NULL, 0); - while (get_header_tar(tar_handle) == EXIT_SUCCESS); + get_header_tar_bz2(tar_handle); } else #endif /* CONFIG_FEATURE_TAR_BZIP2 */ |