windows: change GENERIC_ALL to GENERIC_WRITE in fs__create_junction

Fixes #1385

See ReactOS's mklink implementation and
http://stackoverflow.com/a/10508724
This commit is contained in:
Tony Kelman 2014-07-31 01:54:32 -07:00 committed by Saúl Ibarra Corretgé
parent c11a598d7c
commit 3d73d55627

View File

@ -1465,7 +1465,7 @@ static void fs__create_junction(uv_fs_t* req, const WCHAR* path,
/* Open the directory */
handle = CreateFileW(new_path,
GENERIC_ALL,
GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,