From a5d5308073e81ba2da2cb95cac81b38aabe87afc Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Mon, 18 Jul 2011 12:51:19 +0200 Subject: s3-torture: run_locktest7(): replace cli_lock() with cli_lock32() Signed-off-by: Stefan Metzmacher --- source3/torture/torture.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 1338ce030a..4cec3c22e5 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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"); -- cgit