summaryrefslogtreecommitdiff
path: root/usr.bin/id
AgeCommit message (Collapse)Author
2024-11-04Ignore extra groups that don't fit in the buffer passed to getgrouplist(3)Jeremie Courreges-Anglas
Our kernel supports 16 groups (NGROUPS_MAX), but nothing prevents an admin from adding a user to more groups. With that tweak we'll keep on ignoring them instead of potentially reading past the buffer passed to getgrouplist(3). That behavior is explicitely described in initgroups(3). ok millert@ gilles@
2023-05-30fail when an argument is given on 'id -R'Omar Polo
from Lucas (lucas [at] sexy [dot] is). ok millert@
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2022-07-25If a command or interface first appeared in PWB/UNIX, UNIX System III orJonathan Gray
UNIX System V mention it. Only do so in manual pages with a pre-existing HISTORY section. Prompted by the comparison of System V and BSD commands and interfaces in Sun's "System V Enhancements Overview" document. checked against manuals on bitsavers, TUHS archive and CSRG archive CDs ok jmc@ schwarze@
2017-05-30usage and order tweaks from jmcTed Unangst
2017-05-30id -R: make current rdomain more easily accessible to the shellTed Unangst
ok benno deraadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-05tame "stdio getpw" right at the top; this runs the whole gamut ofTheo de Raadt
getpw/gr type functions allowed in that set. ok doug
2015-10-05small KNFTheo de Raadt
2015-05-19Add -c flag to display the user's login class. OK espie@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-07-14Eliminate a warning from -Wformat=2 by using an additional 'prefix'Philip Guenther
variable instead of using a variable format string for printf
2013-09-06teach id(1) about whoami(1) and groups(1) run modes; removes shell wrappersOkan Demirmen
OK millert@
2012-01-15Document what remains of the 2BSD heritage.Ingo Schwarze
All facts found on the CSRG CD 1 in the 2bsd directory. Feedback and ok jmc@, ok sobrado@. Note the large number of 3BSD -> 2BSD changes. Kirk McKusick asked Cynthia Livingston (cael@, of USENIX, who converted most manuals from man(7) to mdoc(7) for the 4.3BSD-Net/2 release and added lots of historical information around that time) what happened in this respect, and she answered that she often wrote "appeared in 3BSD" when she was unsure of when a utility was added. Thanks to Kirk and Cynthia for that clarification.
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-12source code can fit on a 80-column display, no binary change.Igor Sobrado
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-04replace hardcoded exit values with .Ex macros;Igor Sobrado
ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2004-11-16-p supports optional [user] arg;Jason McIntyre
from matthew clarke;
2004-07-19use strtonum with proper bounds instead of abusing strtoul; ok millertPeter Valchev
2004-05-31zap unused variables, ok beck@Pedro Martelletto
2004-01-07Proper use of uid_t and did_t types instead of a generic int.Thierry Deval
Lovingly baited by deraadt@. Ok himself, otto@
2003-07-14.Ic Nm -> .IcJason McIntyre
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-06-20use execPaul Janzen
2001-06-05Remove unnecessary .Nm arguments; mpech@prosoft.org.lvAaron Campbell
2001-03-27Get rid of bogus .UC macro, likely an artifact of old mdoc conversions.Aaron Campbell
2000-03-07Various cleanup.Aaron Campbell
2000-03-04In Unix land we prefer "whitespace" to "white space" or "white-space". AtAaron Campbell
least, this is the impression I get from looking at a lot of Perl docs.
1999-09-25use execPaul Janzen
1999-08-18Fix a printf() so `id' and `id username' produce similar output; inspired byAaron Campbell
NetBSD, millert@ok.
1999-07-23- Missing newline when euid != ruid; from FreeBSDAaron Campbell
- Also, sync the usage() to the man page (add -p syntax).
1999-07-07The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os.Aaron Campbell
Out of the approximately 1450 man pages, only about 90 of them were wrong. Thanks to kwesterback@home.com for coming up with a script and patch to repair this. The patch also inserted a .Os macro in the few man pages that were missing one.
1999-07-04correct use of .Nm; some other formatting nitsAaron Campbell
1999-07-02consistent .Dd usage; proper format is: .Dd Month DD, YYYYAaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell
1997-07-25use err(3)Michael Shalayeff
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-06-30Wall, and seperate uid and gid typesTheo de Raadt
1997-05-30for i in `find . -name \*.[123456789] -exec grep '^.Dd ' {} /dev/null \; | \Theo de Raadt
grep '"' | cut -d':' -f1`; do sed -e '/^.Dd /s/"//g' -e '/^.Dd /s/\(^.Dd [A-Za-z]*\) \(.*\)$/\1, \2/' <$i >x cat x > $i done
1997-04-27COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIPTodd C. Miller
This fixes namespace problems where STRIP is sometimes used as the name of the strip(1) to use and other times used as the flag to send install(1) when stripping (or not). COPY doesn't have this problem (yet) but was poorly named.
1997-02-07I wrote these public domain versions. They are faster due to two optimizationsTheo de Raadt