mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
add exceptions for some of the strange windows SMB2 locking behaviour
This commit is contained in:
parent
f5cf47eef1
commit
429bbecebe
@ -252,12 +252,20 @@ 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);
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
if (torture_setting_bool(torture, "windows", false)) {
|
||||
CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED);
|
||||
} else {
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
}
|
||||
|
||||
lck.in.lock_count = 1;
|
||||
el[0].flags = SMB2_LOCK_FLAG_UNLOCK;
|
||||
status = smb2_lock(tree, &lck);
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
if (torture_setting_bool(torture, "windows", false)) {
|
||||
CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED);
|
||||
} else {
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
}
|
||||
|
||||
lck.in.lock_count = 1;
|
||||
el[0].flags = SMB2_LOCK_FLAG_UNLOCK;
|
||||
|
Loading…
Reference in New Issue
Block a user