diff options
author | David Nugent <davidn@FreeBSD.org> | 2000-06-06 07:33:00 +0000 |
---|---|---|
committer | David Nugent <davidn@FreeBSD.org> | 2000-06-06 07:33:00 +0000 |
commit | 6725a28236ac98fa784b48a9310408df389e70d2 (patch) | |
tree | a3eb536b6d61e39eac719e7553f3817bf9b3caa0 /pw | |
parent | 802d297a58008e85fcc899f549d9538364ec84fe (diff) | |
download | pw-darwin-6725a28236ac98fa784b48a9310408df389e70d2.tar.gz pw-darwin-6725a28236ac98fa784b48a9310408df389e70d2.tar.zst pw-darwin-6725a28236ac98fa784b48a9310408df389e70d2.zip |
Fix db syncronization when username is changed with -l under usermod.
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
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pwupd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,7 @@ pw_update(struct passwd * pwd, char const * user, int mode) if (mode == UPD_DELETE) rc = pwdb(NULL); else - rc = pwdb("-u", user, NULL); + rc = pwdb("-u", pwd->pw_name, NULL); } } } |