diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-06-20 10:38:08 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-06-20 10:38:08 +0000 |
commit | a3c0ba2575fa986313cd0d49c625570a14e0e0f2 (patch) | |
tree | f217ff74808b17eb87679243fbacb57e5ba28f7f /pw | |
parent | 2150badb6562259975120d771dcc1b09fa05ecb8 (diff) | |
download | pw-darwin-a3c0ba2575fa986313cd0d49c625570a14e0e0f2.tar.gz pw-darwin-a3c0ba2575fa986313cd0d49c625570a14e0e0f2.tar.zst pw-darwin-a3c0ba2575fa986313cd0d49c625570a14e0e0f2.zip |
Fix changing the username
PR: 189172
Submitted by: fullermd@over-yonder.net
MFC after: 1 week
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pwupd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()"); } |