-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
cp: handle edge cases when dest is a symlink #2610
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
Sorry, it is conflicting, could you please fix that? thanks |
- Fail if dest is a dangling symlink - Fail if dest is a symlink that was previously created by the same invocation of cp
Should be fixed now! Sorry for being so slow, but since school started again I have much less time. |
The tests doesn't seem to have been run. Has the "rerun checks" button disappeared from GitHub? @miDeb could you check whether you can trigger them? |
I also can't find it. I'll try closing and reopening the PR, I think that should trigger a rerun. |
A test on windows seems to be failing because of a bug in |
Not sure why all CI jobs got cancelled, I'll rerun them once more... |
Interesting, GitHub retriggered the CI because I made another PR with the same commits. I'll close that one and merge this, because it's all green. |
@@ -32,6 +35,114 @@ macro_rules! has { | |||
}; | |||
} | |||
|
|||
/// Information to uniquely identify a file | |||
pub struct FileInformation( |
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.
I just wanted to comment that this API is really nice :)
Thanks! |
uucore
cat
(fixes Cat Windows 10 does not work #2601)cp
when the destination is a symlink.I also added some
FIXME
comments tocp
about issues I found but didn't fix in this PR.