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>
diff --git a/src/os_win32.c b/src/os_win32.c
index 52e0583..ff60e04 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2721,6 +2721,8 @@
{
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.
if (path != NULL)