test_tail.rs: remove unsafe

This commit is contained in:
oech3
2026-04-28 08:35:40 +02:00
committed by Daniel Hofstetter
parent c121d2445c
commit c7e2957a0d
+1 -1
View File
@@ -580,7 +580,7 @@ fn test_permission_denied_is_not_reported_as_not_found() {
use std::fs;
use std::os::unix::fs::PermissionsExt;
if unsafe { libc::geteuid() } == 0 {
if rustix::process::geteuid().is_root() {
return;
}