1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7696 from nyurik/id-fix

bug: fix id printing of egid
This commit is contained in:
Sylvestre Ledru 2025-04-08 17:01:31 -04:00 committed by GitHub
commit 1abe65cfdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -587,8 +587,7 @@ fn id_print(state: &State, groups: &[u32]) {
}
if !state.user_specified && (egid != gid) {
print!(
" egid={}({})",
euid,
" egid={egid}({})",
entries::gid2grp(egid).unwrap_or_else(|_| {
show_error!("cannot find name for group ID {}", egid);
set_exit_code(1);