dovecot-2.2: mbox: If save's input stream fails, fail saving ins...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 15 17:10:33 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/02f2ed55d568
changeset: 16366:02f2ed55d568
user: Timo Sirainen <tss at iki.fi>
date: Wed May 15 17:10:28 2013 +0300
description:
mbox: If save's input stream fails, fail saving instead of ignoring the error.
diffstat:
src/lib-storage/index/mbox/mbox-save.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 9fcdd9f80e30 -r 02f2ed55d568 src/lib-storage/index/mbox/mbox-save.c
--- a/src/lib-storage/index/mbox/mbox-save.c Wed May 15 17:09:36 2013 +0300
+++ b/src/lib-storage/index/mbox/mbox-save.c Wed May 15 17:10:28 2013 +0300
@@ -635,6 +635,11 @@
}
if (ret == 0)
return 0;
+ if (ctx->input->stream_errno != 0) {
+ i_error("read(%s) failed: %m", i_stream_get_name(ctx->input));
+ ctx->failed = TRUE;
+ return -1;
+ }
i_assert(ctx->last_char == '\n');
More information about the dovecot-cvs
mailing list