summaryrefslogtreecommitdiff
path: root/usr.bin/chpass
AgeCommit message (Collapse)Author
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2015-11-26Delete YP password related code. As a result, these can also beTheo de Raadt
pledged. Keep an eye out for regressions, because they could be uncomfortable. ok beck semarie
2015-11-18needs _shadow so it can rewrite the master.passwd fileTed Unangst
2015-09-14Supply DEF_WEAK() macro to suppress warnings during compilation viaPhilip Guenther
reach-around into libc noted by daniel@
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
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-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-10-26Prefer mkostemp(O_CLOEXEC) over mkstemp()+fcntl(F_SETFD)Philip Guenther
Prefer fopen("re") over fopen("r")+fcntl(F_SETFD) ok otto@ millert@
2014-02-16fix bibliographical references; from Jan Stary <hans at stare dot cz>Ingo Schwarze
feedback and ok jmc@
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok krw
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2013-04-18- use FD_CLOEXEC instead of 1Okan Demirmen
- use O_CLOEXEC with open() instead of open/fcntl from David Hill ok otto@
2012-06-20Correct English just like jsing@ did it in passwd/local_passwd.c rev. 1.38Ingo Schwarze
on April 27, 2008. While here, fix a typo and drop an obsolete BUGS section. "my typo so OK millert@ :-)" and OK jmc@
2012-06-19sync the descriptions of /etc/passwd;Jason McIntyre
issue spotted by f5b help/ok schwarze
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