dovecot-2.2: lib-fs: fs_write_stream_abort() now ignores missing...

dovecot at dovecot.org dovecot at dovecot.org
Fri May 29 14:53:37 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/1a52baa9bf27
changeset: 18759:1a52baa9bf27
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 29 17:51:21 2015 +0300
description:
lib-fs: fs_write_stream_abort() now ignores missing o_stream_nfinish() call

diffstat:

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

diffs (12 lines):

diff -r 485ed5de2473 -r 1a52baa9bf27 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c	Fri May 29 11:50:18 2015 +0300
+++ b/src/lib-fs/fs-api.c	Fri May 29 17:51:21 2015 +0300
@@ -587,6 +587,8 @@
 	i_assert(*output == file->output);
 
 	*output = NULL;
+	if (file->output != NULL)
+		o_stream_ignore_last_errors(file->output);
 	T_BEGIN {
 		(void)file->fs->v.write_stream_finish(file, FALSE);
 	} T_END;


More information about the dovecot-cvs mailing list