]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Preserve the natural order in ISO9660 archives for linked files (#1974)
authorRoland Clobus <rclobus@rclobus.nl>
Sat, 16 Sep 2023 17:53:54 +0000 (19:53 +0200)
committerMartin Matuska <martin@matuska.de>
Sun, 17 Sep 2023 09:15:50 +0000 (11:15 +0200)
commit67a20ce8f0ba22f06fb74119b4459ac69ade643b
tree702f77cb229fbb769fdde3897cd966f736ced1a4
parent935cb3c6102820466e6d1da60081a5549cbc4930
Preserve the natural order in ISO9660 archives for linked files (#1974)

When an ISO9660 archive contains hard links or sym links, the order of
the files in the output of 'bsdtar -tf filename' is not the natural
order.

With an extension to the key (while still supporting ISO files up to 2^48
bytes) the sorting order is guaranteed for ISO files that contain linked
files for up to 2^16 files in total.

Co-authored-by: Martin Matuska <martin@matuska.de>
libarchive/archive_read_support_format_iso9660.c
libarchive/test/test_read_format_isojoliet_long.c
libarchive/test/test_write_format_iso9660.c