From 2685724e2374ef74669d39aa2b1f5d1ae8799450 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Wed, 5 Nov 2003 04:55:58 +0000 Subject: Fix tar -j support Use the old fork() method of tar compression support, rather than read_bz2.... - (*uncompress)(int in, int out) seems like a more natural interface for compression code. - it might improve performance by seperating the work into one cpu bound and one io bound process. - There is extra code required to do read_[gz|bunzip] since (*uncompress)(int in, int out) will normally be used by the standalone compression applet. There have been problems with this method so if you see a "Short read" error let me know. --- archival/libunarchive/get_header_tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/libunarchive/get_header_tar.c') diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index cf5ac6b..7fa0a00 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -65,7 +65,7 @@ extern char get_header_tar(archive_handle_t *archive_handle) /* If there is no filename its an empty header */ if (tar.formated.name[0] == 0) { - return(EXIT_SUCCESS); + return(EXIT_FAILURE); } /* Check header has valid magic, "ustar" is for the proper tar -- cgit v1.1