s3-torture: locktest2: replace cli_lock() with cli_lock32()
authorBjörn Baumbach <bb@sernet.de>
Mon, 11 Jul 2011 11:49:18 +0000 (13:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 14:35:10 +0000 (16:35 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/torture/locktest2.c

index aba6d2ff134a9d4c4786ca2a052e5483256eeb1b..5115d1364fef22a131c2fe113e07b1b2cd74bdb5 100644 (file)
@@ -114,7 +114,8 @@ static bool try_lock(struct cli_state *c, int fstype,
 
        switch (fstype) {
        case FSTYPE_SMB:
-               return cli_lock(c, fd, start, len, LOCK_TIMEOUT, op);
+               return NT_STATUS_IS_OK(cli_lock32(c, fd, start, len,
+                                      LOCK_TIMEOUT, op));
 
        case FSTYPE_NFS:
                lock.l_type = (op==READ_LOCK) ? F_RDLCK:F_WRLCK;