Skip to content

Conversation

@Darius-Constantin
Copy link

@Darius-Constantin Darius-Constantin commented Dec 22, 2025

Fixes #9750.

Changed handle_preserve to FnMut, such that a flag is set if ownership cannot be preserved, in which case the UID and GID bits are cleared.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/printf/printf-surprise is now passing!
Note: The gnu test tests/dd/no-allocate was skipped on 'main' but is now failing.
Note: The gnu test tests/misc/write-errors was skipped on 'main' but is now failing.

@sylvestre
Copy link
Contributor

A bunch of jobs are failing.
Also could you please add a test to make sure we don't regress in the future? Thanks

Darius-Constantin and others added 3 commits December 22, 2025 18:41
Signed-off-by: Darius-Constantin <darius.constantin04@stud.acs.upb.ro>
…arius-Constantin/coreutils into cp-preserve-strip-setuid-on-chown-fail
@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/printf/printf-surprise is now passing!
Note: The gnu test tests/dd/no-allocate was skipped on 'main' but is now failing.
Note: The gnu test tests/misc/write-errors was skipped on 'main' but is now failing.

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 doesn't strip setuid/setgid bits when chown fails

2 participants