Skip to content

cp --preserve=links -R -H doesn't keep the inodes #5031

Closed

Description

@sylvestre
rm -rf a b c
touch a
ln -s a b
mkdir c
./target/debug/coreutils cp --preserve=links -R -H a b c
a_inode=$(ls -i c/a|sed 's,c/.*,,')
b_inode=$(ls -i c/b|sed 's,c/.*,,')
echo "$a_inode" = "$b_inode"

a_inode & b_inode should be the same
they aren't with our implementation

GNU test: tests/cp/link-preserve.sh

Activity

  1. tommady commented on Jul 7, 2023

    @tommady
    Contributor

    Hello, may I have the chance to give it a try?

    Thank you

  2. sylvestre commented on Jul 7, 2023

    @sylvestre
    SponsorContributorAuthor

    sure, just try to submit a PR :)

  3. sylvestre commented on Sep 24, 2023

    @sylvestre
    SponsorContributorAuthor

    @tommady well done :)
    I looked at the next failure in link-preserve.sh and opened if you are still interested:
    #5308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions