dovecot-2.2: maildir: Fixed crash with mailbox_list_index=yes

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 3 05:15:23 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/62a14c9ae6c4
changeset: 15185:62a14c9ae6c4
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 03 05:15:11 2012 +0300
description:
maildir: Fixed crash with mailbox_list_index=yes

diffstat:

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

diffs (16 lines):

diff -r 9f86c18e6b2c -r 62a14c9ae6c4 src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Wed Oct 03 04:14:33 2012 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Wed Oct 03 05:15:11 2012 +0300
@@ -728,7 +728,11 @@
 		return 1;
 	}
 
-	root_dir = mailbox_get_path(box);
+	ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_MAILBOX,
+				  &root_dir);
+	if (ret < 0)
+		return ret;
+	i_assert(ret > 0);
 
 	/* check if new/ changed */
 	new_dir = t_strconcat(root_dir, "/new", NULL);


More information about the dovecot-cvs mailing list