]> git.ipfire.org Git - thirdparty/libarchive.git/commit
zip: Allow backslash as path separator 970/head
authorJohn Starks <jostarks@microsoft.com>
Thu, 16 Nov 2017 00:10:49 +0000 (16:10 -0800)
committerJohn Starks <jostarks@microsoft.com>
Thu, 16 Nov 2017 00:13:04 +0000 (16:13 -0800)
commite8e0d6c3617d8fa6282c55ecf7db6416ede37495
treeb236f7332600aa1a7a748202f2193558f693a1bf
parentd9d9d1683ec875fdf7abf21e0049bf285d9f9ec1
zip: Allow backslash as path separator

Some Windows zip archivers, such as PowerShell's Compress-Archive, use
backslash as the path separator in violation of the zip specification.
Info-Zip works around this by supporting this for archives that report
"version made by" of 0 (MS-DOS).

This change adds the same workaround to libarchive and adds a test of
this case using a zip file created with PowerShell.
Makefile.am
libarchive/archive_read_support_format_zip.c
libarchive/test/test_compat_zip.c
libarchive/test/test_compat_zip_8.zip.uu [new file with mode: 0644]