Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8753:f62c201dc8ac HEAD
imap-acl: Fixed GETACL when listing both negative and postitive rights.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Feb 2009 15:37:42 -0500 |
parents | ee02ea08ce30 |
children | ed352de284be |
files | src/plugins/imap-acl/imap-acl-plugin.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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;