Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apparently, people have come to expect that the following is sufficient to get bit-for-bit identical output from tar: * Same filenames * Same contents * Same uid, gid * Same mtime (forced via "touch -t <timestamp>") * Sorting entries Bsdtar's "restricted pax" format violated this by including ctime, atime, and birthtime (which are not updated by 'touch -t). So we should only emit those additional time values in the full pax format. People who are really serious about generating bit-for-bit identical archives should really build their own command-line interface: You can still use libarchive to build the output, but your custom CLI could sort the entries and strip everything except a bare minimum of basic metadata.
- Loading branch information