svn commit: samba r18824 - in branches/SAMBA_4_0/source/client: .

tridge at samba.org tridge at samba.org
Fri Sep 22 15:14:04 GMT 2006


Author: tridge
Date: 2006-09-22 15:14:03 +0000 (Fri, 22 Sep 2006)
New Revision: 18824

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18824

Log:

fixed a bug in cifsdd when the file is exactly a multiple of the block
size (cifsdd incorrectly reported an error and exited)

Modified:
   branches/SAMBA_4_0/source/client/cifsdd.c


Changeset:
Modified: branches/SAMBA_4_0/source/client/cifsdd.c
===================================================================
--- branches/SAMBA_4_0/source/client/cifsdd.c	2006-09-22 15:09:08 UTC (rev 18823)
+++ branches/SAMBA_4_0/source/client/cifsdd.c	2006-09-22 15:14:03 UTC (rev 18824)
@@ -498,7 +498,8 @@
 		 * 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);
 		}
 	}



More information about the samba-cvs mailing list