Skip to content
Permalink
Browse files

Merge pull request #1651 from michaldudak/dir-symlinks-fix

fixup! Win32: symlink: add support for symlinks to directories
  • Loading branch information...
dscho committed May 3, 2018
2 parents df4ca5f + ec4523a commit 05ca542f78d6eb85400bd10b0b60ce9442e5d76b
Showing with 1 addition and 1 deletion.
  1. +1 −1 compat/mingw.c
@@ -297,7 +297,7 @@ static enum phantom_symlink_result process_phantom_symlink(
return PHANTOM_SYMLINK_DONE;

/* let Windows resolve the link by opening it */
hnd = CreateFileW(wlink, 0,
hnd = CreateFileW(wtarget, 0,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL,
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
if (hnd == INVALID_HANDLE_VALUE) {

0 comments on commit 05ca542

Please sign in to comment.
You can’t perform that action at this time.