summaryrefslogtreecommitdiff
path: root/source3/torture/locktest2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-15 11:49:33 -0700
committerJeremy Allison <jra@samba.org>2009-07-15 11:49:33 -0700
commit1f5aec877fc48ff96b14a0e95f01c68a29dd8718 (patch)
tree4c3ab1b8c1a1b706531ae3d80969f6d00b0fc29a /source3/torture/locktest2.c
parentb76ab511f7238820a4e6ac3a2ae17d103f2bf9b9 (diff)
downloadsamba-1f5aec877fc48ff96b14a0e95f01c68a29dd8718.tar.gz
samba-1f5aec877fc48ff96b14a0e95f01c68a29dd8718.tar.bz2
samba-1f5aec877fc48ff96b14a0e95f01c68a29dd8718.zip
Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.
Jeremy.
Diffstat (limited to 'source3/torture/locktest2.c')
-rw-r--r--source3/torture/locktest2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/locktest2.c b/source3/torture/locktest2.c
index 93adcb51a6..5c8a2d8019 100644
--- a/source3/torture/locktest2.c
+++ b/source3/torture/locktest2.c
@@ -132,7 +132,7 @@ static bool try_unlock(struct cli_state *c, int fstype,
switch (fstype) {
case FSTYPE_SMB:
- return cli_unlock(c, fd, start, len);
+ return NT_STATUS_IS_OK(cli_unlock(c, fd, start, len));
case FSTYPE_NFS:
lock.l_type = F_UNLCK;