dovecot-2.1: fs layout: Handle properly returning path when ther...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 28 19:01:06 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/5a14f5ddd1a2
changeset: 14017:5a14f5ddd1a2
user: Timo Sirainen <tss at iki.fi>
date: Sat Jan 28 19:00:56 2012 +0200
description:
fs layout: Handle properly returning path when there is no root dir.
diffstat:
src/lib-storage/list/mailbox-list-fs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 85a9b5236b6c -r 5a14f5ddd1a2 src/lib-storage/list/mailbox-list-fs.c
--- a/src/lib-storage/list/mailbox-list-fs.c Fri Jan 27 23:33:00 2012 +0200
+++ b/src/lib-storage/list/mailbox-list-fs.c Sat Jan 28 19:00:56 2012 +0200
@@ -207,6 +207,8 @@
return set->inbox_path;
}
+ if (root_dir == NULL)
+ return type == MAILBOX_LIST_PATH_TYPE_INDEX ? "" : NULL;
if (*set->maildir_name == '\0') {
return t_strdup_printf("%s/%s%s", root_dir,
set->mailbox_dir_name, name);
More information about the dovecot-cvs
mailing list