s3-torture: run_locktest9(): replace cli_lock() with cli_lock32()
authorBjörn Baumbach <bb@sernet.de>
Mon, 18 Jul 2011 11:15:49 +0000 (13:15 +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 f565855768d0209afced45faf8e28162b361f0d5..17b1379d1a7b05860f72f6c90b3dff6f7e7ce2dd 100644 (file)
@@ -2622,7 +2622,8 @@ static bool run_locktest9(int dummy)
        }
 
        /* Ensure the child has the lock. */
-       if (cli_lock(cli1, fnum, 0, 4, 0, WRITE_LOCK)) {
+       status = cli_lock32(cli1, fnum, 0, 4, 0, WRITE_LOCK);
+       if (NT_STATUS_IS_OK(status)) {
                d_fprintf(stderr, "Got the lock on range 0:4 - this should not happen !\n");
                goto fail;
        } else {
@@ -2644,9 +2645,10 @@ static bool run_locktest9(int dummy)
 
        start = timeval_current();
 
-       if (!cli_lock(cli1, fnum, 0, 4, -1, WRITE_LOCK)) {
+       status = cli_lock32(cli1, fnum, 0, 4, -1, WRITE_LOCK);
+       if (!NT_STATUS_IS_OK(status)) {
                d_fprintf(stderr, "Unable to apply write lock on range 0:4, error was "
-                      "%s\n", cli_errstr(cli1));
+                      "%s\n", nt_errstr(status));
                goto fail_nofd;
        }
        alarm(0);