[dovecot-cvs] dovecot/src/lib istream-limit.c, 1.18, 1.18.2.1 ostream-crlf.c, 1.13, 1.13.2.1

tss at dovecot.org tss at dovecot.org
Thu Mar 1 11:13:54 UTC 2007


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

Modified Files:
      Tag: branch_1_0
	istream-limit.c ostream-crlf.c 
Log Message:
Keep stream_errno updated in filter streams.



Index: istream-limit.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream-limit.c,v
retrieving revision 1.18
retrieving revision 1.18.2.1
diff -u -d -r1.18 -r1.18.2.1
--- istream-limit.c	14 Jan 2006 18:47:22 -0000	1.18
+++ istream-limit.c	1 Mar 2007 11:13:51 -0000	1.18.2.1
@@ -57,6 +57,7 @@
 			if (stream->skip == 0)
 				return -2;
 		}
+		stream->istream.stream_errno = lstream->input->stream_errno;
 		stream->istream.eof = lstream->input->eof;
 		stream->buffer = i_stream_get_data(lstream->input, &pos);
 	} else {

Index: ostream-crlf.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-crlf.c,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -u -d -r1.13 -r1.13.2.1
--- ostream-crlf.c	14 Jan 2006 18:47:22 -0000	1.13
+++ ostream-crlf.c	1 Mar 2007 11:13:51 -0000	1.13.2.1
@@ -211,6 +211,7 @@
 		}
 		*total_r += left;
 	}
+	cstream->ostream.ostream.stream_errno = cstream->output->stream_errno;
 	cstream->ostream.ostream.offset = cstream->output->offset;
 	return ret;
 }



More information about the dovecot-cvs mailing list