dovecot-2.1: doveadm acl set: Replace both positive and negative...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 12 04:12:55 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/dbff71f51507
changeset: 14118:dbff71f51507
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 12 04:12:44 2012 +0200
description:
doveadm acl set: Replace both positive and negative rights, not just one of them.

diffstat:

 src/plugins/acl/doveadm-acl.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 4bc781a27f54 -r dbff71f51507 src/plugins/acl/doveadm-acl.c
--- a/src/plugins/acl/doveadm-acl.c	Sun Feb 12 04:01:34 2012 +0200
+++ b/src/plugins/acl/doveadm-acl.c	Sun Feb 12 04:12:44 2012 +0200
@@ -278,10 +278,14 @@
 	if (array_count(&dest_rights) > 0) {
 		(void)array_append_space(&dest_rights);
 		update.rights.rights = array_idx(&dest_rights, 0);
+	} else {
+		update.modify_mode = ACL_MODIFY_MODE_CLEAR;
 	}
 	if (array_count(&dest_neg_rights) > 0) {
 		(void)array_append_space(&dest_neg_rights);
 		update.rights.neg_rights = array_idx(&dest_neg_rights, 0);
+	} else {
+		update.neg_modify_mode = ACL_MODIFY_MODE_CLEAR;
 	}
 
 	aclobj = acl_mailbox_get_aclobj(box);


More information about the dovecot-cvs mailing list