diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-22 14:22:44 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-22 14:22:44 +0200 |
commit | c6b65ee8a9a57d51956ee462fa1d61fd90d61f40 (patch) | |
tree | 84465ce5c60eae3ee2a53a40fe3c4ced0c690778 /bin/sqfsdiff/sqfsdiff.h | |
parent | 9a20cc2f627c3fa086b109dd1830bf45519fcb55 (diff) |
Skip PAX global headers
Tar archives can contain set two kinds of PAX headers:
- local headers that modify the attributes of the next file
- global headers that set defaults for all files
The later is used "... not widely used", according to tar(5)
and has been deliberately not implemented.
Some programs (e.g. git-archive) *do* generate them (in the case
of git, it stores the commit hash).
This commit adds a code path that skips a PAX global header entirely
and resumes tar parsing, instead of erroneusly reporting it as an
entry.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/sqfsdiff/sqfsdiff.h')
0 files changed, 0 insertions, 0 deletions