summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-10-18 13:11:38 +0000
committerStefan Metzmacher <metze@samba.org>2013-10-23 11:45:55 +0200
commit7b51e9f8d3db208027cab44ca8c17129a9e86929 (patch)
tree154de79a3299c7369c92aff236ccd4dd91489a70 /source4/torture/raw
parentf892bdb2047c86e53f875e8f2c58858d2dacc363 (diff)
downloadsamba-7b51e9f8d3db208027cab44ca8c17129a9e86929.tar.gz
samba-7b51e9f8d3db208027cab44ca8c17129a9e86929.tar.bz2
samba-7b51e9f8d3db208027cab44ca8c17129a9e86929.zip
torture: Add reproducer for bug 10216
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/oplock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index 34e270d825..c0738e98d7 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -556,6 +556,18 @@ static bool test_raw_oplock_exclusive4(struct torture_context *tctx, struct smbc
CHECK_VAL(break_info.count, 0);
CHECK_VAL(break_info.failures, 0);
+ /*
+ * Open another non-stat open. This reproduces bug 10216. Make sure it
+ * won't happen again...
+ */
+ io.ntcreatex.in.flags = 0;
+ io.ntcreatex.in.access_mask = SEC_FILE_READ_DATA;
+ status = smb_raw_open(cli2->tree, tctx, &io);
+ CHECK_STATUS(tctx, status, NT_STATUS_SHARING_VIOLATION);
+ torture_wait_for_oplock_break(tctx);
+ CHECK_VAL(break_info.count, 0);
+ CHECK_VAL(break_info.failures, 0);
+
smbcli_close(cli1->tree, fnum);
smbcli_close(cli2->tree, fnum2);