mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 04:57:45 +00:00
commit
2c095f79b0
1 changed files with 2 additions and 2 deletions
|
@ -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) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue