dovecot-2.0: mbox: Sync write error handling fix.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 5 01:06:06 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/4a8f0388e854
changeset: 11034:4a8f0388e854
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 05 00:29:23 2010 +0300
description:
mbox: Sync write error handling fix.

diffstat:

 src/lib-storage/index/mbox/mbox-sync.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 0bc933c35a17 -r 4a8f0388e854 src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c	Mon Apr 05 00:26:16 2010 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Mon Apr 05 00:29:23 2010 +0300
@@ -1616,12 +1616,13 @@
 		/* Rewrite uid_last in X-IMAPbase header if we've seen it
 		   (ie. the file isn't empty) */
                 ret = mbox_rewrite_base_uid_last(sync_ctx);
+	} else {
+		ret = 0;
 	}
 
 	if (mbox_sync_update_index_header(sync_ctx) < 0)
 		return -1;
-
-	return 0;
+	return ret;
 }
 
 int mbox_sync_header_refresh(struct mbox_mailbox *mbox)


More information about the dovecot-cvs mailing list