summaryrefslogtreecommitdiff
path: root/usr.bin/chpass
AgeCommit message (Collapse)Author
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.
1999-11-28Check for size change as well as change in time. Scripted changesHakan Olsson
usually finish in less than a second. ('vipw' already does this.)
1999-09-29Check malloc(3) return. deraadt@ okAlex Feldman
1999-08-21Document the YP optionsNiklas Hallqvist
1999-08-06uid_t and gid_t, and use %uTheo de Raadt
1999-07-04correct use of .Nm; some other formatting nitsAaron 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... :/
1999-05-16Cleanup xrefs under SEE ALSO. Specifically:Alex Feldman
- Sort xrefs by section, and then alphabetically. - Add missing commas between xref items. - Remove commas from the last xref entry. - Remove duplicate entries.
1998-09-23usr.bin/ man page repairs, a - eAaron Campbell
1998-08-03use __prognameTodd C. Miller
1998-08-02add close on exec flag to all opensTodd C. Miller
1998-06-14fix gecos subfield descriptionTheo de Raadt
1998-05-29Remove shadow decl.Jason Downs
1998-05-29put temp file _PATH_VARTMPTodd C. Miller
1998-05-28unlink tmpfile; noted by chris@dqc.orgTheo de Raadt
1998-05-28permit any gecos field to be emptyTheo de Raadt