From 8c7337785505046a34d36c3131614ec3c0d93b2a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 22 Sep 2006 15:14:03 +0000 Subject: r18824: fixed a bug in cifsdd when the file is exactly a multiple of the block size (cifsdd incorrectly reported an error and exited) (This used to be commit 897b1ae3bff4914e5cfbcb333184045c2a1deaf3) --- source4/client/cifsdd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/client') diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c index eda25f904d..0ebaa9e378 100644 --- a/source4/client/cifsdd.c +++ b/source4/client/cifsdd.c @@ -498,7 +498,8 @@ static int copy_files(void) * at least obs bytes in the IO buffer but might not if the * file is too small. */ - if (!dd_flush_block(ofile, iobuf, &data_size, obs)) { + if (data_size && + !dd_flush_block(ofile, iobuf, &data_size, obs)) { return(IOERROR_EXIT_CODE); } } -- cgit