diff options
author | Elliott Hughes <enh@google.com> | 2017-09-29 15:20:26 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-10-17 18:34:52 -0500 |
commit | b93630f5a198b86cf10d5f594ee7254ac0873eb3 (patch) | |
tree | 4cfc2ee9396bb93f303f731daaf1ae77a1579328 | |
parent | 11c385314ac0fac9694509639b03aa88a2ee5f6c (diff) | |
download | toybox-b93630f5a198b86cf10d5f594ee7254ac0873eb3.tar.gz |
Fix groups(1) and id -G.
Both should only output the groups.
-rw-r--r-- | toys/posix/id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/id.c b/toys/posix/id.c index 4b732b1b..daa4b9e2 100644 --- a/toys/posix/id.c +++ b/toys/posix/id.c @@ -107,7 +107,7 @@ static void do_id(char *username) grp = xgetgrgid(i ? gid : egid); if (flags & FLAG_g) s_or_u(grp->gr_name, grp->gr_gid, 1); - if (!(toys.optflags&(FLAG_g|FLAG_Z))) { + if (!(toys.optflags&(FLAG_G|FLAG_g|FLAG_Z))) { showid("uid=", pw->pw_uid, pw->pw_name); showid(" gid=", grp->gr_gid, grp->gr_name); |