From: Timo Sirainen Date: Fri, 20 Feb 2009 20:38:42 +0000 (-0500) Subject: imap-acl: When GETACL lists negative rights, the "-" wasn't inside quotes. X-Git-Tag: 1.2.beta2~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a9eb305fd4aad5502cb7e64625874385ab5bc19;p=thirdparty%2Fdovecot%2Fcore.git imap-acl: When GETACL lists negative rights, the "-" wasn't inside quotes. --HG-- branch : HEAD --- 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) {