dovecot-2.0: quota-fs: If mount=path isn't specified, don't fail...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 15 20:51:44 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/14eeed133d57
changeset: 10068:14eeed133d57
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 15 13:51:37 2009 -0400
description:
quota-fs: If mount=path isn't specified, don't fail with multiple quota roots.
diffstat:
1 file changed, 3 insertions(+)
src/plugins/quota/quota-fs.c | 3 +++
diffs (13 lines):
diff -r ebebf0b447c7 -r 14eeed133d57 src/plugins/quota/quota-fs.c
--- a/src/plugins/quota/quota-fs.c Thu Oct 15 13:45:59 2009 -0400
+++ b/src/plugins/quota/quota-fs.c Thu Oct 15 13:51:37 2009 -0400
@@ -712,6 +712,9 @@ static bool fs_quota_match_box(struct qu
const char *mailbox_path;
bool match;
+ if (root->storage_mount_path == NULL)
+ return TRUE;
+
mailbox_path = mailbox_list_get_path(box->list, box->name,
MAILBOX_LIST_PATH_TYPE_MAILBOX);
if (stat(mailbox_path, &mst) < 0) {
More information about the dovecot-cvs
mailing list