mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test_tail.rs: remove unsafe
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user