summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-13 18:43:10 -0700
committerJeremy Allison <jra@samba.org>2009-07-13 18:43:10 -0700
commite67de63ba6c6de60400e7deb4664d259f6dfb638 (patch)
treefe31b3b1936d10074b413d325d3f76be3dfe54ec /source3/client
parentb25e3b6c8a7a1dd31607dd344e6e767716dd645d (diff)
downloadsamba-e67de63ba6c6de60400e7deb4664d259f6dfb638.tar.gz
samba-e67de63ba6c6de60400e7deb4664d259f6dfb638.tar.bz2
samba-e67de63ba6c6de60400e7deb4664d259f6dfb638.zip
Make cli_posix_lock/unlock asynchronous.
Jeremy.
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index ed45f4e2ca..6b273b47b0 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2605,7 +2605,7 @@ static int cmd_lock(void)
len = (uint64_t)strtol(buf, (char **)NULL, 16);
- if (!cli_posix_lock(cli, fnum, start, len, true, lock_type)) {
+ if (!NT_STATUS_IS_OK(cli_posix_lock(cli, fnum, start, len, true, lock_type))) {
d_printf("lock failed %d: %s\n", fnum, cli_errstr(cli));
}
@@ -2639,7 +2639,7 @@ static int cmd_unlock(void)
len = (uint64_t)strtol(buf, (char **)NULL, 16);
- if (!cli_posix_unlock(cli, fnum, start, len)) {
+ if (!NT_STATUS_IS_OK(cli_posix_unlock(cli, fnum, start, len))) {
d_printf("unlock failed %d: %s\n", fnum, cli_errstr(cli));
}