dovecot-1.0: ACLs: Negative rights were actually treated as posi...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 8 16:56:21 EEST 2008
details: http://hg.dovecot.org/dovecot-1.0/rev/2dc3a5678fe5
changeset: 5568:2dc3a5678fe5
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 08 16:56:13 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 568687e4df02 -r 2dc3a5678fe5 src/plugins/acl/acl-cache.c
--- a/src/plugins/acl/acl-cache.c Sat Aug 30 14:40:41 2008 +0300
+++ b/src/plugins/acl/acl-cache.c Mon Sep 08 16:56:13 2008 +0300
@@ -375,10 +375,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