summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-18 13:09:52 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-18 23:27:53 +0200
commitae92edc46b3d90c0c59fb11e03920a093247ef0d (patch)
tree6c3398bee383e079e6f2bccf0a840aa50369d3e9 /source3
parenta5d5308073e81ba2da2cb95cac81b38aabe87afc (diff)
downloadsamba-ae92edc46b3d90c0c59fb11e03920a093247ef0d.tar.gz
samba-ae92edc46b3d90c0c59fb11e03920a093247ef0d.tar.bz2
samba-ae92edc46b3d90c0c59fb11e03920a093247ef0d.zip
s3-torture: run_locktest8(): replace cli_lock() with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c5
1 files changed, 3 insertions, 2 deletions
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;
}