test_nohup.rs: remove unsafe (#12052)

This commit is contained in:
oech3
2026-04-28 17:52:33 +09:00
committed by GitHub
parent c2acff22ee
commit ec72d08bf1
+1 -1
View File
@@ -152,7 +152,7 @@ fn test_nohup_fallback_to_home() {
// Skip test when running as root (permissions bypassed via CAP_DAC_OVERRIDE)
// This is common in Docker/Podman containers but won't happen in CI
if unsafe { libc::geteuid() } == 0 {
if rustix::process::geteuid().is_root() {
println!("Skipping test when running as root (file permissions bypassed)");
return;
}