1
0
forked from aniani/vim

patch 9.0.1769: executable() ignoring symlinks on Windows

Problem:  executable() ignoring symlinks on Windows
Solution: resolve reparse points

closes: #12562

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: AmberArr <me@frost.moe>
This commit is contained in:
AmberArr
2023-08-20 20:03:45 +02:00
committed by Christian Brabandt
parent 9f29621415
commit f5d0f54790
5 changed files with 14 additions and 1 deletions

View File

@@ -2720,6 +2720,8 @@ executable_file(char *name, char_u **path)
if (attrs & FILE_ATTRIBUTE_REPARSE_POINT)
{
char_u *res = resolve_appexeclink((char_u *)name);
if (res == NULL)
res = resolve_reparse_point((char_u *)name);
if (res == NULL)
return FALSE;
// The path is already absolute.