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

cp: when copying hardlink over itself, the backup should also be a hardlink #6532

Open
BenWiederhake opened this issue Jul 3, 2024 · 0 comments
Labels

Comments

@BenWiederhake
Copy link
Collaborator

BenWiederhake commented Jul 3, 2024

When copying hardlink over itself, the backup should also be a hardlink, and its creation announced if -v was given.

$ rm -f README.md~ && cp -vlbf README.md README.md && ls -1i README.md*
'README.md' -> 'README.md~'
20092600 README.md
20092600 README.md~
$ rm -f README.md~ && cargo run -q cp -vlbf README.md README.md && ls -1i README.md*
20092600 README.md
20074037 README.md~

Found while reading #6496, but only remotely related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant