1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3-torture: run_locktest7(): replace cli_lock() with cli_lock32()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Björn Baumbach 2011-07-18 12:51:19 +02:00 committed by Stefan Metzmacher
parent b0faf0bd26
commit a5d5308073

View File

@ -2282,8 +2282,9 @@ static bool run_locktest7(int dummy)
cli_setpid(cli1, 1);
if (!cli_lock(cli1, fnum1, 130, 4, 0, READ_LOCK)) {
printf("Unable to apply read lock on range 130:4, error was %s\n", cli_errstr(cli1));
status = cli_lock32(cli1, fnum1, 130, 4, 0, READ_LOCK);
if (!NT_STATUS_IS_OK(status)) {
printf("Unable to apply read lock on range 130:4, error was %s\n", nt_errstr(status));
goto fail;
} else {
printf("pid1 successfully locked range 130:4 for READ\n");
@ -2333,8 +2334,9 @@ static bool run_locktest7(int dummy)
cli_setpid(cli1, 1);
cli_unlock(cli1, fnum1, 130, 4);
if (!cli_lock(cli1, fnum1, 130, 4, 0, WRITE_LOCK)) {
printf("Unable to apply write lock on range 130:4, error was %s\n", cli_errstr(cli1));
status = cli_lock32(cli1, fnum1, 130, 4, 0, WRITE_LOCK);
if (!NT_STATUS_IS_OK(status)) {
printf("Unable to apply write lock on range 130:4, error was %s\n", nt_errstr(status));
goto fail;
} else {
printf("pid1 successfully locked range 130:4 for WRITE\n");