dovecot-1.1: ACLs: Negative rights were actually treated as posi...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 8 16:57:02 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/aac3b42f3f8a
changeset: 7866:aac3b42f3f8a
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 08 16:56:58 2008 +0300
description:
ACLs: Negative rights were actually treated as positive rights.
diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
src/plugins/acl/acl-cache.c | 6 ++----
diffs (16 lines):
diff -r d2b3112eb841 -r aac3b42f3f8a src/plugins/acl/acl-cache.c
--- a/src/plugins/acl/acl-cache.c Mon Sep 08 12:02:41 2008 +0300
+++ b/src/plugins/acl/acl-cache.c Mon Sep 08 16:56:58 2008 +0300
@@ -387,10 +387,8 @@ acl_cache_my_current_rights_recalculate(
rights. */
right_size = obj_cache->my_neg_rights[i]->size;
p = buffer_get_space_unsafe(bitmask, 0, right_size);
- for (j = 0; j < right_size; j++) {
- p[j] |=
- obj_cache->my_neg_rights[i]->mask[j];
- }
+ for (j = 0; j < right_size; j++)
+ p[j] &= ~obj_cache->my_neg_rights[i]->mask[j];
}
}
More information about the dovecot-cvs
mailing list