summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-22 15:14:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:14 -0500
commit8c7337785505046a34d36c3131614ec3c0d93b2a (patch)
tree8aabf372b1a98c2ecaeb7929806f0b497920c1c1 /source4
parent492b8d38bf0f36cdf1b60eae102c8abee5455271 (diff)
downloadsamba-8c7337785505046a34d36c3131614ec3c0d93b2a.tar.gz
samba-8c7337785505046a34d36c3131614ec3c0d93b2a.tar.bz2
samba-8c7337785505046a34d36c3131614ec3c0d93b2a.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/client/cifsdd.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}