diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-28 23:10:08 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-28 23:10:08 +0000 |
commit | f58761eaddf67fc32b33351a73ff06d386c738ba (patch) | |
tree | 038d3eb6cd4cbe40ed2868e285df521982c5c97e | |
parent | cf3a9741dc7427efb97eff09a3c197a906ce6767 (diff) | |
download | samba-f58761eaddf67fc32b33351a73ff06d386c738ba.tar.gz samba-f58761eaddf67fc32b33351a73ff06d386c738ba.tar.bz2 samba-f58761eaddf67fc32b33351a73ff06d386c738ba.zip |
Added fix from gildea@intouchsys.com - smbpasswd file could be left
locked.
Jeremy.
(This used to be commit 71ab5c367cf54f4b821aaf056f283f48d7eb4638)
-rw-r--r-- | source3/passdb/smbpass.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index d2a69ee9a6..0347df4ee9 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -684,7 +684,11 @@ static BOOL mod_smbfilepwd_entry(struct smb_passwd* pwd, BOOL override) } } - if (!found_entry) return False; + if (!found_entry) { + pw_file_unlock(lockfd, &pw_file_lock_depth); + fclose(fp); + return False; + } DEBUG(6, ("mod_smbfilepwd_entry: entry exists\n")); |