summaryrefslogtreecommitdiff
path: root/usr.bin/chpass
AgeCommit message (Collapse)Author
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-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2009-04-30fix previous, admin may again set non-standard shell; ok millert@Jacek Masiulaniec
2009-03-05Call endusershell() at the end of ok_shell(), making a copy of theTodd C. Miller
(possibly) expanded shell as needed. OK deraadt@
2009-02-15in a secure YP context, a chpass would whack the user's password to *Theo de Raadt
which is clearly not the intent. PR 4177, fix from schwarze@usta.de
2008-12-16strptime() never sets tm_isdst, so set it to -1 before passing thePhilip Guenthe
struct tm to mktime() so that the calculation will follow the local DST rules ok millert@ otto@
2008-10-09remove unused variableCharles Longeau
ok millert@ jsing@
2008-07-08fix double "usage:"Igor Sobrado
2008-07-04fix compilation for !YP case; ok millert@Damien Miller
2008-06-24implement getpwnam_r() and getpwuid_r() -- very nearly a rewrite of theTheo de Raadt
entire file. much help from kurt, and tested by many
2008-06-19Moved the unset of TZ environment variable out of atot into main, removingTobias Stoeckmann
an unused static var and test out of atot. With input by jsing and millert, ok millert
2007-11-17Use mtimespec instead of mtime when comparing the timestamp of the editedTodd C. Miller
file. OK miod@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-27-a requires a separate synopsis;Jason McIntyre
from Daniel Polak via henning ok henning
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2007-01-15Fix -a when given an entry with an already existing user. Also, giveOtto Moerbeek
error message if a user arg has been given with -a. Noted by Dan Brosemer. ok millert@ jaredy@
2006-03-31tiny bits of lintTheo de Raadt
2006-03-30cast to uid_t where needed; ok deraadt@Robert Nagy
2006-03-30use size_t where needed; ok deraadt@Robert Nagy
2005-12-12ARGSUSED on signal handlerTheo de Raadt
2005-11-14use asprintfTheo de Raadt
2005-04-11move two snprintf out so easier to auditTheo de Raadt
2004-07-05Use strtonum() instead of assigning the value of strtoul() to a uid_t/gid_t.Todd C. Miller
Fixes a warning on 64bit platforms and is less error-prone. OK otto@
2004-05-10unbreak chsh, ok millertPeter Stromberg
2004-04-20Adapt to new pw_copy() API, closes PR 3698.Todd C. Miller
2003-11-26This is ISO C, use string concatenation, instead of bogus use of __CONCAT.Marc Espie
(hint: "a" and "b" can't be pasted as a valid C token...) okay millert@
2003-10-20typos from Jared Yanovich;Jason McIntyre
2003-07-02protosTheo de Raadt
2003-07-01update the table contents as well as the table widthAnil Madhavapeddy
pointed out by Dr. Mdoc jmc@
2003-07-01- no need for pathnames.h, just use <paths.h> insteadAnil Madhavapeddy
- bump mktemp randomness slightly from 8 -> 10 millert@ ok
2003-06-25put in a protoTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-17%u is 11 chars, not 10; ok miod deraadt millert teduPeter Valchev
2003-04-03Deal with files w/o a trailing newline before EOF. Found by mpech@Todd C. Miller
2003-02-07More paranoia, make sure temp file owner matches real uid.Todd C. Miller
2003-02-02More paranoia when opening temp file; don't follow symlinks andTodd C. Miller
require that the link count be one. Prompted by a report from Marc Bevand. deraadt@ OK
2002-07-31When I got removed the use of atexit() I missed the fact that edit()Todd C. Miller
calls pw_error() which in turn calls exit(). Now edit() returns its status so the temp file gets cleaned up nicely if the user makes no changes or if an error occurred. Problem noticed by deraadt@
2002-06-27move protosTheo de Raadt
2002-06-27There is absolutely no reason for the "tempname" or dfd variablesTodd C. Miller
to exist outside the scope of the 'op == EDITENTRY' code block. This allows us to get rid of the atexit() call and tempcleanup().
2002-06-27cleanup; mpech & millert okTheo de Raadt
2002-06-04spelling; raj@cerias.purdue.eduTheo de Raadt
2002-05-29more snprintfTheo de Raadt
2002-03-14Remove \n from err/errx/warn/warnx().Mike Pechkin
millert@ ok
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.
2002-02-13When you give command examples and etc., in a manual page prefix them with:Mike Pechkin
$ command or # command deraadt@ ok
2001-11-23oops. Thx mpech@Marc Espie
2001-11-22Bad .IMPSRC.Marc Espie
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-08-27Instead of prompting the user whether or not they wish to continue toTodd C. Miller
wait for the lock on password file just tell the user to interrupt with ^C. This simplifies the locking loop a bit. Update man page to this effect.