diff options
author | Michael Adam <obnox@samba.org> | 2011-10-29 11:56:48 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-30 13:08:14 +0100 |
commit | 5975e8a3f46f3d6f99d997d36f874141f80b9c33 (patch) | |
tree | 551e117e687b8be0cce545a2cbc69586261811c5 /source4 | |
parent | f30f71c14a0b89dea296910ac9b92d3ae4016613 (diff) | |
download | samba-5975e8a3f46f3d6f99d997d36f874141f80b9c33.tar.gz samba-5975e8a3f46f3d6f99d997d36f874141f80b9c33.tar.bz2 samba-5975e8a3f46f3d6f99d997d36f874141f80b9c33.zip |
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.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/durable_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |