]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix Windows path when writing zip entries (#2309)
authoryyyy <yyyy@poipoipo.pub>
Thu, 12 Sep 2024 22:05:01 +0000 (06:05 +0800)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2024 22:05:01 +0000 (00:05 +0200)
commit52dfe43a8051f09d23d3636b20f55e5ffc4f045d
tree3354623d00e313417d7f82fe75f3fba189dffed2
parent6df5cb464b1e3814f8615e3d794b51e694ff8ced
Fix Windows path when writing zip entries (#2309)

Before writing a zip entry, its' pathname might be modified for two
reasons:

1. Path using Windows path separators will be converted to POSIX style.
2. Path using local encoding will be transcoded if a target charset is
set.

Must make sure these two mechanisms can coexist without overwriting each
other.
.gitignore
Makefile.am
libarchive/archive_write_set_format_zip.c
libarchive/test/CMakeLists.txt
libarchive/test/test_write_format_zip_windows_path.c [new file with mode: 0644]