Skip to content

Commit a207f99

Browse files
committed
bug: fix id printing of egid
Spotted while doing format arg inlining, and confirmed in uutils#7689 (comment)
1 parent a77e218 commit a207f99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/uu/id/src/id.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,7 @@ fn id_print(state: &State, groups: &[u32]) {
587587
}
588588
if !state.user_specified && (egid != gid) {
589589
print!(
590-
" egid={}({})",
591-
euid,
590+
" egid={egid}({})",
592591
entries::gid2grp(egid).unwrap_or_else(|_| {
593592
show_error!("cannot find name for group ID {}", egid);
594593
set_exit_code(1);

0 commit comments

Comments
 (0)