mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r2312: Fix for bugid #1667, smbpasswd file could be left locked on
some error exits.
Jeremy.
(This used to be commit e2b0b9fb72
)
This commit is contained in:
parent
4b9cba501e
commit
92c1eba403
@ -898,6 +898,8 @@ static BOOL mod_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, con
|
||||
} else {
|
||||
DEBUG(0,("mod_smbfilepwd_entry: Using old smbpasswd format. This is no longer supported.!\n"));
|
||||
DEBUG(0,("mod_smbfilepwd_entry: No changes made, failing.!\n"));
|
||||
pw_file_unlock(lockfd, &(smbpasswd_state->pw_file_lock_depth));
|
||||
fclose(fp);
|
||||
return False;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user