8000 `cp -dR --no-preserve=links d c` should have different inodes · Issue #5308 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cp -dR --no-preserve=links d c should have different inodes #5308

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

Closed
sylvestre opened this issue Sep 24, 2023 · 4 comments · Fixed by #5320
Closed

cp -dR --no-preserve=links d c should have different inodes #5308

sylvestre opened this issue Sep 24, 2023 · 4 comments · Fixed by #5320
Labels

Comments

@sylvestre
Copy link
Contributor
rm -rf a b c d; mkdir d; (cd d; touch a; ln a b)
./target/debug/coreutils cp -dR --no-preserve=links d c

a_inode=$(ls -i c/a|sed 's,c/.*,,')
b_inode=$(ls -i c/b|sed 's,c/.*,,')
echo "$a_inode" = "$b_inode"

We should get different inodes

See #5031 for a similar issue

On my system, why GNU:
36311653 = 36341951
with our impl:
36311653 = 36311653

Tested by
GNU test: tests/cp/link-preserve.sh
https://github.com/coreutils/coreutils/blob/master/tests/cp/link-preserve.sh#L63-L68

@tertsdiepraam
Copy link
Member

I believe this is because --no-preserve is basically ignored right now 😄

@tommady
Copy link
Contributor
tommady commented Sep 25, 2023

Hi @sylvestre
Yes I am interesting in this issue as you asked me.

May I take a shot to try this one?
Thanks.

@sylvestre
Copy link
Contributor Author

Sure :)

@sylvestre
Copy link
Contributor Author

@tommady the last one #5327 if you are still interested :)

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

Successfully merging a pull request may close this issue.

3 participants
0