git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ff79f2
)
delete on close even prevents stat opens
author
Volker Lendecke
<vl@samba.org>
Fri, 11 Jan 2008 11:35:04 +0000
(12:35 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 12 Jan 2008 19:11:10 +0000
(20:11 +0100)
source/smbd/open.c
patch
|
blob
|
history
diff --git
a/source/smbd/open.c
b/source/smbd/open.c
index d1679209bb1783007d034b01805af33fffe169db..9d48bcc98b563e2af37a8e6a2d73364450f0aa9c 100644
(file)
--- a/
source/smbd/open.c
+++ b/
source/smbd/open.c
@@
-598,12
+598,6
@@
static NTSTATUS open_mode_check(connection_struct *conn,
}
*file_existed = True;
}
*file_existed = True;
-
- if (is_stat_open(access_mask)) {
- /* Stat open that doesn't trigger oplock breaks or share mode
- * checks... ! JRA. */
- return NT_STATUS_OK;
- }
/* A delete on close prohibits everything */
/* A delete on close prohibits everything */
@@
-611,6
+605,12
@@
static NTSTATUS open_mode_check(connection_struct *conn,
return NT_STATUS_DELETE_PENDING;
}
return NT_STATUS_DELETE_PENDING;
}
+ if (is_stat_open(access_mask)) {
+ /* Stat open that doesn't trigger oplock breaks or share mode
+ * checks... ! JRA. */
+ return NT_STATUS_OK;
+ }
+
/*
* Check if the share modes will give us access.
*/
/*
* Check if the share modes will give us access.
*/