diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-03 04:08:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:53 -0500 |
commit | b6211e02628fdc272b494f35cee30bc59b330c8b (patch) | |
tree | d2f51aa734694df922e0bfb81508a45347c53843 /source3/torture/torture.c | |
parent | 73d7fb0fd0d491d57e5422ce1ae36228b9f6a84a (diff) | |
download | samba-b6211e02628fdc272b494f35cee30bc59b330c8b.tar.gz samba-b6211e02628fdc272b494f35cee30bc59b330c8b.tar.bz2 samba-b6211e02628fdc272b494f35cee30bc59b330c8b.zip |
r5641: Fix from James Peach @ SGI for oplock2 test.
Jeremy.
(This used to be commit 69e99d97d1547ec8f8e7f9756b87f211c90557b6)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r-- | source3/torture/torture.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 84755a781a..37aefc55ac 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2666,9 +2666,10 @@ static BOOL run_oplock2(int dummy) sleep(2); - /* Ensure cli1 processes the break. */ + /* Ensure cli1 processes the break. Empty file should always return 0 + * bytes. */ - if (cli_read(cli1, fnum1, buf, 0, 4) != 4) { + if (cli_read(cli1, fnum1, buf, 0, 4) != 0) { printf("read on fnum1 failed (%s)\n", cli_errstr(cli1)); correct = False; } |