dovecot-1.2: mbox: Fixed assert-crash with read-only mbox stream...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 24 02:13:23 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/f30268333748
changeset: 8056:f30268333748
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 24 02:13:11 2008 +0300
description:
mbox: Fixed assert-crash with read-only mbox streams (e.g. zlib plugin)

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/mbox/mbox-file.c |    1 +

diffs (11 lines):

diff -r 1894a0b4957d -r f30268333748 src/lib-storage/index/mbox/mbox-file.c
--- a/src/lib-storage/index/mbox/mbox-file.c	Thu Jul 24 02:04:08 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-file.c	Thu Jul 24 02:13:11 2008 +0300
@@ -125,6 +125,7 @@ void mbox_file_close_stream(struct mbox_
 		if (mbox->mbox_fd == -1) {
 			/* read-only mbox stream */
 			i_assert(mbox->mbox_readonly);
+			i_stream_seek(mbox->mbox_file_stream, 0);
 		} else {
 			i_stream_destroy(&mbox->mbox_file_stream);
 		}


More information about the dovecot-cvs mailing list