[dovecot-cvs] dovecot/src/lib istream-seekable.c,1.8,1.9

tss-movial at dovecot.org tss-movial at dovecot.org
Tue May 9 12:37:00 EEST 2006


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

Modified Files:
	istream-seekable.c 
Log Message:
If parent stream's read() returned -2, we returned -1 instead of the -2.



Index: istream-seekable.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream-seekable.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- istream-seekable.c	14 Jan 2006 18:47:22 -0000	1.8
+++ istream-seekable.c	9 May 2006 09:36:58 -0000	1.9
@@ -249,8 +249,7 @@
 	stream->pos -= stream->skip;
 	stream->skip = 0;
 
-	ret = pos > stream->pos ? (ssize_t)(pos - stream->pos) :
-		(ret == 0 ? 0 : -1);
+	ret = pos > stream->pos ? (ssize_t)(pos - stream->pos) : ret;
 	stream->pos = pos;
 	return ret;
 }



More information about the dovecot-cvs mailing list