dovecot-2.0: acl: Make sure acl-list and dict is rebuild when re...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 8 19:02:52 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/cbc30c72b3ce
changeset: 12094:cbc30c72b3ce
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 08 17:02:48 2010 +0100
description:
acl: Make sure acl-list and dict is rebuild when replacing/clearing ACLs

diffstat:

 src/plugins/acl/acl-backend-vfile.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r d377c610b19d -r cbc30c72b3ce src/plugins/acl/acl-backend-vfile.c
--- a/src/plugins/acl/acl-backend-vfile.c	Wed Sep 08 17:02:25 2010 +0100
+++ b/src/plugins/acl/acl-backend-vfile.c	Wed Sep 08 17:02:48 2010 +0100
@@ -1168,9 +1168,11 @@
 		acl_cache_flush(_aclobj->backend->cache, _aclobj->name);
 		return -1;
 	}
-	/* make sure dovecot-acl-list gets updated if we added any
+	/* make sure dovecot-acl-list gets updated if we changed any
 	   lookup rights. */
-	if (acl_rights_has_nonowner_lookup_changes(&update->rights))
+	if (acl_rights_has_nonowner_lookup_changes(&update->rights) ||
+	    update->modify_mode == ACL_MODIFY_MODE_REPLACE ||
+	    update->modify_mode == ACL_MODIFY_MODE_CLEAR)
 		(void)acl_backend_vfile_acllist_rebuild(backend);
 	return 0;
 }


More information about the dovecot-cvs mailing list