projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdc607
)
Fail silently on failure to read tar header, its unfortunate that many tar implementa...
author
Glenn L McGrath
<bug1@ihug.co.nz>
Wed, 18 Jul 2001 03:23:10 +0000
(
03:23
-0000)
committer
Glenn 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
patch
|
blob
|
history
diff --git
a/libbb/unarchive.c
b/libbb/unarchive.c
index 78260d2d6f9d3658aeeb2d42816a0b3f0840397a..adc5d8d6e53e570086050f026c0d2823fd42ced9 100644
(file)
--- 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;