Skip to content

Commit c7e2957

Browse files
oech3cakebaker
authored andcommitted
test_tail.rs: remove unsafe
1 parent c121d24 commit c7e2957

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/by-util/test_tail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ fn test_permission_denied_is_not_reported_as_not_found() {
580580
use std::fs;
581581
use std::os::unix::fs::PermissionsExt;
582582

583-
if unsafe { libc::geteuid() } == 0 {
583+
if rustix::process::geteuid().is_root() {
584584
return;
585585
}
586586

0 commit comments

Comments
 (0)