From 6725a28236ac98fa784b48a9310408df389e70d2 Mon Sep 17 00:00:00 2001 From: David Nugent Date: Tue, 6 Jun 2000 07:33:00 +0000 Subject: 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 --- pw/pwupd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw/pwupd.c') diff --git a/pw/pwupd.c b/pw/pwupd.c index fea551c..7b96035 100644 --- a/pw/pwupd.c +++ b/pw/pwupd.c @@ -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); } } } -- cgit v1.2.3