mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3-torture: run_oplock2(): replace cli_lock() with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
4dbdaa6608
commit
69ed3a780e
@ -3535,9 +3535,9 @@ static bool run_oplock2(int dummy)
|
||||
|
||||
/* Should now be at level II. */
|
||||
/* Test if sending a write locks causes a break to none. */
|
||||
|
||||
if (!cli_lock(cli1, fnum1, 0, 4, 0, READ_LOCK)) {
|
||||
printf("lock failed (%s)\n", cli_errstr(cli1));
|
||||
status = cli_lock32(cli1, fnum1, 0, 4, 0, READ_LOCK);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("lock failed (%s)\n", nt_errstr(status));
|
||||
correct = False;
|
||||
}
|
||||
|
||||
@ -3545,8 +3545,9 @@ static bool run_oplock2(int dummy)
|
||||
|
||||
sleep(2);
|
||||
|
||||
if (!cli_lock(cli1, fnum1, 0, 4, 0, WRITE_LOCK)) {
|
||||
printf("lock failed (%s)\n", cli_errstr(cli1));
|
||||
status = cli_lock32(cli1, fnum1, 0, 4, 0, WRITE_LOCK);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("lock failed (%s)\n", nt_errstr(status));
|
||||
correct = False;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user