Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove uneeded intermediate variable | Baptiste Daroussin | 2015-05-31 | 1 | -4/+1 |
| | |||||
* | The pwdb function is only used once to check the database rename it | Baptiste Daroussin | 2015-05-10 | 1 | -10/+4 |
| | | | | pwdb_check and simplify it accordingly | ||||
* | if the check of the pw db fails return the failed value | Baptiste Daroussin | 2015-05-10 | 1 | -37/+35 |
| | |||||
* | Some style(9) fixes | Baptiste Daroussin | 2015-05-10 | 1 | -9/+16 |
| | |||||
* | Fix changing the username | Baptiste Daroussin | 2014-06-20 | 1 | -1/+1 |
| | | | | | | PR: 189172 Submitted by: fullermd@over-yonder.net MFC after: 1 week | ||||
* | Removed compatibility with pre FreeBSD 2.2 pw_mkdb command | Baptiste Daroussin | 2014-06-20 | 1 | -13/+2 |
| | | | | | | | | Fix some broken indentattion PR: 189173 Submitted by: fullermd@over-yonder.net MFC after: 1 week | ||||
* | In case of the deletion of a user those whole database has to be regenerated, | Baptiste Daroussin | 2012-12-26 | 1 | -1/+5 |
| | | | | | otherwise the user planned to be deleted remain in the pwd.db while removed from the plain text password file. | ||||
* | Use strdup instead of malloc + strcpy | Eitan Adler | 2012-12-05 | 1 | -6/+4 |
| | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
* | Teach pw(8) about how to use pw/gr API to reduce code duplication | Baptiste Daroussin | 2012-10-30 | 1 | -74/+40 |
| | | | | MFC after: 2 months | ||||
* | Make sure that each va_start has one and only one matching va_end, | Kevin Lo | 2012-09-28 | 1 | -0/+1 |
| | | | | especially in error cases. | ||||
* | Before updating the password database, the pw(8) utility first performs a | John Baldwin | 2008-07-17 | 1 | -1/+2 |
| | | | | | | | | sanity check by invoking "pwd_mkdb -C". However, if this failed it silently returned success. Fix this so it fails the update operation instead. MFC after: 1 week | ||||
* | Don't rely on NULL being a pointer, add a cast before passing it to a variadic | Stefan Farfeleder | 2004-10-03 | 1 | -2/+2 |
| | | | | function. | ||||
* | Do not expose password if it is empty and PWF_STANDARD format is requested | Max Khon | 2003-01-23 | 1 | -1/+2 |
| | | | | MFC after: 1 week | ||||
* | Use correct mode for temporary file. | Jacques Vidrine | 2001-12-20 | 1 | -1/+1 |
| | | | | Reported by: ryan beasley <ryanb@goddamnbastard.org> | ||||
* | Handle snprintf() returning < 0 (not just -1) | Brian Somers | 2001-08-20 | 1 | -1/+1 |
| | | | | MFC after: 2 weeks | ||||
* | Handle snprintf() returning -1. | Brian Somers | 2001-08-20 | 1 | -0/+2 |
| | | | | MFC after: 2 weeks | ||||
* | Don't dereference NULL in the userdel case. | David Nugent | 2000-06-26 | 1 | -1/+1 |
| | |||||
* | Second and hopefully final fix to .db sync when renaming a user; we must run | David Nugent | 2000-06-18 | 1 | -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 Nugent | 2000-06-06 | 1 | -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 change | David Nugent | 1999-10-26 | 1 | -1/+1 |
| | | | | to fileupdate() which prevented pwd_mkdb(1) from being run. | ||||
* | Clean up error handling in fileupdate(), which now returns 0 on success | David Nugent | 1999-10-26 | 1 | -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 -u | Sheldon Hearn | 1999-08-30 | 1 | -2/+6 |
| | | | | | | | option as an optimization. PR: 13346 Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za> | ||||
* | $Id$ -> $FreeBSD$ | Peter Wemm | 1999-08-28 | 1 | -1/+1 |
| | |||||
* | 1) Do not blindly ignore file update errors which may occur due to concurrent | David Nugent | 1999-02-23 | 1 | -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 Schneider | 1998-02-11 | 1 | -4/+4 |
| | | | | | PR: bin/5715 Submitted by: dannyman <dannyman@arh0300.urh.uiuc.edu> | ||||
* | Use err(3) instead of local redefinition. Add rcsid string. | Philippe Charnier | 1997-10-10 | 1 | -2/+5 |
| | |||||
* | Revert $FreeBSD$ to $Id$ | Peter Wemm | 1997-02-22 | 1 | -1/+1 |
| | |||||
* | Make the long-awaited change from $Id$ to $FreeBSD$ | Jordan K. Hubbard | 1997-01-14 | 1 | -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 Nugent | 1997-01-05 | 1 | -2/+1 |
| | |||||
* | 1) 200 users per group limitation removed and pw | David Nugent | 1996-12-21 | 1 | -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 sample | Joerg Wunsch | 1996-12-10 | 1 | -12/+6 |
| | | | | | | copyright. Submitted by: David Nugent | ||||
* | Upgrade from the author, reflecting all my wishes resulting out of the | Joerg Wunsch | 1996-12-09 | 1 | -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 Wunsch | 1996-12-09 | 1 | -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> |