dovecot-2.2: lib-storage: If MAIL_STORAGE_CLASS_FLAG_NO_ROOT is ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 26 23:21:05 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/b0bda8a2d178
changeset: 15410:b0bda8a2d178
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 26 23:18:30 2012 +0200
description:
lib-storage: If MAIL_STORAGE_CLASS_FLAG_NO_ROOT is set, don't even try to mkdir it.
diffstat:
src/lib-storage/mail-storage.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r c86b8807fa2f -r b0bda8a2d178 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c Mon Nov 26 23:16:41 2012 +0200
+++ b/src/lib-storage/mail-storage.c Mon Nov 26 23:18:30 2012 +0200
@@ -355,8 +355,10 @@
list_set.layout, *error_r);
return -1;
}
- if (mail_storage_create_root(ns->list, flags, error_r) < 0)
- return -1;
+ if ((storage_class->class_flags & MAIL_STORAGE_CLASS_FLAG_NO_ROOT) == 0) {
+ if (mail_storage_create_root(ns->list, flags, error_r) < 0)
+ return -1;
+ }
}
storage = mail_storage_find(ns->user, storage_class, &list_set);
More information about the dovecot-cvs
mailing list