mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
+2
-2
@@ -141,9 +141,9 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||
let id = if possible_pw.is_some() {
|
||||
possible_pw.unwrap().pw_uid
|
||||
} else if rflag {
|
||||
unsafe { getgid() }
|
||||
unsafe { getuid() }
|
||||
} else {
|
||||
unsafe { getegid() }
|
||||
unsafe { geteuid() }
|
||||
};
|
||||
|
||||
let pw = unsafe { getpwuid(id) };
|
||||
|
||||
Reference in New Issue
Block a user