From ae92edc46b3d90c0c59fb11e03920a093247ef0d Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Mon, 18 Jul 2011 13:09:52 +0200 Subject: 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(-) (limited to 'source3') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 4cec3c22e5..f565855768 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; } -- cgit