summaryrefslogtreecommitdiffstats
path: root/pw/pwupd.c
Commit message (Collapse)AuthorAgeFilesLines
* Use correct mode for temporary file.Jacques Vidrine2001-12-201-1/+1
| | | | Reported by: ryan beasley <ryanb@goddamnbastard.org>
* Handle snprintf() returning < 0 (not just -1)Brian Somers2001-08-201-1/+1
| | | | MFC after: 2 weeks
* Handle snprintf() returning -1.Brian Somers2001-08-201-0/+2
| | | | MFC after: 2 weeks
* Don't dereference NULL in the userdel case.David Nugent2000-06-261-1/+1
|
* Second and hopefully final fix to .db sync when renaming a user; we must runDavid Nugent2000-06-181-4/+12
| | | | | | | a full reindex in this case to remove the old record. #ifdef -u capability since this is available on FreeBSD only. PR: bin/16418 Problem pointed out by: Masachika ISHIZUKA <ishizuka@ish.org>
* Fix db syncronization when username is changed with -l under usermod.David Nugent2000-06-061-1/+1
| | | | | | | | pw(8) was calling pwd_mkdb -u oldusername instead of newusername, so the update appears to have failed until the next full pwd_mkdb syncronization. PR: bin/16418
* Missed statement in password update relating to the previous changeDavid Nugent1999-10-261-1/+1
| | | | to fileupdate() which prevented pwd_mkdb(1) from being run.
* Clean up error handling in fileupdate(), which now returns 0 on successDavid Nugent1999-10-261-7/+10
| | | | | | | | | | | | instead of a boolean. This replicated through he front-end sub-functions relating to add, delete, modify entries in passwd & group files Errno is now preserved so output of errc()/warnc() will be less obfuscated by subsequent errors when reporting the problem. Add more intelligent error handling when attempting to modify/delete NIS entries with no corresponding local database entry. [MFC to stable in a couple of weeks to keep both in sync]
* Only do a full pwd_mkdb for deletions; other operations may use the -uSheldon Hearn1999-08-301-2/+6
| | | | | | | option as an optimization. PR: 13346 Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
|
* 1) Do not blindly ignore file update errors which may occur due to concurrentDavid Nugent1999-02-231-7/+38
| | | | | | updating 2) Add -V <etcdir>, which allows maintaining user/group database in alternate locations other than /etc.
* pwd_mkdb option '-c' was renamed to -C some weeks ago.Wolfram Schneider1998-02-111-4/+4
| | | | | PR: bin/5715 Submitted by: dannyman <dannyman@arh0300.urh.uiuc.edu>
* Use err(3) instead of local redefinition. Add rcsid string.Philippe Charnier1997-10-101-2/+5
|
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove duplicated #include.David Nugent1997-01-051-2/+1
|
* 1) 200 users per group limitation removed and pwDavid Nugent1996-12-211-2/+2
| | | | | | | will handle lines of any length in /etc/group. 2) Fixed bug with usermod -d not updating user's home directory. 3) Minor formatting display changes/fixes with *show -P.
* Copyright update by the author, to be more in line with our sampleJoerg Wunsch1996-12-101-12/+6
| | | | | | copyright. Submitted by: David Nugent
* Upgrade from the author, reflecting all my wishes resulting out of theJoerg Wunsch1996-12-091-0/+7
| | | | | | | | sysinstall use of this tool (plus some bug fixes). 2.2 candidate... Submitted by: David Nugent <davidn@nserver.usn.blaze.net.au>
* pw(8) -- a backend utility to manage the user and group databases.Joerg Wunsch1996-12-091-0/+160
sysinstall's new User&group menu will use it, hence it's a 2.2 candidate despite of providing new functionality. Submitted by: David L. Nugent, <davidn@blaze.net.au>