Skip to content

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

Closed

Description

@sylvestre
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

Activity

  1. tertsdiepraam commented on Sep 24, 2023

    @tertsdiepraam
    Collaborator

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

  2. tommady commented on Sep 25, 2023

    @tommady
    Contributor

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

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

  3. sylvestre commented on Sep 25, 2023

    @sylvestre
    SponsorContributorAuthor

    Sure :)

  4. sylvestre commented on Sep 27, 2023

    @sylvestre
    SponsorContributorAuthor

    @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

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