Repository navigation
Conversation
Merging this PR will degrade performance by 3.7%
Performance Changes
Comparing Footnotes
|
|
GNU testsuite comparison: |
sylvestre
left a comment
There was a problem hiding this comment.
dunno if you saw it but many jobs are failing, this is why it hasn't been reviewed yet
d56a7d6 to
e06edcb
Compare
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
a7881d7 to
dc664b3
Compare
24c7c88 to
72aa2ee
Compare
|
GNU testsuite comparison: |
f8a5524 to
7fbfd9f
Compare
|
GNU testsuite comparison: |
7fbfd9f to
7302d2d
Compare
|
GNU testsuite comparison: |
7302d2d to
a32b3fd
Compare
|
GNU testsuite comparison: |
|
it is still marked as draft :) |
…ls#9147 Run with: cargo test --test tests test_permission_with_supplementary_group
Run with: cargo test --test tests test_permission_with_acl
Replace manual permission checking logic with platform-specific libc functions that properly handle supplementary groups and ACLs: - Linux, Hurd, Redox, Cygwin, Solaris, Illumos: euidaccess() - FreeBSD: eaccess() - macOS, iOS, NetBSD, OpenBSD, DragonFly: faccessat() with AT_EACCESS - Android: faccessat() - Other OSes: fall back to libc:access() These functions delegate permission checks to the kernel, which correctly evaluates all of the user's group memberships (both primary and supplementary), as well as ACLs and other advanced permission features. Fixes uutils#8960 Fixes uutils#9147
a32b3fd to
e3d63d7
Compare
|
Soo many tests.. I think a few tests are flakey, e.g. whatever caused the last failure (https://github.com/uutils/coreutils/actions/runs/21120355090), and I've rebased my patch just to trigger a fresh run. I think I've addressed all the actual PR defects (failure on sudo-less environments, fmt and clippy violations). I'll un-draft this PR once tests are passing. |
|
GNU testsuite comparison: |
|
I think this PR is good to review now, despite 2 failing checks:
|
|
Superseded by #14966 |
|
@cakebaker can you close this as fixed in the last test PR |


Fixes #8960 and #9147. Delegate to libc
euidaccessto avoid bugs (#9147) and respect ACLs (#8960).Note, the tests are independent commits that can be applied first, where they should fail before the 'fix' commit is applied. Run the tests with:
Warning: code is partly Claude-generated as I'm not that familiar with Rust.