summaryrefslogtreecommitdiffstats
path: root/libutil/pw_util.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle the race condition where vipw may lock a password file which hasMatthew Dillon1998-12-131-6/+22
| | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence.
* Since vfork() was changed to fork(), we have to pass errno back from theDag-Erling Smørgrav1998-10-201-3/+6
| | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() orDag-Erling Smørgrav1998-10-131-3/+3
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Statisize usage().Philippe Charnier1997-10-271-1/+4
|
* Changes to support full make parallelism (-j<n>) in the worldJordan K. Hubbard1997-10-051-3/+3
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Endless loop.Wolfram Schneider1997-09-291-5/+5
| | | | | | | | | | | $ vipw [corrupt a line in editor, exit editor] pwd_mkdb: corrupted entry pwd_mkdb: at line #2 pwd_mkdb: /etc/pw.012585: Inappropriate file type or format re-edit the password file? [y]: n^D^D [hang]
* Cosmetic: distinguish in diag message between rebuilding and updatingJoerg Wunsch1997-08-241-1/+2
| | | | | | | the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao)
* Implement incremental passwd database updates. This is done by ading a '-u'Guido van Rooij1996-07-011-2/+8
| | | | | | | | | | | | | | option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure databases has been merged into one loop giving also a performance improvemnet. Note that I did *not* change the adduser command. I don't read perl (it is a write only language anyway). The change will drastically improve performance for passwd and friends with large passwd files. Vipw's performance won't change. In order to do that some kind of diff should be made between the old and new master.passwd and depending the amount of changes, an incremental or complete update of the databases should be agreed upon.
* Small NIS tweak: frob pw_error() a little so that it can say eitherBill Paul1995-08-131-1/+8
| | | | | | | | | 'NIS information unchanged' or '/etc/master.passwd unchanged' depending on which was is being modified (conditional on -DYP). This is to save me the trouble of writing a whole other error routine (nis_error()?) for the upcoming changes to passwd and chpass.
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
|
* Fix suspended vipw hangsAndrey A. Chernov1995-03-091-9/+25
| | | | Obtained from: NetBSD
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-261-0/+204