]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Update ustar creation sanity check to use WCS path on Windows (#2230)
authorDuncan Horn <40036384+dunhor@users.noreply.github.com>
Wed, 12 Jun 2024 19:01:40 +0000 (12:01 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2024 19:01:40 +0000 (12:01 -0700)
commit6ee1eebefdf41f36ef1a548c9a7000d132c453f3
tree807e2525e1ce8ea898f822428c66e4b089cd08aa
parentad26e379dbe8943c99fd7a9b078e2ed4e23ab8e9
Update ustar creation sanity check to use WCS path on Windows (#2230)

On Windows, the MBS pathname might be null if the string was set with a
WCS that can't be represented by the current locale. This is handled
properly by the rest of the code, but there's a sanity check that does
not make the proper distinction.

Note: this is a partial cherry-pick from
https://github.com/libarchive/libarchive/pull/2095, which I'm going to
go through and break into smaller pieces in hopes of getting some things
in while discussion of other things can continue.
libarchive/archive_write_set_format_ustar.c
libarchive/test/test_ustar_filename_encoding.c