]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0686: zip-plugin has problems with special characters v9.1.0686
authorChristian Brabandt <cb@256bit.org>
Tue, 20 Aug 2024 20:41:52 +0000 (22:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 20 Aug 2024 20:41:52 +0000 (22:41 +0200)
commit7790ea0c680a9f951a86066e5940ec16b2333c9a
tree7b6a774e625c5bcc45087f398799371b76b11d7e
parent5f5f2832f5dcf845a93f7f62c1daf6cba9c17989
patch 9.1.0686: zip-plugin has problems with special characters

Problem:  zip-plugin has problems with special characters
          (user202729)
Solution: escape '*?[\' on Unix and handle those chars
          a bit differently on MS-Windows, add a test, check
          before overwriting files

runtime(zip): small fixes for zip plugin

This does the following:
- verify the unzip plugin is executable when loading the autoload plugin
- handle extracting file names with '[*?\' in its name correctly by
  escaping those characters for the unzip command (and handle those
  characters a bit differently on MS-Windows, since the quoting is different)
- verify, that the extract plugin is not overwriting a file (could cause
  a hang, because unzip asking for confirmation)
- add a test zip file which contains those special file names

fixes: #15505
closes: #15519

Signed-off-by: Christian Brabandt <cb@256bit.org>
Filelist
runtime/autoload/zip.vim
src/testdir/samples/testa.zip [new file with mode: 0644]
src/testdir/test_zip_plugin.vim
src/version.c