Home | History | Annotate | only in /src/usr.bin/id
History log of /src/usr.bin/id
RevisionDateAuthorComments
 1.13 16-Aug-2011  christos document non-literal format strings
 1.12 14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.11 08-Oct-2006  peter branches: 1.11.26;
WFORMAT is no more...
 1.10 22-Nov-2004  peter WARNS=3 clean.
 1.9 11-Oct-2000  is More format string cleanup by sommerfeld.
 1.8 14-Oct-1998  wsanchez branches: 1.8.2; 1.8.10;
Replace groups and whoami sh scripts with hard links to id.
 1.7 24-Mar-1997  christos - Makefile cleanups
 1.6 09-Jan-1997  tls RCS ID police
 1.5 18-Oct-1996  thorpej Use ${INSTALL}.
 1.4 22-Dec-1994  cgd specify man pages the new way.
 1.3 05-May-1994  cgd update
 1.2 31-Jul-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 05-May-1994  cgd oops
 1.1.1.2 05-May-1994  cgd new 'id'
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.10.1 18-Oct-2000  tv Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.8.2.1 19-Oct-2000  he Pull up revision 1.9 (requested by he):
Format string cleanup.
 1.11.26.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11 04-Jul-2017  wiz Add EXIT STATUS section. Use Ex. Remove duplicate RCS Id.
 1.10 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.8 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 28-Apr-1998  fair Fix man to mdoc conversion mistakes, mostly of the form ^\.[A-Z][A-Z]
 1.5 19-Oct-1997  lukem WARNSify, fix .Nm usage, deprecate register, use err() from <err.h>
 1.4 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.3 09-Jan-1997  tls RCS ID police
 1.2 05-May-1994  cgd update
 1.1 05-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-May-1994  cgd oops
 1.1.1.1 05-May-1994  cgd new 'id'
 1.4 14-Oct-1998  wsanchez Replace groups and whoami sh scripts with hard links to id.
 1.3 09-Jan-1997  tls RCS ID police
 1.2 05-May-1994  cgd update
 1.1 05-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-May-1994  cgd oops
 1.1.1.1 05-May-1994  cgd new 'id'
 1.14 04-Jul-2017  wiz Add EXIT STATUS section. Use Ex.
 1.13 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.12 19-Nov-2004  peter id(1) -p supports optional [user] arg;
from matthew clarke via OpenBSD

ok wiz@
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.10 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.9 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.8 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.7 19-Oct-1997  lukem WARNSify, fix .Nm usage, deprecate register, use err() from <err.h>
 1.6 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.5 28-Sep-1995  perry Sync with 4.4BSD-Lite2
 1.4 05-May-1994  cgd update
 1.3 28-Aug-1993  jtc Document the fact that id is POSIX.2 compliant.
This manpage must have been derrived from the logname manpage, remove
logname cruft.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.4 28-Sep-1995  perry imported from 44lite2
 1.1.1.3 05-May-1994  cgd oops
 1.1.1.2 05-May-1994  cgd new 'id'
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.32 16-Sep-2011  joerg Use __dead
 1.31 12-Apr-2009  lukem fix sign-compare issues
 1.30 21-Jul-2008  lukem branches: 1.30.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.29 16-Nov-2007  jmmv branches: 1.29.8;
Make syntax checking for id(1), groups(1) and whoami(1) commands stronger so
that they conform to what the corresponding manual pages say. This makes all
the tests I recently introduced for these utilities pass.

pooka thinks this was time well spent ;-)
 1.28 16-Nov-2007  jmmv Drop trailing whitespace. On behalf of me.
 1.27 07-Jun-2006  liamjfoy branches: 1.27.10;
Print the euid after the gid as demanded by POSIX.

from freebsd rev 1.27
ok christos, joerg
 1.26 11-Mar-2006  christos branches: 1.26.2;
PR/33054: Nicolas Joly: id(1) sometimes report a duplicate group when a user
is not specified. This is because it prints getgid() and getgroups(). If the
getgid() is in the getgroups() set, it was printed twice. This is now detected
and the duplicate printing is avoided.
 1.25 30-Aug-2005  drochner id(1) didn't check the return value of getgrouplist(3) and used memory
