dovecot-2.2: i_stream_close(): Set stream_errno to EPIPE instead...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 16 18:57:45 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/93633121bc9d
changeset: 15801:93633121bc9d
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 04 15:59:12 2013 +0200
description:
i_stream_close(): Set stream_errno to EPIPE instead of ENOENT.

diffstat:

 src/lib/istream.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 004b69090776 -r 93633121bc9d src/lib/istream.c
--- a/src/lib/istream.c	Sat Feb 02 00:31:44 2013 +0200
+++ b/src/lib/istream.c	Mon Feb 04 15:59:12 2013 +0200
@@ -75,7 +75,7 @@
 	stream->closed = TRUE;
 
 	if (stream->stream_errno == 0)
-		stream->stream_errno = ENOENT;
+		stream->stream_errno = EPIPE;
 }
 
 void i_stream_set_init_buffer_size(struct istream *stream, size_t size)


More information about the dovecot-cvs mailing list