diff options
Diffstat (limited to 'usr.sbin/pw/pwupd.c')
-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 |