From 399c3ef55c4537187daa014552245af5388826f8 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 This is a backport of 495d1a0 to the v0.8 branch. --- 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 a8f690d9d..1c4c18baa 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -166,7 +166,7 @@ static wchar_t* search_path_join_test(const wchar_t* dir, attrs = GetFileAttributesW(result); if (attrs != INVALID_FILE_ATTRIBUTES && - !(attrs & (FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_REPARSE_POINT))) { + !(attrs & FILE_ATTRIBUTE_DIRECTORY)) { return result; }