-
-
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: link-deref gnu test fix #6378
Conversation
GNU testsuite comparison:
|
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, except that one typo. (I understand that the typo is also present in the already-existing code; feel free to keep it or fix it as you see fit.)
(Remaining CI failures are known issues #6275 and #6333, so out of scope for this PR.)
Before I merge this, I want to give the other maintainers an opportunity to look at it, because I don't feel 100% confident around symlinks. But this seems very reasonable.
Co-authored-by: Ben Wiederhake <[email protected]>
GNU testsuite comparison:
|
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. I'll wait for a few days for the others too look at it, because I don't feel 100% confident around the symlink code.
is it because I tried to squeeze in deref logic into parsing code |
well done! |
this pr tries to fix gnu test case "link deref" for cp utility
these are the changes made:
when trying to copy a folder without
-R
before throwing "-r not specified" error, cp would make sure that source is not a symlink and noderef option is not given. This way, when both of them are given, it would treat it as a file and copy the symlink itself.to match gnu cp's behavior,
-R
won't disable dereference if--link
is given