summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 858a26191f..f67490b61d 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -771,6 +771,14 @@ flags=0x%X flags2=0x%X mode=0%o returned %d\n",
}
/*
+ * If there are any share modes set then the file *did*
+ * exist. Ensure we return the correct value for action.
+ */
+
+ if (num_share_modes > 0)
+ file_existed = True;
+
+ /*
* We exit this block with the share entry *locked*.....
*/
}