From: Andrew Tridgell Date: Thu, 5 Jun 2008 00:52:13 +0000 (-0700) Subject: another SMB2-LOCK fix now that we know that the UNLOCK flag is only X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=c014ffabc65c30a6b83c8f9f9f9a80bb79333f59 another SMB2-LOCK fix now that we know that the UNLOCK flag is only honoured on the first lock in a set --- diff --git a/source/torture/smb2/lock.c b/source/torture/smb2/lock.c index 1b08efc0fa4..d820983022b 100644 --- a/source/torture/smb2/lock.c +++ b/source/torture/smb2/lock.c @@ -273,11 +273,7 @@ static bool test_valid_request(struct torture_context *torture, struct smb2_tree lck.in.lock_count = 1; el[0].flags = SMB2_LOCK_FLAG_UNLOCK; status = smb2_lock(tree, &lck); - if (torture_setting_bool(torture, "windows", false)) { - CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED); - } else { - CHECK_STATUS(status, NT_STATUS_OK); - } + CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED); lck.in.lock_count = 1; el[0].flags = SMB2_LOCK_FLAG_UNLOCK;