[dovecot-cvs] dovecot/src/lib sendfile-util.c,1.10,1.11

cras at dovecot.org cras at dovecot.org
Thu Oct 14 02:36:24 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv15601

Modified Files:
	sendfile-util.c 
Log Message:
FreeBSD fix



Index: sendfile-util.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/sendfile-util.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- sendfile-util.c	22 Sep 2004 19:50:32 -0000	1.10
+++ sendfile-util.c	13 Oct 2004 23:36:21 -0000	1.11
@@ -69,7 +69,7 @@
 
 	*offset += sbytes;
 
-	if (ret == 0 || (ret == 0 && errno == EAGAIN && sbytes > 0))
+	if (ret == 0 || (ret < 0 && errno == EAGAIN && sbytes > 0))
 		return (ssize_t)sbytes;
 	else {
 		if (errno == ENOTSOCK) {



More information about the dovecot-cvs mailing list