[dovecot-cvs] dovecot/src/plugins/acl acl-mailbox-list.c,1.1,1.2

tss at dovecot.org tss at dovecot.org
Sat Nov 18 11:54:01 UTC 2006


Update of /var/lib/cvs/dovecot/src/plugins/acl
In directory talvi:/tmp/cvs-serv22181/plugins/acl

Modified Files:
	acl-mailbox-list.c 
Log Message:
Fixed to actually work.



Index: acl-mailbox-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-mailbox-list.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- acl-mailbox-list.c	16 Nov 2006 00:20:42 -0000	1.1
+++ acl-mailbox-list.c	18 Nov 2006 11:53:59 -0000	1.2
@@ -6,6 +6,10 @@
 #include "acl-api-private.h"
 #include "acl-plugin.h"
 
+#define ACL_LIST_CONTEXT(obj) \
+	*((void **)array_idx_modifiable(&(obj)->module_contexts, \
+					acl_mailbox_list_module_id))
+
 struct acl_mailbox_list {
 	struct mailbox_list_vfuncs super;
 
@@ -22,7 +26,7 @@
 static struct mailbox_info *
 acl_mailbox_list_iter_next(struct mailbox_list_iterate_context *ctx)
 {
-	struct acl_mailbox_list *alist = ACL_CONTEXT(ctx->list);
+	struct acl_mailbox_list *alist = ACL_LIST_CONTEXT(ctx->list);
 	struct mailbox_info *info;
 	int ret;
 
@@ -56,7 +60,7 @@
 				       const char *name,
 				       enum mailbox_name_status *status)
 {
-	struct acl_mailbox_list *alist = ACL_CONTEXT(list);
+	struct acl_mailbox_list *alist = ACL_LIST_CONTEXT(list);
 	const char *parent;
 	int ret;
 
@@ -121,7 +125,7 @@
 
 void acl_mailbox_list_set_storage(struct mail_storage *storage)
 {
-	struct acl_mailbox_list *alist = ACL_CONTEXT(storage->list);
+	struct acl_mailbox_list *alist = ACL_LIST_CONTEXT(storage->list);
 
 	i_assert(alist->storage == NULL);
 



More information about the dovecot-cvs mailing list