From 495d1a09fb863354e5de1c6ab4547be3672ace00 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 19 Jun 2013 00:14:58 +0200 Subject: [PATCH] windows: uv_spawn shouldn't reject reparse points This fixes an issue where uv_spawn would not try to run a reparse point, and continue to scan the PATH instead. Effectively, it was impossible to spawn a symlinked binary. This commit fixes that. Also see #748 --- src/win/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/process.c b/src/win/process.c index f98767a42..fb445b6c7 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -225,7 +225,7 @@ static WCHAR* search_path_join_test(const WCHAR* dir, attrs = GetFileAttributesW(result); if (attrs != INVALID_FILE_ATTRIBUTES && - !(attrs & (FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_REPARSE_POINT))) { + !(attrs & FILE_ATTRIBUTE_DIRECTORY)) { return result; }