-
-
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
: Added overwrite detection for existing symlinks
#6380
cp
: Added overwrite detection for existing symlinks
#6380
Conversation
cp
: Added overwrite detection for existing symlinks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this issue!
By slightly changing the test setup, you (accidentally?) created another interesting test case, please keep it! :D
EDIT: Regarding the clippy failure: I'm afraid the sheer amount of "state" that is passed between the various copy
-functions means that this really should be changed to a struct, perhaps?
GNU testsuite comparison:
|
The state can be refactored and encapsulated within a struct . Perhaps that can be addressed in a future PR . |
GNU testsuite comparison:
|
1 similar comment
GNU testsuite comparison:
|
4049b2a
to
f9bcef7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly just questions, there's probably not much to do anymore.
Also, can I convince you to remove #[allow(clippy::too_many_arguments)]
in your next PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! We're still bad at handling symlinks, but this is a step in the right direction. Yay! :)
Fixes #6265