summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-18 13:15:49 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-18 23:27:53 +0200
commit4dbdaa6608b8d97b685906e52d6fee3af7bc07ea (patch)
tree92a7bb574237c264db8d636306598069a79e6ffa /source3/torture/torture.c
parentae92edc46b3d90c0c59fb11e03920a093247ef0d (diff)
downloadsamba-4dbdaa6608b8d97b685906e52d6fee3af7bc07ea.tar.gz
samba-4dbdaa6608b8d97b685906e52d6fee3af7bc07ea.tar.bz2
samba-4dbdaa6608b8d97b685906e52d6fee3af7bc07ea.zip
s3-torture: run_locktest9(): replace cli_lock() with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index f565855768..17b1379d1a 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -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);