dovecot-1.2: acl_object_get_my_rights() was returning broken rig...

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 16 04:46:18 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/f5d753c4c8c6
changeset: 8416:f5d753c4c8c6
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 16 04:21:02 2008 +0200
description:
acl_object_get_my_rights() was returning broken rights.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/acl/acl-api.c |    2 +-

diffs (12 lines):

diff -r d00c446a95df -r f5d753c4c8c6 src/plugins/acl/acl-api.c
--- a/src/plugins/acl/acl-api.c	Sun Nov 16 01:34:16 2008 +0200
+++ b/src/plugins/acl/acl-api.c	Sun Nov 16 04:21:02 2008 +0200
@@ -85,7 +85,7 @@ static int acl_object_get_my_rights_real
 			name_idx += CHAR_BIT;
 		else {
 			for (j = 1; j < (1 << CHAR_BIT); j <<= 1, name_idx++) {
-				if ((mask->mask[j] & j) == 0)
+				if ((mask->mask[i] & j) == 0)
 					continue;
 
 				/* @UNSAFE */


More information about the dovecot-cvs mailing list