From ec72d08bf1799d53b11d12502eb8cabe67d89297 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Tue, 28 Apr 2026 17:52:33 +0900 Subject: [PATCH] test_nohup.rs: remove unsafe (#12052) --- tests/by-util/test_nohup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_nohup.rs b/tests/by-util/test_nohup.rs index f3fa0bc94..1024eecce 100644 --- a/tests/by-util/test_nohup.rs +++ b/tests/by-util/test_nohup.rs @@ -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; }