Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix id -A when the subject has an extended subject token associated with | csjp | 2007-10-14 | 1 | -7/+39 |
| | | | | | | | | | | | | | 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 | ||||
* | Fix SUSv3 compliance: Use a single comma instead of comma and space to separate | stefanf | 2006-12-29 | 1 | -1/+1 |
| | | | | | | | additional group entries. PR: 107298 Submitted by: Joost Bekkers | ||||
* | Improve markup. | ru | 2006-12-23 | 1 | -1/+2 |
| | |||||
* | Do not exit without printing the id information if the uid of the | mpp | 2006-12-09 | 1 | -6/+15 |
| | | | | user executing the command cannot be looked up in the password file. | ||||
* | Add a -a option as a no-op for Solaris compatibility, as briefly | ceri | 2006-09-26 | 2 | -2/+8 |
| | | | | | | | | 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 | ||||
* | Fix both arguments to err(). | ru | 2006-09-26 | 1 | -1/+1 |
| | |||||
* | Rename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag | rwatson | 2006-09-23 | 2 | -21/+20 |
| | | | | | | | as found on Solaris. Requested by: ceri MFC after: 3 days | ||||
* | Add a -a argument to id(1), which causes id(1) to print out process | rwatson | 2006-09-23 | 3 | -3/+57 |
| | | | | | | | | audit properties, including the audit user id. This can be quite helpful in debugging audit problems. Obtained from: TrustedBSD Project MFC after: 3 days | ||||
* | Print the euid after the gid as demanded by POSIX. | stefanf | 2006-05-28 | 1 | -3/+3 |
| | | | | | | Submitted by: Martin Nagy <nagy.martin@gmail.com> PR: 96239 MFC after: 2 weeks | ||||
* | Add flag to choose whether to use getgrouplist(3) or getgroups(2) | robert | 2005-04-29 | 1 | -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. | robert | 2005-04-29 | 1 | -1/+1 |
| | |||||
* | We need to pass NGROUPS + 1 to getgrouplist(3) to display | robert | 2005-04-28 | 1 | -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. | robert | 2005-04-28 | 1 | -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. | stefanf | 2005-04-09 | 1 | -2/+1 |
| | |||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 3 | -3/+3 |
| | |||||
* | Pass an array of gid_t rather than an array of int to getgroups(). | stefanf | 2004-10-02 | 1 | -1/+2 |
| | | | | PR: 56646 | ||||
* | Add missing %s so that all of the usage message gets printed. | dwmalone | 2004-05-19 | 2 | -1/+2 |
| | | | | Bump WARNS to 6 while I'm here. | ||||
* | Bump document date on behalf of the -M option. | ru | 2004-05-18 | 1 | -1/+1 |
| | |||||
* | Add "-M" argument to id(1), which permits the id command to be used | rwatson | 2004-05-03 | 2 | -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. | dwmalone | 2002-09-04 | 1 | -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(). | jmallett | 2002-08-19 | 1 | -1/+0 |
| | |||||
* | Consistently use FBSDID | obrien | 2002-06-30 | 1 | -2/+2 |
| | |||||
* | remove __P | imp | 2002-03-22 | 1 | -8/+8 |
| | |||||
* | Remove leaf node WARNS?=2 (that mainly I added). This should | markm | 2002-02-08 | 1 | -1/+0 |
| | | | | help the GCC3 transition and CURRENT in general. | ||||
* | Fold groups(1) and whoami(1) into id(1). | ru | 2001-09-14 | 4 | -87/+35 |
| | |||||
* | Now that we have it, replace `afterinstall' target with SCRIPTS. | ru | 2001-09-13 | 1 | -7/+1 |
| | |||||
* | mdoc(7) police: utilize the new .Ex macro. | ru | 2001-08-15 | 3 | -9/+3 |
| | |||||
* | mdoc(7) police: removed HISTORY info from the .Os call. | ru | 2001-07-10 | 1 | -1/+1 |
| | |||||
* | Silence warnings (most about constness) and clamp down with WARNS=2. | dd | 2001-05-28 | 2 | -5/+7 |
| | | | | Tested on i386 and alpha. | ||||
* | Print commas in the group list in user(). current() already did this. | dd | 2001-05-20 | 1 | -1/+1 |
| | | | | | Reviewed by: ru, sheldonh Inspired by: OpenBSD, NetBSD | ||||
* | MAN[1-9] -> MAN. | ru | 2001-03-27 | 1 | -1/+2 |
| | |||||
* | mdoc(7) police: use the new features of the Nm macro. | ru | 2000-11-20 | 3 | -8/+8 |
| | |||||
* | .UC -> .Os | ru | 2000-11-06 | 2 | -2/+2 |
| | |||||
* | DIAGNOSTICS section name missing and .Nm changes | charnier | 2000-03-26 | 3 | -11/+11 |
| | |||||
* | Cast pw_change and pw_expire to long and fix the format specifier accordingly. | billf | 1999-09-06 | 1 | -2/+2 |
| | |||||
* | Remove unused variables. | chris | 1999-09-05 | 1 | -3/+1 |
| | |||||
* | Properly document -P and -p flags. | chris | 1999-09-01 | 2 | -1/+4 |
| | |||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-28 | 6 | -6/+6 |
| | |||||
* | Add $Id$, to make it simpler for members of the translation teams to | nik | 1999-07-12 | 2 | -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. | billf | 1999-07-04 | 1 | -3/+5 |
| | |||||
* | Add "-P" display the id as a password file entry. | obrien | 1998-08-21 | 2 | -6/+40 |
| | | | | Submitted by: terry | ||||
* | Use `.Nm id' instead of `.Nm' for the synopsis lines. | alex | 1998-02-28 | 1 | -5/+5 |
| | | | | PR: 5876 | ||||
* | Missing newline when euid != ruid. | steve | 1998-02-18 | 1 | -3/+3 |
| | | | | | PR: 5778 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at> | ||||
* | Use err(3) instead of local redefinition. Silent -Wall. | charnier | 1997-07-15 | 1 | -51/+26 |
| | |||||
* | Show the real revision date and not the date that this | steve | 1997-06-23 | 3 | -4/+4 |
| | | | | manpage is being viewed. | ||||
* | ``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam) | jmg | 1997-04-27 | 1 | -14/+20 |
| | | | | | add missing Id's other minor clean ups | ||||
* | compare return value from getopt against -1 rather than EOF, per the final | imp | 1997-03-29 | 1 | -1/+1 |
| | | | | posix standard on the topic. | ||||
* | Revert $FreeBSD$ to $Id$ | peter | 1997-02-22 | 2 | -2/+2 |
| | |||||
* | ${DESTDIR}/usr/bin -> ${DESTDIR}${BINDIR} | wosch | 1997-02-02 | 1 | -2/+2 |
| | |||||
* | Make the long-awaited change from $Id$ to $FreeBSD$ | jkh | 1997-01-14 | 2 | -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. |