From 3a9eb305fd4aad5502cb7e64625874385ab5bc19 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 20 Feb 2009 15:38:42 -0500 Subject: [PATCH] imap-acl: When GETACL lists negative rights, the "-" wasn't inside quotes. --HG-- branch : HEAD --- src/plugins/imap-acl/imap-acl-plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/imap-acl/imap-acl-plugin.c b/src/plugins/imap-acl/imap-acl-plugin.c index 63135adba4..a9d8a74f53 100644 --- a/src/plugins/imap-acl/imap-acl-plugin.c +++ b/src/plugins/imap-acl/imap-acl-plugin.c @@ -128,9 +128,8 @@ imap_acl_write_right(string_t *dest, string_t *tmp, { const char *const *rights = neg ? right->neg_rights : right->rights; - if (neg) str_append_c(dest,'-'); - str_truncate(tmp, 0); + if (neg) str_append_c(tmp,'-'); if (right->global) str_append(tmp, IMAP_ACL_GLOBAL_PREFIX); switch (right->id_type) { -- 2.47.3