]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
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)
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

index 1a2886f0867376cd264001c88ddaa218a99474eb..a91f0c596d2e511decc42a4d6ef1ddcbc552d031 100644 (file)
@@ -244,7 +244,7 @@ Note that this format supports only 4 gigabyte files (unlike the
 older ASCII format, which supports 8 gigabyte files).
 .Pp
 In this format, hardlinked files are handled by setting the
-filesize to zero for each entry except the last one that
+filesize to zero for each entry except the first one that
 appears in the archive.
 .Ss New CRC Format
 The CRC format is identical to the new ASCII format described