dovecot-1.2: ACLs: Negative rights were actually treated as posi...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Mon Sep  8 16:56:46 EEST 2008
    
    
  
details:   http://hg.dovecot.org/dovecot-1.2/rev/bdc3465bb803
changeset: 8177:bdc3465bb803
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 08 16:56:43 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 dbf8f0c231a2 -r bdc3465bb803 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:43 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