Skip to content

Commit ebf6c55

Browse files
committed
test_nohup.rs: remove unsafe
1 parent c2acff2 commit ebf6c55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/by-util/test_nohup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn test_nohup_fallback_to_home() {
152152

153153
// Skip test when running as root (permissions bypassed via CAP_DAC_OVERRIDE)
154154
// This is common in Docker/Podman containers but won't happen in CI
155-
if unsafe { libc::geteuid() } == 0 {
155+
if rustix::process::geteuid().is_root() {
156156
println!("Skipping test when running as root (file permissions bypassed)");
157157
return;
158158
}

0 commit comments

Comments
 (0)