aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-18 03:23:10 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-18 03:23:10 +0000
commit82002307620921c0f14da1e55a9d3f0a15af2468 (patch)
treec833ed82044cedf3e5e9d5322a970aef12d870ed /libbb
parent05f9617dd182eb07450e5361fc6e91f58a8f2ed9 (diff)
downloadbusybox-w32-82002307620921c0f14da1e55a9d3f0a15af2468.tar.gz
busybox-w32-82002307620921c0f14da1e55a9d3f0a15af2468.tar.bz2
busybox-w32-82002307620921c0f14da1e55a9d3f0a15af2468.zip
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 git-svn-id: svn://busybox.net/trunk/busybox@3116 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 78260d2d6..adc5d8d6e 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -492,7 +492,9 @@ file_header_t *get_header_tar(FILE *tar_stream)
492 } 492 }
493 493
494 if (fread(tar.raw, 1, 512, tar_stream) != 512) { 494 if (fread(tar.raw, 1, 512, tar_stream) != 512) {
495 error_msg("Couldnt read header"); 495 /* Unfortunatly its common for tar files to have all sorts of
496 * trailing garbage, fail silently */
497// error_msg("Couldnt read header");
496 return(NULL); 498 return(NULL);
497 } 499 }
498 archive_offset += 512; 500 archive_offset += 512;