Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup! Win32: symlink: add support for symlinks to directories #1651

Merged
merged 1 commit into from
May 3, 2018
Merged

fixup! Win32: symlink: add support for symlinks to directories #1651

merged 1 commit into from
May 3, 2018

Conversation

michaldudak
Copy link

Fixes #1646 as described in the issue.

Change the way how directory symlinks are detected by trying to
open the link's target instead of the link itself.

It seems that Windows 10 1803 (April 2018 Update) does not allow to call
CreateFile on a link of a wrong type. If a file symlink points to a directory
an attempt to open it with CreateFile causes an ERROR_ACCESS_DENIED.
This behavior is different in previous version of Windows 10 (CreateFile
opens the incorrect link without complaining), that's why it worked fine
before.

This fixes #1646

Signed-off-by: Michał Dudak <michal.dudak@gmail.com>
@dscho
Copy link
Member

dscho commented May 3, 2018

Perfect, thanks!

@dscho dscho merged commit 05ca542 into git-for-windows:master May 3, 2018
dscho added a commit to git-for-windows/build-extra that referenced this pull request May 3, 2018
Git for Windows [now creates directory symlinks
correctly](git-for-windows/git#1651) when
asked to.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho added this to the v2.17.0(2) milestone May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants