]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix gnutar creation with unicode hardlink names on Windows (#2227)
authorDuncan Horn <40036384+dunhor@users.noreply.github.com>
Thu, 20 Jun 2024 21:03:54 +0000 (14:03 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2024 21:03:54 +0000 (23:03 +0200)
commit07206cd172c73cbe3b6b3d64e00f427fa0befa54
tree6361da91051b4aee38795146b68ec08094dcd77b
parent56e023631298f6b4988c5ca1c04a45857b886e91
Fix gnutar creation with unicode hardlink names on Windows (#2227)

The code currently uses `archive_entry_hardlink` to determine if an
entry is a hardlink, however on Windows, this call will fail if the path
cannot be represented in the current locale. This instead checks to see
if any entry in the `archive_mstring` is set.
libarchive/archive_entry.c
libarchive/archive_entry.h
libarchive/archive_write_set_format_gnutar.c
libarchive/test/test_gnutar_filename_encoding.c