mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
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:
parent
0c65c1354c
commit
480207ab3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52511
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user