dovecot-2.2: istream-seekable: Fail stat() if stream_errno is set.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 4 20:18:39 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/595c00f289bf
changeset: 15724:595c00f289bf
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 04 20:12:10 2013 +0200
description:
istream-seekable: Fail stat() if stream_errno is set.
diffstat:
src/lib/istream-seekable.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r e11b9ba8b90a -r 595c00f289bf src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c Mon Feb 04 20:10:59 2013 +0200
+++ b/src/lib/istream-seekable.c Mon Feb 04 20:12:10 2013 +0200
@@ -330,6 +330,8 @@
i_stream_seek(&stream->istream, old_offset);
unref_streams(sstream);
}
+ if (stream->istream.stream_errno != 0)
+ return -1;
if (sstream->fd_input != NULL) {
/* using a file backed buffer, we can use real fstat() */
More information about the dovecot-cvs
mailing list