summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 56d31c6940..a8fb8ed38f 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1507,22 +1507,6 @@ files_struct *open_file_ntcreate(connection_struct *conn,
fsp_open = open_file(fsp,conn,fname,psbuf,flags|flags2,unx_mode,
access_mask);
- if (!fsp_open && (flags2 & O_EXCL) && (errno == EEXIST)) {
- /*
- * Two smbd's tried to open exclusively, but only one of them
- * succeeded.
- */
- file_free(fsp);
- return NULL;
- }
-
- if (!fsp_open && (flags == O_RDWR) && (errno != ENOENT)) {
- if((fsp_open = open_file(fsp,conn,fname,psbuf,
- O_RDONLY,unx_mode,access_mask)) == True) {
- flags = O_RDONLY;
- }
- }
-
if (!fsp_open) {
if (lck != NULL) {
talloc_free(lck);