Skip to content

Conversation

@drinkcat
Copy link
Collaborator

Fixes #8383, and would fix tests/cp/preserve-gid if we didn't hit #8382 (I added +rx permission to my home directory to work around the issue).


For example, if a file with ownership root:wheel is copied with
-p, we expect the copy to have ownership $USER:wheel
(assuming $USER is part of wheel group)

It's not possible to add a unit test for this, as it requires a
file with non-$USER ownership, which can only be created by root
(or another user).

For example, if a file with ownership `root:wheel` is copied with
`-p`, we expect the copy to have ownership `$USER:wheel`
(assuming `$USER` is part of `wheel` group)

It's not possible to add a unit test for this, as it requires a
file with non-$USER ownership, which can only be created by root
(or another user).
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@RenjiSann RenjiSann merged commit 5a322e1 into uutils:main Jul 24, 2025
116 of 117 checks passed
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.

cp -p fails to preserve group, if user can't be preserved

2 participants