Mercurial > dovecot > core-2.2
changeset 15185:62a14c9ae6c4
maildir: Fixed crash with mailbox_list_index=yes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 03 Oct 2012 05:15:11 +0300 |
parents | 9f86c18e6b2c |
children | 559718e321a2 |
files | src/lib-storage/index/maildir/maildir-sync-index.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);