-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[w32file] Fix usage of copyfile #10008
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
Conversation
|
@monojenkins backport to 2018-06 |
|
@monojenkins backport to 2018-08 |
|
@luhenry backporting to 2018-06 failed, the patch results in conflicts: Please backport manually! |
|
@monojenkins backport to 2018-06 |
|
@monojenkins backport to 2018-08 |
When passing COPYFILE_CLONE, copyfile will not follow a symbolic link on the src file. This is a problem since it breaks File.Copy assumption which, when passed a symbolic link, follows the symbolic link instead of copying it. The bug is visible as soon as you use <Copy /> with msbuild and you try to access the copied file with <Touch /> for example
|
@filipnavara could you please have a look at that since you authored #9642 |
|
It is definitely an issue, but removing COPYFILE_CLONE kinda defeats the whole purpose of using |
|
Apparently it used to work correctly until Apple "fixed" it in 10.13.2:
I was looking into using |
|
We should be able to have a check for And looking at the |
|
|
|
I'm working on a PR with |
|
I definitely agree |
When passing COPYFILE_CLONE, copyfile will not follow a symbolic link on the src file. This is a problem since it breaks File.Copy assumption which, when passed a symbolic link, follows the symbolic link instead of copying the symbolic link itself. The bug is visible as soon as you use
<Copy />with msbuild and you try to access the copied file with<Touch />for example