aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-06-19 09:39:45 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-06-19 09:43:55 +0800
commit147872452ec4f7190e8f3a3e6255b8f1ca9bbf60 (patch)
treeee897be1b077a9f77cef71b242d43c2150f48164 /test/functional/vimscript/executable_spec.lua
parent025a3e2baf18605dd319042457c31b64cc552c9c (diff)
downloadrneovim-147872452ec4f7190e8f3a3e6255b8f1ca9bbf60.tar.gz
rneovim-147872452ec4f7190e8f3a3e6255b8f1ca9bbf60.tar.bz2
rneovim-147872452ec4f7190e8f3a3e6255b8f1ca9bbf60.zip
vim-patch:9.2.0673: tests: Test_recover_corrupted_swap_file() cannot handle symlinks
Problem: tests: Test_recover_corrupted_swap_file() cannot handle symlinks Solution: Use writefile(readblob()) instead (Vladimír Marek) Test_recover_corrupted_swap_file1() copies prebuilt corrupt swap samples before recovering them. In an out-of-source-tree build those sample files may be symlinks into the source tree. filecopy() preserves symlinks, so the copied target may remain a symlink. Recovery opens swap files with O_NOFOLLOW, so that copied symlink cannot be opened. Read the sample as a blob and write it back so the recovery target is a real swap file. closes: vim/vim#20561 https://github.com/vim/vim/commit/88cbd003125840ed20f455653e28b91e3237f380 Co-authored-by: Vladimír Marek <vlmarek13@gmail.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions