-
Notifications
You must be signed in to change notification settings - Fork 47
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
Use SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE for symlinking on Windows #83
Comments
Do you know what happens if |
This thread claims that passing the flag on earlier builds of will give |
I'll just check for the error code instead of the build number (which might be difficult on older versions of Windows). |
Thanks! Could you elaborate on why there would be difficulties on earlier versions of Windows? If we're on anything before Windows 10 then we shouldn't even need to check the build number since this feature doesn't exist. (Also, your last commit doesn't work for me. Did you mean to pass |
Yes, my bad. Please try 76e4c21 when you get the chance.
It's just a bit more involved to implement (and might involve more |
For some reason I can't pull that changeset. If I click on the link, I can browse the changes, but it's otherwise inaccessible. In any case, I've applied the patch manually and can confirm that it works. |
It was still in my fork at the time: https://github.com/Rufflewind/directory
Yay! |
Windows 10 added support for creating symbolic links without administrator privileges when the system is in developer mode, but
CreateSymbolicLink
will still fail unlessSYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE
is passed as a flag.directory
doesn't seem to expose this functionality. Does it make sense to make it the default?The text was updated successfully, but these errors were encountered: