summaryrefslogtreecommitdiff
path: root/source/smbd/open.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-05 23:37:09 +0000
committerJeremy Allison <jra@samba.org>2001-07-05 23:37:09 +0000
commitaf5b649b017f703a14a69f77a9067efb9c6a8269 (patch)
tree14cb3645062fb63b4be7ff8b1cb3f4c1ea13cbf1 /source/smbd/open.c
parentc8c138c1fbb49799a2dd4c6e781bd89f51c0c0c5 (diff)
downloadsamba-af5b649b017f703a14a69f77a9067efb9c6a8269.tar.gz
Fix race where wrong action (created or opened) could be returned.
Jeremy.
Diffstat (limited to 'source/smbd/open.c')
-rw-r--r--source/smbd/open.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 858a26191f9..f67490b61d3 100644
--- a/source/smbd/open.c
+++ b/source/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*.....
*/
}