summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath2001-07-18 03:23:10 +0000
committerGlenn L McGrath2001-07-18 03:23:10 +0000
commit6fc92a506ab3c490a4dc028334c908f19c0d0806 (patch)
treec833ed82044cedf3e5e9d5322a970aef12d870ed /libbb
parent4cdc607f728f94bcbd14823281af362a38cc3c79 (diff)
downloadbusybox-6fc92a506ab3c490a4dc028334c908f19c0d0806.zip
busybox-6fc92a506ab3c490a4dc028334c908f19c0d0806.tar.gz
Fail silently on failure to read tar header, its unfortunate that many tar implementations must be adding unwanted crap to the end of their archives.
It makes error reporting here more trouble than its worth
Diffstat (limited to 'libbb')
-rw-r--r--libbb/unarchive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index 78260d2..adc5d8d 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -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;