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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/0c67730b9002
changeset: 7796:0c67730b9002
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 714c9ca530a8 -r 0c67730b9002 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