Skip to content
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

ln: symlink --force, src and dst are same file #3724

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

niyaznigmatullin
Copy link
Contributor

  • When creating symlink from src to dst, when dst is regular file and src is either the same regular file or links to dst, raise "same file" error
  • Moved paths_refer_to_same_file from cp.rs to common fs.rs to use it in ln.rs as well
  • Added test

@niyaznigmatullin niyaznigmatullin marked this pull request as ready for review July 18, 2022 05:17
@sylvestre sylvestre merged commit fbe2249 into uutils:main Jul 18, 2022
@niyaznigmatullin niyaznigmatullin deleted the ln_same_file_on_force branch July 18, 2022 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants