summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-10-27 22:35:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:13 -0500
commit533da83852b13c2e008938a026f99937ef320f3c (patch)
tree82cbb895a2d1152d6b3a2377445994e33f67587c /source3/locking
parent7aecd20c00b81aa2b7a20e75e9cc653ae243500b (diff)
downloadsamba-533da83852b13c2e008938a026f99937ef320f3c.tar.gz
samba-533da83852b13c2e008938a026f99937ef320f3c.tar.bz2
samba-533da83852b13c2e008938a026f99937ef320f3c.zip
r11341: Put directory opens into the share mode db so we
can treat them similarly to file opens (delete on close, share mode violations etc.). This fixes bug #3216 I will up the default hash size on the locking db in a later commit as this means more entries. Jeremy. (This used to be commit 1134abbbb3fd8e8b88e1a5817aae106476a4c126)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index e3131e26a2..aad254f276 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -960,8 +960,9 @@ BOOL set_delete_on_close(files_struct *fsp, BOOL delete_on_close)
delete_on_close ? "Adding" : "Removing", fsp->fnum,
fsp->fsp_name ));
- if (fsp->is_directory || fsp->is_stat)
+ if (fsp->is_stat) {
return True;
+ }
lck = get_share_mode_lock(NULL, fsp->dev, fsp->inode, NULL);
if (lck == NULL) {