History log of /freebsd-10.0-release/usr.bin/id/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


227203 06-Nov-2011 ed

Correct the change made in r227166.

This function is only compiled in when building WITH_AUDIT.


227166 06-Nov-2011 ed

Add missing static keywords to id(1)


219304 05-Mar-2011 trasz

Add two new system calls, setloginclass(2) and getloginclass(2). This makes
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL. This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).

Reviewed by: kib (as part of a larger patch)


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


194494 19-Jun-2009 brooks

In preparation for raising NGROUPS and NGROUPS_MAX, change base
system callers of getgroups(), getgrouplist(), and setgroups() to
allocate buffers dynamically. Specifically, allocate a buffer of size
sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow).

This (or similar gymnastics) is required for the code to actually follow
the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime
and where getgroups may return {NGROUPS_MAX}+1 results on systems like
FreeBSD which include the primary group.

In id(1), don't pointlessly add the primary group to the list of all
groups, it is always the first result from getgroups(). In principle
the old code was more portable, but this was only done in one of the two
places where getgroups() was called to the overall effect was pointless.

Document the actual POSIX requirements in the getgroups(2) and
setgroups(2) manpages. We do not yet support a dynamic NGROUPS, but we
may in the future.

MFC after: 2 weeks


172621 14-Oct-2007 csjp

Fix id -A when the subject has an extended subject token associated with
them (for example when they have logged in from an ip6 source).

- Stick with the initial call to getaudit(2), if it returns E2BIG, use
getaudit_addr(2) instead and set the "extended" flag to indicate that
we the calling credential has an extended subject state.
- Additionally, add the printing of the machine/at_addr (the ip/ip6
addresses)

MFC after: 1 week
Obtained from: TrustedBSD Project


165626 29-Dec-2006 stefanf

Fix SUSv3 compliance: Use a single comma instead of comma and space to separate
additional group entries.

PR: 107298
Submitted by: Joost Bekkers


165496 23-Dec-2006 ru

Improve markup.


165028 09-Dec-2006 mpp

Do not exit without printing the id information if the uid of the
user executing the command cannot be looked up in the password file.


162672 26-Sep-2006 ceri

Add a -a option as a no-op for Solaris compatibility, as briefly
discussed on src-committers. This is intentionally not included in the
usage() function as it would confuse the output too much.

Approved by: jhb
MFC after: 1 week


162656 26-Sep-2006 ru

Fix both arguments to err().


162578 23-Sep-2006 rwatson

Rename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag
as found on Solaris.

Requested by: ceri
MFC after: 3 days


162571 23-Sep-2006 rwatson

Add a -a argument to id(1), which causes id(1) to print out process
audit properties, including the audit user id. This can be quite
helpful in debugging audit problems.

Obtained from: TrustedBSD Project
MFC after: 3 days


159008 28-May-2006 stefanf

Print the euid after the gid as demanded by POSIX.

Submitted by: Martin Nagy <nagy.martin@gmail.com>
PR: 96239
MFC after: 2 weeks


145672 29-Apr-2005 robert

Add flag to choose whether to use getgrouplist(3) or getgroups(2)
to the id_print() function.

Use getgrouplist(3) for the case when an user was specified,
and getgroups(2) when no user was given.
That reverts to the expected behaviour and makes it easy to
implement an option later to force using getgrouplist(3).


145671 29-Apr-2005 robert

Fix spelling error.


145629 28-Apr-2005 robert

We need to pass NGROUPS + 1 to getgrouplist(3) to display
NGROUPS groups. getgrouplist(3) may put a duplicate group
id into the passed array (it sets [0] and [1] to the value
of the gid argument), but id_print() sorts them out.


145628 28-Apr-2005 robert

- 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


144840 09-Apr-2005 stefanf

Remove unused variables.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


136051 02-Oct-2004 stefanf

Pass an array of gid_t rather than an array of int to getgroups().

PR: 56646


129458 19-May-2004 dwmalone

Add missing %s so that all of the usage message gets printed.
Bump WARNS to 6 while I'm here.


129402 18-May-2004 ru

Bump document date on behalf of the -M option.


128900 03-May-2004 rwatson

Add "-M" argument to id(1), which permits the id command to be used
to print the MAC label of the current process. "-M" selected as that's
what is used in Trusted IRIX.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research


102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


102084 19-Aug-2002 jmallett

Remove local prototypes for main().


99112 30-Jun-2002 obrien

Consistently use FBSDID


92920 22-Mar-2002 imp

remove __P


90415 08-Feb-2002 markm

Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.


83452 14-Sep-2001 ru

Fold groups(1) and whoami(1) into id(1).


83409 13-Sep-2001 ru

Now that we have it, replace `afterinstall' target with SCRIPTS.


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


77314 28-May-2001 dd

Silence warnings (most about constness) and clamp down with WARNS=2.
Tested on i386 and alpha.


76907 20-May-2001 dd

Print commas in the group list in user(). current() already did this.

Reviewed by: ru, sheldonh
Inspired by: OpenBSD, NetBSD


74848 27-Mar-2001 ru

MAN[1-9] -> MAN.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68384 06-Nov-2000 ru

.UC -> .Os


58603 26-Mar-2000 charnier

DIAGNOSTICS section name missing and .Nm changes


51032 06-Sep-1999 billf

Cast pw_change and pw_expire to long and fix the format specifier accordingly.


50979 05-Sep-1999 chris

Remove unused variables.


50775 01-Sep-1999 chris

Properly document -P and -p flags.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48792 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


38468 21-Aug-1998 obrien

Add "-P" display the id as a password file entry.

Submitted by: terry


33930 28-Feb-1998 alex

Use `.Nm id' instead of `.Nm' for the synopsis lines.

PR: 5876


33576 18-Feb-1998 steve

Missing newline when euid != ruid.

PR: 5778
Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>


27418 15-Jul-1997 charnier

Use err(3) instead of local redefinition. Silent -Wall.


26826 23-Jun-1997 steve

Show the real revision date and not the date that this
manpage is being viewed.


25189 27-Apr-1997 jmg

``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)

add missing Id's
other minor clean ups


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22210 02-Feb-1997 wosch

${DESTDIR}/usr/bin -> ${DESTDIR}${BINDIR}


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


19420 05-Nov-1996 wosch

add PATH variable


19419 05-Nov-1996 wosch

add PATH variable
better argument handling


10359 28-Aug-1995 dg

Fixed bug where 'id <user>' output the wrong group name (the user name
was output instead). Pointed out by Chael Hall <nowhere@chaos.taylored.com>.


9701 25-Jul-1995 bde

Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.


8874 30-May-1995 rgrimes

Remove trailing whitespace.


3506 11-Oct-1994 wollman

Make `id' and `groups' somewhat faster and less cpu-intensive :-)

Really!


1866 05-Aug-1994 wollman

More merry makefile munging for man page compatability.


1637 30-May-1994 rgrimes

Cleanup so that make install can run, many install: maninstall changed
to just install:, sperious targets and CLEANFILES removed.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.