Skip to content

Conversation

@ChrisDryden
Copy link
Collaborator

@ChrisDryden ChrisDryden commented Dec 24, 2025

I'm going through all of the remaining tests and when trying to replicate the failure I was able to see after adding debugging logs that the command was failing silently. Narrowed it down to this function and then saw that this was failing to canonicalize this path when running as the gid 1000.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/cp/preserve-gid is no longer failing!

@ChrisDryden ChrisDryden marked this pull request as ready for review December 24, 2025 02:19
@ChrisDryden
Copy link
Collaborator Author

I was doing more research on this PR and the passing GNU test because of it, the test is supposed to make sure that the pid is preserved, but the issue is that the user that the GNU test uses for this test sets just happens to have the same GID as the file its testing so it just happens to work out.

There is a permission flag in here that needs to be changed from the id of the user to a 0 or -1 somewhere to indicate that the gid should be preserved. Will add another follow up PR for this one

@ChrisDryden
Copy link
Collaborator Author

As a note for reviewers this one is quite difficult to make a rust test for that matches the gnu equivalent because I believe it requires root permissions, same as the GNU test.

@sylvestre sylvestre merged commit 2916d2b into uutils:main Dec 30, 2025
128 checks passed
naoNao89 pushed a commit to naoNao89/coreutils that referenced this pull request Dec 31, 2025
…nt dirs (uutils#9803)

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
naoNao89 pushed a commit to naoNao89/coreutils that referenced this pull request Jan 1, 2026
…nt dirs (uutils#9803)

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
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