outside the group array in the case that a user is member of more than
_SC_NGROUPS_MAX groups.
(This is probably also the problem behind PR bin/31069 by Zafer Aydogan.)
So check the return value and retry with sufficiently allocated memory
in case the initial _SC_NGROUPS_MAX groups are not enough.
 1.24 22-Nov-2004  peter branches: 1.24.2;
Add some missing static/const.

ok wiz@
 1.23 22-Nov-2004  peter ANSIfy & KNF.

ok wiz@
 1.22 22-Nov-2004  peter Print the correct usage message for whoami(1) and groups(1).

ok wiz@
 1.21 19-Nov-2004  peter id(1) -p supports optional [user] arg;
from matthew clarke via OpenBSD

ok wiz@
 1.20 21-Oct-2003  fvdl Don't compare an integer to NULL.
 1.19 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.18 19-Feb-2001  cgd convert to use getprogname()
 1.17 05-Jan-2001  itohy Add missing newline of "id -p" output.
 1.16 09-Nov-1999  drochner Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
 1.15 17-Aug-1999  mycroft branches: 1.15.4;
Make the group list format consistent between `id' and `id userid'. Also make
it look like what Solaris and Linux use (comma but no space between items).
 1.14 19-Dec-1998  christos branches: 1.14.2;
use sysconf to get the max number of groups instead of NGROUPS.
 1.13 14-Oct-1998  thorpej Make this compile again, and fix some whitespace lossage.
 1.12 14-Oct-1998  wsanchez Replace groups and whoami sh scripts with hard links to id.
 1.11 12-Oct-1998  erh Add "-p" usage line.
 1.10 25-Aug-1998  ross Add { and } to shut up egcs. Reformat the more questionable code.
 1.9 19-Oct-1997  lukem getopt returns -1 not EOF
 1.8 19-Oct-1997  lukem WARNSify, fix .Nm usage, deprecate register, use err() from <err.h>
 1.7 28-Sep-1995  perry Sync with 4.4BSD-Lite2
 1.6 06-Oct-1994  mycroft Fix RCS id format.
 1.5 05-May-1994  cgd update
 1.4 01-Apr-1994  jtc Getgroup's second argument is now a gid_t ptr.
 1.3 09-Dec-1993  cgd fix from piero@strider.st.dsi.unimi.it (Piero Serini) to get
"id <login>" to dtrt with primary group name.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.4 28-Sep-1995  perry imported from 44lite2
 1.1.1.3 05-May-1994  cgd oops
 1.1.1.2 05-May-1994  cgd new 'id'
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.2.1 09-Oct-1999  cgd pull up rev 1.15 from trunk (requested by mycroft):
Fix inconsistent format between `id' and `id userid'.
 1.15.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.24.2.1 12-Sep-2005  tron Pull up following revision(s) (requested by drochner in ticket #772):
usr.bin/id/id.c: revision 1.25
id(1) didn't check the return value of getgrouplist(3) and used memory
outside the group array in the case that a user is member of more than
_SC_NGROUPS_MAX groups.
(This is probably also the problem behind PR bin/31069 by Zafer Aydogan.)
So check the return value and retry with sufficiently allocated memory
in case the initial _SC_NGROUPS_MAX groups are not enough.
 1.26.2.1 19-Jun-2006  chap Sync with head.
 1.27.10.1 09-Jan-2008  matt sync with HEAD
 1.29.8.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.30.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.10 02-Oct-2016  abhinav Move information about exit values from DESCRIPTION to EXIT STATUS section.
ok wiz@
 1.9 07-Aug-2003  agc branches: 1.9.80;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.8 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 28-Apr-1998  fair Fix man to mdoc conversion mistakes, mostly of the form ^\.[A-Z][A-Z]
 1.5 19-Oct-1997  lukem WARNSify, fix .Nm usage, deprecate register, use err() from <err.h>
 1.4 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.3 09-Jan-1997  tls RCS ID police
 1.2 05-May-1994  cgd update
 1.1 05-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-May-1994  cgd oops
 1.1.1.1 05-May-1994  cgd new 'id'
 1.9.80.1 04-Nov-2016  pgoyette Sync with HEAD
 1.4 14-Oct-1998  wsanchez Replace groups and whoami sh scripts with hard links to id.
 1.3 09-Jan-1997  tls RCS ID police
 1.2 05-May-1994  cgd update
 1.1 05-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 05-May-1994  cgd oops
 1.1.1.1 05-May-1994  cgd new 'id'

RSS XML Feed