Fail silently on failure to read tar header, its unfortunate that many tar implementa...
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 18 Jul 2001 03:23:10 +0000 (03:23 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 18 Jul 2001 03:23:10 +0000 (03:23 -0000)
It makes error reporting here more trouble than its worth

libbb/unarchive.c

index 78260d2d6f9d3658aeeb2d42816a0b3f0840397a..adc5d8d6e53e570086050f026c0d2823fd42ced9 100644 (file)
@@ -492,7 +492,9 @@ file_header_t *get_header_tar(FILE *tar_stream)
        }
 
        if (fread(tar.raw, 1, 512, tar_stream) != 512) {
-               error_msg("Couldnt read header");
+               /* Unfortunatly its common for tar files to have all sorts of
+                * trailing garbage, fail silently */
+//             error_msg("Couldnt read header");
                return(NULL);
        }
        archive_offset += 512;