We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2acff2 commit ebf6c55Copy full SHA for ebf6c55
1 file changed
tests/by-util/test_nohup.rs
@@ -152,7 +152,7 @@ fn test_nohup_fallback_to_home() {
152
153
// Skip test when running as root (permissions bypassed via CAP_DAC_OVERRIDE)
154
// This is common in Docker/Podman containers but won't happen in CI
155
- if unsafe { libc::geteuid() } == 0 {
+ if rustix::process::geteuid().is_root() {
156
println!("Skipping test when running as root (file permissions bypassed)");
157
return;
158
}
0 commit comments