summaryrefslogtreecommitdiffstats
path: root/usr.bin/id
Commit message (Collapse)AuthorAgeFilesLines
* Add flag to choose whether to use getgrouplist(3) or getgroups(2)robert2005-04-291-6/+11
| | | | | | | | | 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).
* Fix spelling error.robert2005-04-291-1/+1
|
* We need to pass NGROUPS + 1 to getgrouplist(3) to displayrobert2005-04-281-1/+1
| | | | | | 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.
* - Merge two functions for printing `id' output.robert2005-04-281-57/+33
| | | | | | | | | | | | 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
* Remove unused variables.stefanf2005-04-091-2/+1
|
* Added the EXIT STATUS section where appropriate.ru2005-01-173-3/+3
|
* Pass an array of gid_t rather than an array of int to getgroups().stefanf2004-10-021-1/+2
| | | | PR: 56646
* Add missing %s so that all of the usage message gets printed.dwmalone2004-05-192-1/+2
| | | | Bump WARNS to 6 while I'm here.
* Bump document date on behalf of the -M option.ru2004-05-181-1/+1
|
* Add "-M" argument to id(1), which permits the id command to be usedrwatson2004-05-032-3/+46
| | | | | | | | 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
* ANSIify function definitions.dwmalone2002-09-041-16/+8
| | | | | | | | | 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
* Remove local prototypes for main().jmallett2002-08-191-1/+0
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* remove __Pimp2002-03-221-8/+8
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Fold groups(1) and whoami(1) into id(1).ru2001-09-144-87/+35
|
* Now that we have it, replace `afterinstall' target with SCRIPTS.ru2001-09-131-7/+1
|
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-153-9/+3
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Silence warnings (most about constness) and clamp down with WARNS=2.dd2001-05-282-5/+7
| | | | Tested on i386 and alpha.
* Print commas in the group list in user(). current() already did this.dd2001-05-201-1/+1
| | | | | Reviewed by: ru, sheldonh Inspired by: OpenBSD, NetBSD
* MAN[1-9] -> MAN.ru2001-03-271-1/+2
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-203-8/+8
|
* .UC -> .Osru2000-11-062-2/+2
|
* DIAGNOSTICS section name missing and .Nm changescharnier2000-03-263-11/+11
|
* Cast pw_change and pw_expire to long and fix the format specifier accordingly.billf1999-09-061-2/+2
|
* Remove unused variables.chris1999-09-051-3/+1
|
* Properly document -P and -p flags.chris1999-09-012-1/+4
|
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-122-0/+2
| | | | | | | | | | | | | | | | | 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
* Clean up some ambiguous nested if/elses.billf1999-07-041-3/+5
|
* Add "-P" display the id as a password file entry.obrien1998-08-212-6/+40
| | | | Submitted by: terry
* Use `.Nm id' instead of `.Nm' for the synopsis lines.alex1998-02-281-5/+5
| | | | PR: 5876
* Missing newline when euid != ruid.steve1998-02-181-3/+3
| | | | | PR: 5778 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
* Use err(3) instead of local redefinition. Silent -Wall.charnier1997-07-151-51/+26
|
* Show the real revision date and not the date that thissteve1997-06-233-4/+4
| | | | manpage is being viewed.
* ``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)jmg1997-04-271-14/+20
| | | | | add missing Id's other minor clean ups
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* ${DESTDIR}/usr/bin -> ${DESTDIR}${BINDIR}wosch1997-02-021-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | 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.
* add PATH variablewosch1996-11-051-2/+4
|
* add PATH variablewosch1996-11-051-2/+4
| | | | better argument handling
* Fixed bug where 'id <user>' output the wrong group name (the user namedg1995-08-281-11/+11
| | | | was output instead). Pointed out by Chael Hall <nowhere@chaos.taylored.com>.
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-251-2/+2
| | | | specified in the top level Makefiles.
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Make `id' and `groups' somewhat faster and less cpu-intensive :-)wollman1994-10-112-2/+2
| | | | Really!
* More merry makefile munging for man page compatability.wollman1994-08-051-3/+1
|
* Cleanup so that make install can run, many install: maninstall changedrgrimes1994-05-301-2/+3
| | | | to just install:, sperious targets and CLEANFILES removed.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-277-0/+702
OpenPOWER on IntegriCloud