diff options
author | David Nugent <davidn@FreeBSD.org> | 1999-10-26 08:30:20 +0000 |
---|---|---|
committer | David Nugent <davidn@FreeBSD.org> | 1999-10-26 08:30:20 +0000 |
commit | c024324408701116d70a6ebc327da9edf2173488 (patch) | |
tree | 371aa23c27895a3bb7eabda3b752f7bf48a0f140 /pw/pwupd.c | |
parent | 406891bd852b21f4a6469bac735795902e2893dc (diff) | |
download | pw-darwin-c024324408701116d70a6ebc327da9edf2173488.tar.gz pw-darwin-c024324408701116d70a6ebc327da9edf2173488.tar.zst pw-darwin-c024324408701116d70a6ebc327da9edf2173488.zip |
Missed statement in password update relating to the previous change
to fileupdate() which prevented pwd_mkdb(1) from being run.
Diffstat (limited to 'pw/pwupd.c')
-rw-r--r-- | pw/pwupd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |