Skip to content

Conversation

@JRF63
Copy link
Contributor

@JRF63 JRF63 commented Jul 7, 2025

chown is basically piggybacking on the previous chgrp implementation which is why refactoring chgrp was also necessary.

Some tests strictly require root because they change the owner and must be run with sudo -E cargo test --features "posixutils_test_all requires_root". I tried to maximize the tests that can be run in GitHub by detecting root access and only changing the group (ex. chown :group file) when not run as root.

@jgarzik jgarzik merged commit 0d997aa into rustcoreutils:main Jul 12, 2025
2 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.

2 participants