diff options
author | davidn <davidn@FreeBSD.org> | 1999-10-26 08:30:20 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1999-10-26 08:30:20 +0000 |
commit | 297001db2a5f0a61adb1417b3e483603abf2f786 (patch) | |
tree | be8ae505cfa66fc0cc2f457e6981a62703ad3512 | |
parent | debb714cef29778aee4f0fcceeecd7606eb014c9 (diff) | |
download | FreeBSD-src-297001db2a5f0a61adb1417b3e483603abf2f786.zip FreeBSD-src-297001db2a5f0a61adb1417b3e483603abf2f786.tar.gz |
Missed statement in password update relating to the previous change
to fileupdate() which prevented pwd_mkdb(1) from being run.
-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 baaf102..fea551c 100644 --- a/usr.sbin/pw/pwupd.c +++ b/usr.sbin/pw/pwupd.c @@ -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 |