From 69ed3a780e26b53669ab00ddde99ac9c7bd10410 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Mon, 18 Jul 2011 13:19:12 +0200 Subject: [PATCH] s3-torture: run_oplock2(): replace cli_lock() with cli_lock32() Signed-off-by: Stefan Metzmacher --- source3/torture/torture.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 17b1379d1a7..0158eb52ef5 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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; } -- 2.11.4.GIT