summaryrefslogtreecommitdiff
path: root/usr.bin/chpass
AgeCommit message (Collapse)Author
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.
2001-08-20Powered by @mantoya.Mike Pechkin
o) fix bogus .Xr usage; millert@ ok.
2001-08-16Fix a typo and document login class field correctly.Todd C. Miller
Based on a patch from andrew.hoerter@NeuStar.com
2001-08-16extra arg to pw_mkdbTodd C. Miller
2001-08-16At Theo's request only print 'Please wait' if don't get the lockTodd C. Miller
on the first try.
2001-08-15Move locking of the passwd file *after* we have gotten a new passwordTodd C. Miller
from the user. Set real/effective/saved uids to 0 and block all signals so the lock cannot be kept longer than necessary. If we cannot lock, try again every 1/4 second for 2 seconds and then ask the user what they wish to do (keep trying, quit). Same as in local_passwd.c but here we need to remove a temp file in the SIGINT handler because _exit() doesn't call atexit() routines.
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-06-23ok, tmac is now fixedTheo de Raadt
2001-06-23join .%A entries; most by bk@rt.fmTheo de Raadt
2000-11-26Update for pw_mkdb(3) interface change. All but vipw and userdel canTodd C. Miller
specify a username (and thus avoid rebuilding the while database).
2000-11-21Sync usage() output with man page; mpech@prosoft.org.lvAaron Campbell
2000-10-17- Add a DIAGNOSTICS section explaining "the passwd file is busy".Aaron Campbell
- Some other cleanups.
2000-10-07Reword a sentence to correct bad grammar.Aaron Campbell
2000-09-26Do not permit non-printable characters in the passwd file; deraadt@ okAaron Campbell
2000-09-03Boring... Add :L modifier to all tweakable variables tests.Marc Espie
Closes PR 1246
2000-04-15- For consistency, `super-user' -> `superuser' in all cases.Aaron Campbell
- Some punctuation fixes. - Some `id' -> `ID'.
2000-03-23Fix some formatting problems I missed before.Aaron Campbell
2000-03-23Change prompt string from "Location:" to "Office Location:", to disambiguateAaron Campbell
from what is expected, and to be consistent with finger(1); from FreeBSD. This file was missed from a previous commit. :-(
2000-03-22Note that ``chfn'' and ``chsh'' are synonyms for ``chpass'', and reflect thisAaron Campbell
in the NAME section as well; d@, deraadt@ ok
2000-03-21The BUGS section comes after HISTORY, usually.Aaron Campbell
2000-03-05Change prompt string from "Location:" to "Office Location:", to disambiguateAaron Campbell
from what is expected, and to be consistent with finger(1); from FreeBSD.
1999-12-15these strcpy are fineTheo de Raadt
1999-12-05Fix temp file unlinking. We use atexit() since the libutil passwdTodd C. Miller
routines do their own exit.