Fail silently if a partial tar header is read as tar.bz2 is leaving trailing junk (not sure why), add some missing files

This commit is contained in:
Glenn L McGrath
2002-11-05 02:56:57 +00:00
parent 18bbca18ac
commit 7f2a95319b
7 changed files with 105 additions and 5 deletions

View File

@@ -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 */