dovecot-1.1: dbox rebuild: If alt directory doesn't exist, don't...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 11 08:14:26 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/0d3ab8eaeedf
changeset: 7405:0d3ab8eaeedf
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 11 08:14:21 2008 +0200
description:
dbox rebuild: If alt directory doesn't exist, don't fail.

diffstat:

1 file changed, 4 insertions(+)
src/lib-storage/index/dbox/dbox-sync-rebuild.c |    4 ++++

diffs (14 lines):

diff -r ba8ae35ce462 -r 0d3ab8eaeedf src/lib-storage/index/dbox/dbox-sync-rebuild.c
--- a/src/lib-storage/index/dbox/dbox-sync-rebuild.c	Tue Mar 11 06:18:45 2008 +0200
+++ b/src/lib-storage/index/dbox/dbox-sync-rebuild.c	Tue Mar 11 08:14:21 2008 +0200
@@ -287,6 +287,10 @@ static int dbox_sync_index_rebuild_dir(s
 	dir = opendir(path);
 	if (dir == NULL) {
 		if (errno == ENOENT) {
+			if (!primary) {
+				/* alt directory doesn't exist, ignore */
+				return 0;
+			}
 			mailbox_set_deleted(&ctx->mbox->ibox.box);
 			return -1;
 		}


More information about the dovecot-cvs mailing list