-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cp: Avoid following a destination symlink with -P #3101
Conversation
b63a4af
to
c1c86cf
Compare
I think the CI failure is unrelated? Though, in retrospect, maybe a more proper fix would just be to not canonicalize |
The CI feature is almost definitely unrelated:
but I can't seem to be able to retry it...
Some testing confirmed that this PR is actually the correct behavior: even if |
I thought I fixed that failure :( |
@tertsdiepraam it does look like the previously failing run is passing now! |
err, it looks like macOS just hung forever... |
sorry but we have now a conflict :( |
Previously, given 'cp -P a b', where 'a' and 'b' were both symlinks, cp would end up replacing the target of 'b'. Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
@sylvestre conflict should be fixed now! |
Sweet |
Previously, given 'cp -P a b', where 'a' and 'b' were both symlinks, cp
would end up replacing the target of 'b'.
Signed-off-by: Ryan Gonzalez ryan.gonzalez@collabora.com