summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 305377dfc6..6de2774644 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -115,6 +115,10 @@ static void notify_deferred_opens(files_struct *fsp)
int num_de_entries, i;
pid_t mypid = sys_getpid();
+ if (!lp_defer_sharing_violations()) {
+ return;
+ }
+
num_de_entries = get_deferred_opens(fsp->conn, fsp->dev, fsp->inode, &de_array);
for (i = 0; i < num_de_entries; i++) {
deferred_open_entry *entry = &de_array[i];