summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-18 13:19:12 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-18 23:27:54 +0200
commit69ed3a780e26b53669ab00ddde99ac9c7bd10410 (patch)
tree1809a7dc5a6193796e3631e921709d45ae1e236a /source3
parent4dbdaa6608b8d97b685906e52d6fee3af7bc07ea (diff)
downloadsamba-69ed3a780e26b53669ab00ddde99ac9c7bd10410.tar.gz
samba-69ed3a780e26b53669ab00ddde99ac9c7bd10410.tar.bz2
samba-69ed3a780e26b53669ab00ddde99ac9c7bd10410.zip
s3-torture: run_oplock2(): replace cli_lock() with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 17b1379d1a..0158eb52ef 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -3535,9 +3535,9 @@ static bool run_oplock2(int dummy)
/* Should now be at level II. */
/* Test if sending a write locks causes a break to none. */
-
- if (!cli_lock(cli1, fnum1, 0, 4, 0, READ_LOCK)) {
- printf("lock failed (%s)\n", cli_errstr(cli1));
+ status = cli_lock32(cli1, fnum1, 0, 4, 0, READ_LOCK);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("lock failed (%s)\n", nt_errstr(status));
correct = False;
}
@@ -3545,8 +3545,9 @@ static bool run_oplock2(int dummy)
sleep(2);
- if (!cli_lock(cli1, fnum1, 0, 4, 0, WRITE_LOCK)) {
- printf("lock failed (%s)\n", cli_errstr(cli1));
+ status = cli_lock32(cli1, fnum1, 0, 4, 0, WRITE_LOCK);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("lock failed (%s)\n", nt_errstr(status));
correct = False;
}