Missed statement in password update relating to the previous change

to fileupdate() which prevented pwd_mkdb(1) from being run.
This commit is contained in:
David Nugent 1999-10-26 08:30:20 +00:00
parent 0c65c1354c
commit 480207ab3d

View File

@ -171,7 +171,7 @@ pw_update(struct passwd * pwd, char const * user, int mode)
if (pwd != NULL)
fmtpwentry(pwbuf, pwd, PWF_MASTER);
rc = fileupdate(getpwpath(_MASTERPASSWD), 0644, pwbuf, pfx, l, mode);
if (rc != 0) {
if (rc == 0) {
if (mode == UPD_DELETE)
rc = pwdb(NULL);
else