summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-18 12:51:19 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-18 23:27:53 +0200
commita5d5308073e81ba2da2cb95cac81b38aabe87afc (patch)
tree9de6d03a8f022cc4b3e104352a354229e773af3b /source3
parentb0faf0bd26b275719bf44f742feed11d5acccde3 (diff)
downloadsamba-a5d5308073e81ba2da2cb95cac81b38aabe87afc.tar.gz
samba-a5d5308073e81ba2da2cb95cac81b38aabe87afc.tar.bz2
samba-a5d5308073e81ba2da2cb95cac81b38aabe87afc.zip
s3-torture: run_locktest7(): replace cli_lock() with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 1338ce030a..4cec3c22e5 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2282,8 +2282,9 @@ static bool run_locktest7(int dummy)
cli_setpid(cli1, 1);
- if (!cli_lock(cli1, fnum1, 130, 4, 0, READ_LOCK)) {
- printf("Unable to apply read lock on range 130:4, error was %s\n", cli_errstr(cli1));
+ status = cli_lock32(cli1, fnum1, 130, 4, 0, READ_LOCK);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Unable to apply read lock on range 130:4, error was %s\n", nt_errstr(status));
goto fail;
} else {
printf("pid1 successfully locked range 130:4 for READ\n");
@@ -2333,8 +2334,9 @@ static bool run_locktest7(int dummy)
cli_setpid(cli1, 1);
cli_unlock(cli1, fnum1, 130, 4);
- if (!cli_lock(cli1, fnum1, 130, 4, 0, WRITE_LOCK)) {
- printf("Unable to apply write lock on range 130:4, error was %s\n", cli_errstr(cli1));
+ status = cli_lock32(cli1, fnum1, 130, 4, 0, WRITE_LOCK);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Unable to apply write lock on range 130:4, error was %s\n", nt_errstr(status));
goto fail;
} else {
printf("pid1 successfully locked range 130:4 for WRITE\n");