]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(dist): verify that executable is in $PATH
authorChristian Brabandt <cb@256bit.org>
Sat, 17 Aug 2024 13:52:11 +0000 (15:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 17 Aug 2024 19:00:55 +0000 (21:00 +0200)
commit8e25d91cb7bb4dc171cb4e95b1bb79a39400a13a
tree68ba2da1da8f13e87857ff6316656f06985f02af
parenta4aa97590b5bb29088336c57361077a06f8d8c38
runtime(dist): verify that executable is in $PATH

Otherwise, if the executable to be verified does not exist,
this would cause a false-positive in the 'IsSafeExecutable()' check,
because 'exepath(executable)' returns an empty string and
'fnamemodify('', ':p:h')' returns the current directory and as a result
the 'IsSafeExecutable()' returns false (for the wrong reason).

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/vim.vim
runtime/autoload/dist/vim9.vim