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
This commit is contained in:
parent
4cdc607f72
commit
6fc92a506a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user