summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vipw/vipw.c
Commit message (Collapse)AuthorAgeFilesLines
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareimp2004-08-071-4/+0
| | | | (with permission of addtional copyright holders where appropriate)
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+4
|
* Don't use NULL when we really mean 0 for call to pw_edit.imp2002-08-211-1/+1
|
* Use libutil and libypclnt for all passwd manipulation and NIS needs.des2002-05-081-50/+45
| | | | Sponsored by: DARPA, NAI Labs
* ANSIfy and constify.des2002-02-051-9/+6
| | | | Sponsored by: DARPA, NAI Labs
* Do not rely on malloc() to zero-fill allocated memory, since it issheldonh1999-10-251-2/+3
| | | | | | | | not documented as doing so. This fixes a potential segmentation violation. PR: 14465 Reported by: Tony Finch <fanf@demon.net>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Move call to umask(0) back into pw_util(), because the latterpb1999-06-291-3/+1
| | | | function is also used by chpass(1) and passwd(1).
* Force umask to 077 (instead of 000) during the edit phase, to getpb1999-06-261-1/+5
| | | | | | | | | | secure permissions in case the user attempts to save something to a file of his own. Move umask stuff out of pw_init() into main() for better visibility of overall umask tweaking logic. PR: misc/11797
* Report the correct master.passwd path on failure when the -d option issheldonh1999-06-261-2/+2
| | | | used.
* Add -d option to vipw(8) to allow selection of an alternative directorysheldonh1999-06-261-3/+18
| | | | | | | for the password files. PR: 2703 Submitted by: jmg
* Statisize usage().charnier1997-10-271-3/+7
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Implement incremental passwd database updates. This is done by ading a '-u'guido1996-07-011-1/+1
| | | | | | | | | | | | | | 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.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+127
OpenPOWER on IntegriCloud