dovecot-2.2: lib-storage: Don't try to mkdir() empty directory w...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 29 03:23:51 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/2306acef767e
changeset: 16411:2306acef767e
user: Timo Sirainen <tss at iki.fi>
date: Wed May 29 03:23:40 2013 +0300
description:
lib-storage: Don't try to mkdir() empty directory with INDEX=MEMORY
diffstat:
src/lib-storage/mailbox-list.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 8307019ce491 -r 2306acef767e src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c Wed May 29 03:18:04 2013 +0300
+++ b/src/lib-storage/mailbox-list.c Wed May 29 03:23:40 2013 +0300
@@ -1454,6 +1454,8 @@
&index_dir);
if (ret <= 0)
return ret;
+ if (index_dir[0] == '\0')
+ return 0;
ret = mailbox_list_get_root_path(list, MAILBOX_LIST_PATH_TYPE_MAILBOX,
&root_dir);
if (ret <= 0)
More information about the dovecot-cvs
mailing list