]> git.ipfire.org Git - thirdparty/libarchive.git/commit
New ASCII format: fix hard link description 1331/head
authorWard Vandewege <cure@users.noreply.github.com>
Fri, 14 Feb 2020 02:56:09 +0000 (21:56 -0500)
committerGitHub <noreply@github.com>
Fri, 14 Feb 2020 02:56:09 +0000 (21:56 -0500)
commit29990dffbf7711b02829fe2455fe58505ac27202
tree48c756a8ea1249e0586ba74c47644633f0c54e6e
parent35b5b4171065eb3015f67e0e849bdf582b8cb17e
New ASCII format: fix hard link description

The description of how hard links are handled in the 'new ASCII format' is wrong. Cpio stores the *first*, not *last* copy of the file with its entire contents, followed by entries with filesize set to zero for each subsequent entry that is hard linked. While creating the archive, how would it ever know it was processing the last one!
libarchive/cpio.5