]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-fs: If mount=path isn't specified, don't fail with multiple quota roots.
authorTimo Sirainen <tss@iki.fi>
Thu, 15 Oct 2009 17:51:37 +0000 (13:51 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 15 Oct 2009 17:51:37 +0000 (13:51 -0400)
--HG--
branch : HEAD

src/plugins/quota/quota-fs.c

index 613373d84b0f7ea645e41f110390bd0211b4b939..20a3368a7cdec4af1e8051036bc3b962949aa630 100644 (file)
@@ -712,6 +712,9 @@ static bool fs_quota_match_box(struct quota_root *_root, struct mailbox *box)
        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) {