diff options
author | bapt <bapt@FreeBSD.org> | 2014-06-20 10:38:08 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-06-20 10:38:08 +0000 |
commit | 9afcc43d24b3fdba523dedfb53aa89608161ce25 (patch) | |
tree | b221a9b667dd176cb2f96a7ebe072462f6f95392 /usr.sbin/pw/pwupd.c | |
parent | 85394787a6195a3f2d1e75a52848af755711da1b (diff) | |
download | FreeBSD-src-9afcc43d24b3fdba523dedfb53aa89608161ce25.zip FreeBSD-src-9afcc43d24b3fdba523dedfb53aa89608161ce25.tar.gz |
Fix changing the username
PR: 189172
Submitted by: fullermd@over-yonder.net
MFC after: 1 week
Diffstat (limited to 'usr.sbin/pw/pwupd.c')
-rw-r--r-- | usr.sbin/pw/pwupd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pwupd.c b/usr.sbin/pw/pwupd.c index 735f385..c2a9a53 100644 --- a/usr.sbin/pw/pwupd.c +++ b/usr.sbin/pw/pwupd.c @@ -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()"); } |