s3-torture: run_locktest8(): replace cli_lock() with cli_lock32()
authorBjörn Baumbach <bb@sernet.de>
Mon, 18 Jul 2011 11:09:52 +0000 (13:09 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jul 2011 21:27:53 +0000 (23:27 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/torture/torture.c

index 4cec3c22e54aff8ec709ec3216c35277d8819257..f565855768d0209afced45faf8e28162b361f0d5 100644 (file)
@@ -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;
        }