dovecot-2.2: layout=fs: Don't crash in iteration if there is no ...
dovecot at dovecot.org
dovecot at dovecot.org
Sun May 20 03:26:30 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/b7dc140e6b4d
changeset: 14396:b7dc140e6b4d
user: Timo Sirainen <tss at iki.fi>
date: Fri Mar 30 03:42:21 2012 +0300
description:
layout=fs: Don't crash in iteration if there is no root dir (pop3c).
diffstat:
src/lib-storage/list/mailbox-list-fs-iter.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 078697a32109 -r b7dc140e6b4d src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c Fri Mar 30 03:07:12 2012 +0300
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c Fri Mar 30 03:42:21 2012 +0300
@@ -234,6 +234,10 @@
if (!fs_list_get_storage_path(ctx, dir->storage_name, &path))
return 0;
+ if (path == NULL) {
+ /* no mailbox root dir */
+ return 0;
+ }
fsdir = opendir(path);
if (fsdir == NULL) {
More information about the dovecot-cvs
mailing list