dovecot-2.2: layout=fs: Fixed assert-crash when mail root doesn'...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 20 20:17:27 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/fb934cb4a37e
changeset: 16066:fb934cb4a37e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 20 20:17:15 2013 +0200
description:
layout=fs: Fixed assert-crash when mail root doesn't exist (pop3c).

diffstat:

 src/lib-storage/list/mailbox-list-fs-iter.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r ab434891f2af -r fb934cb4a37e src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c	Wed Mar 20 19:18:01 2013 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c	Wed Mar 20 20:17:15 2013 +0200
@@ -237,8 +237,10 @@
 	}
 	if (*path != '/') {
 		/* non-absolute path. add the mailbox root dir as prefix. */
-		root = mailbox_list_get_root_forced(ctx->ctx.list,
-						    MAILBOX_LIST_PATH_TYPE_MAILBOX);
+		if (!mailbox_list_get_root_path(ctx->ctx.list,
+						MAILBOX_LIST_PATH_TYPE_MAILBOX,
+						&root))
+			return FALSE;
 		path = *path == '\0' ? root :
 			t_strconcat(root, "/", path, NULL);
 	}


More information about the dovecot-cvs mailing list