summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-12-21 14:48:43 -0800
committerTim Prouty <tprouty@samba.org>2009-12-21 17:27:36 -0800
commitc33988c0404ec57fc595000f6dbb477b04e9346d (patch)
tree439de5cd38c321717136bc7f5f8c0e8bf0e75d84 /source4/torture
parentfd0c3a226486eae63166a05d3746626f9f833693 (diff)
downloadsamba-c33988c0404ec57fc595000f6dbb477b04e9346d.tar.gz
samba-c33988c0404ec57fc595000f6dbb477b04e9346d.tar.bz2
samba-c33988c0404ec57fc595000f6dbb477b04e9346d.zip
s4 torture: Be more permissive with share modes for oplock testing
Share modes are tested elsewhere, and there is currently an outstanding issue about share mode contention for nt-passthrough levels: http://lists.samba.org/archive/cifs-protocol/2009-December/001227.html
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/oplock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index 6a0de2e200..f323c74679 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -2117,7 +2117,8 @@ static bool test_raw_oplock_batch19(struct torture_context *tctx, struct smbcli_
io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL;
io.ntcreatex.in.alloc_size = 0;
io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL;
- io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE;
+ io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ |
+ NTCREATEX_SHARE_ACCESS_WRITE | NTCREATEX_SHARE_ACCESS_DELETE;
io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF;
io.ntcreatex.in.create_options = 0;
io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS;
@@ -2222,7 +2223,8 @@ bool test_trans2rename(struct torture_context *tctx, struct smbcli_state *cli1,
io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL;
io.ntcreatex.in.alloc_size = 0;
io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL;
- io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE;
+ io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ |
+ NTCREATEX_SHARE_ACCESS_WRITE | NTCREATEX_SHARE_ACCESS_DELETE;
io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF;
io.ntcreatex.in.create_options = 0;
io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS;