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 commit is contained in:
Bert Belder 2013-06-19 00:14:58 +02:00
parent 6607e70253
commit 495d1a09fb

View File

@ -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;
}