From ae92edc46b3d90c0c59fb11e03920a093247ef0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Mon, 18 Jul 2011 13:09:52 +0200 Subject: [PATCH] s3-torture: run_locktest8(): replace cli_lock() with cli_lock32() Signed-off-by: Stefan Metzmacher --- source3/torture/torture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 4cec3c22e54..f565855768d 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2439,9 +2439,10 @@ static bool run_locktest8(int dummy) goto fail; } - if (!cli_lock(cli1, fnum2, 1, 1, 0, READ_LOCK)) { + status = cli_lock32(cli1, fnum2, 1, 1, 0, READ_LOCK); + if (!NT_STATUS_IS_OK(status)) { printf("Unable to apply read lock on range 1:1, error was " - "%s\n", cli_errstr(cli1)); + "%s\n", nt_errstr(status)); goto fail; } -- 2.11.4.GIT