From 5975e8a3f46f3d6f99d997d36f874141f80b9c33 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 29 Oct 2011 11:56:48 +0200 Subject: s4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2 When a first client that has a durable open with share read/write/delete and a read-write-handle lease on the file disconnects, a second client will succeed in opening the file and the new client will be given a RWH-lease if requested, not only a RH-lease, as was previously checked in the test. This might have been a bug in win7 build 7000, which is what the comments in the test give as reference. --- source4/torture/smb2/durable_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c index 544f404047..b2706bd21d 100644 --- a/source4/torture/smb2/durable_open.c +++ b/source4/torture/smb2/durable_open.c @@ -347,7 +347,7 @@ bool test_durable_open_lease(struct torture_context *tctx, CHECK_VAL(io2.out.lease_response.lease_key.data[0], lease2); CHECK_VAL(io2.out.lease_response.lease_key.data[1], ~lease2); CHECK_VAL(io2.out.lease_response.lease_state, - SMB2_LEASE_READ|SMB2_LEASE_HANDLE); + SMB2_LEASE_READ|SMB2_LEASE_HANDLE|SMB2_LEASE_WRITE); /* What if tree1 tries to come back and reclaim? */ if (!torture_smb2_connection(tctx, &tree1)) { -- cgit