1
0
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:
Jeremy Allison 2004-09-13 08:04:04 +00:00 committed by Gerald (Jerry) Carter
parent 4b9cba501e
commit 92c1eba403

View File

@ -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;
}