cvs commit: src/usr.bin/id id.c

John Baldwin jhb at FreeBSD.org
Thu Apr 28 10:55:41 PDT 2005


On Thursday 28 April 2005 11:55 am, Robert Drehmel wrote:
> 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

I thought that was a feature rather than a bug since it shows you your real 
actual credentials.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list