From a207f997a376c0cde1e092b296b73e5540335930 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 8 Apr 2025 12:19:44 -0400 Subject: [PATCH] bug: fix id printing of egid Spotted while doing format arg inlining, and confirmed in https://github.com/uutils/coreutils/pull/7689#issuecomment-2786827777 --- src/uu/id/src/id.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uu/id/src/id.rs b/src/uu/id/src/id.rs index 45081a526..1f8381903 100644 --- a/src/uu/id/src/id.rs +++ b/src/uu/id/src/id.rs @@ -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);