]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Merge two functions for printing `id' output.
authorrobert <robert@FreeBSD.org>
Thu, 28 Apr 2005 15:55:54 +0000 (15:55 +0000)
committerrobert <robert@FreeBSD.org>
Thu, 28 Apr 2005 15:55:54 +0000 (15:55 +0000)
commit56db316aaad6173d3c74d505e9a67df9c89026eb
tree1882b8930a194662087c967bd82a40ae36127389
parent5063114341528789e7028bb9807e2d1d364d9de9
 - 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
usr.bin/id/id.c