]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Save the entire dovecot-acl-list to memory, otherwise "has visible children...
authorTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 17:04:55 +0000 (19:04 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 17:04:55 +0000 (19:04 +0200)
--HG--
branch : HEAD

src/plugins/acl/acl-mailbox-list.c

index c45447416f7d469dc949a7020baa133b7df9cbb6..7acd495cc4c246052ff09644dee08e7c86ecfa00 100644 (file)
@@ -91,7 +91,10 @@ acl_mailbox_try_list_fast(struct acl_mailbox_list_iterate_context *ctx)
 
        memset(&update_ctx, 0, sizeof(update_ctx));
        update_ctx.iter_ctx = &ctx->ctx;
-       update_ctx.glob = ctx->glob;
+       update_ctx.glob =
+               imap_match_init(pool_datastack_create(), "*",
+                               (ns->flags & NAMESPACE_FLAG_INBOX) != 0,
+                               ctx->sep);
        update_ctx.match_parents = TRUE;
        update_ctx.tree_ctx = mailbox_tree_init(ctx->sep);