From 29990dffbf7711b02829fe2455fe58505ac27202 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Thu, 13 Feb 2020 21:56:09 -0500 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/cpio.5 b/libarchive/cpio.5 index 1a2886f08..a91f0c596 100644 --- a/libarchive/cpio.5 +++ b/libarchive/cpio.5 @@ -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 -- 2.47.2