From 82002307620921c0f14da1e55a9d3f0a15af2468 Mon Sep 17 00:00:00 2001 From: bug1 Date: Wed, 18 Jul 2001 03:23:10 +0000 Subject: 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 --- libbb/unarchive.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbb') 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) } 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; -- cgit v1.2.3-55-g6feb