mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix changing the username
PR: 189172 Submitted by: fullermd@over-yonder.net MFC after: 1 week
This commit is contained in:
parent
113f96dd0b
commit
b425ee4eb7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267670
@ -139,7 +139,7 @@ pw_update(struct passwd * pwd, char const * user)
|
||||
* in case of deletion of a user, the whole database
|
||||
* needs to be regenerated
|
||||
*/
|
||||
if (pw_mkdb(pw != NULL ? user : NULL) == -1) {
|
||||
if (pw_mkdb(pw != NULL ? pw->pw_name : NULL) == -1) {
|
||||
pw_fini();
|
||||
err(1, "pw_mkdb()");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user