Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8177:bdc3465bb803 HEAD
ACLs: Negative rights were actually treated as positive rights.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 08 Sep 2008 16:56:43 +0300 |
parents | dbf8f0c231a2 |
children | a6ae37414011 |
files | src/plugins/acl/acl-cache.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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:43 2008 +0300 @@ -387,10 +387,8 @@ 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]; } }