From b6211e02628fdc272b494f35cee30bc59b330c8b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 3 Mar 2005 04:08:13 +0000 Subject: r5641: Fix from James Peach @ SGI for oplock2 test. Jeremy. (This used to be commit 69e99d97d1547ec8f8e7f9756b87f211c90557b6) --- source3/torture/torture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') 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; } -- cgit