Keep trying to find a good header, if we exit it will cause .tar.gz
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 14 Nov 2003 12:57:14 +0000 (12:57 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 14 Nov 2003 12:57:14 +0000 (12:57 -0000)
files to compute incorrect crc and length for gzip

archival/libunarchive/get_header_tar.c

index 7fa0a0088a42b67ca5a8e3a15c0a1f0488a1f9e3..cf5ac6b62f444438747b2f6a38c02597dc04b129 100644 (file)
@@ -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_FAILURE);
+               return(EXIT_SUCCESS);
        }
 
        /* Check header has valid magic, "ustar" is for the proper tar