1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

r5641: Fix from James Peach @ SGI for oplock2 test.

Jeremy.
(This used to be commit 69e99d97d1547ec8f8e7f9756b87f211c90557b6)
This commit is contained in:
Jeremy Allison 2005-03-03 04:08:13 +00:00 committed by Gerald (Jerry) Carter
parent 73d7fb0fd0
commit b6211e0262

View File

@ -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;
}