dovecot-1.2: imap-acl: Fixed GETACL when listing both negative a...

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 20 22:37:47 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/f62c201dc8ac
changeset: 8753:f62c201dc8ac
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 20 15:37:42 2009 -0500
description:
imap-acl: Fixed GETACL when listing both negative and postitive rights.

diffstat:

1 file changed, 6 insertions(+), 3 deletions(-)
src/plugins/imap-acl/imap-acl-plugin.c |    9 ++++++---

diffs (21 lines):

diff -r ee02ea08ce30 -r f62c201dc8ac src/plugins/imap-acl/imap-acl-plugin.c
--- a/src/plugins/imap-acl/imap-acl-plugin.c	Fri Feb 20 15:35:43 2009 -0500
+++ b/src/plugins/imap-acl/imap-acl-plugin.c	Fri Feb 20 15:37:42 2009 -0500
@@ -173,11 +173,14 @@ static int imap_acl_write_aclobj(string_
 	tmp = t_str_new(128);
 	iter = acl_object_list_init(aclobj);
 	while ((ret = acl_object_list_next(iter, &rights)) > 0) {
-		str_append_c(dest, ' ');
-		if (rights.rights != NULL)
+		if (rights.rights != NULL) {
+			str_append_c(dest, ' ');
 			imap_acl_write_right(dest, tmp, &rights, FALSE);
-		if (rights.neg_rights != NULL)
+		}
+		if (rights.neg_rights != NULL) {
+			str_append_c(dest, ' ');
 			imap_acl_write_right(dest, tmp, &rights, TRUE);
+		}
 	}
 	acl_object_list_deinit(&iter);
 	return ret;


More information about the dovecot-cvs mailing list