Date: Thu, 28 Apr 2005 15:55:54 +0000 (UTC) From: Robert Drehmel <robert@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/id id.c Message-ID: <200504281555.j3SFtsYB052286@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
robert 2005-04-28 15:55:54 UTC
FreeBSD src repository
Modified files:
usr.bin/id id.c
Log:
- Merge two functions for printing `id' output.
Showing the ids of both an user given by an argument to `id',
and the current user, is now handled in a single function.
Displaying the current user's ids was inaccurate because
getgroups(2) had been used. getgroups(2) returns the current
kernel state of a user's groups, which may not always be
correct if /etc/group was recently changed.
- Fix a few style bugs.
PR: bin/78085
Revision Changes Path
1.24 +33 -57 src/usr.bin/id/id.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504281555.j3SFtsYB052286>
