dovecot-1.2: imap-acl: When GETACL lists negative rights, the "-...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Feb 20 22:38:47 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/ed352de284be
changeset: 8754:ed352de284be
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 20 15:38:42 2009 -0500
description:
imap-acl: When GETACL lists negative rights, the "-" wasn't inside quotes.
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
src/plugins/imap-acl/imap-acl-plugin.c | 3 +--
diffs (14 lines):
diff -r f62c201dc8ac -r ed352de284be src/plugins/imap-acl/imap-acl-plugin.c
--- a/src/plugins/imap-acl/imap-acl-plugin.c Fri Feb 20 15:37:42 2009 -0500
+++ b/src/plugins/imap-acl/imap-acl-plugin.c Fri Feb 20 15:38:42 2009 -0500
@@ -128,9 +128,8 @@ imap_acl_write_right(string_t *dest, str
{
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) {
More information about the dovecot-cvs
mailing list