]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-acl: When GETACL lists negative rights, the "-" wasn't inside quotes.
authorTimo Sirainen <tss@iki.fi>
Fri, 20 Feb 2009 20:38:42 +0000 (15:38 -0500)
committerTimo Sirainen <tss@iki.fi>
Fri, 20 Feb 2009 20:38:42 +0000 (15:38 -0500)
--HG--
branch : HEAD

src/plugins/imap-acl/imap-acl-plugin.c

index 63135adba4737a2457a3858358e06f343353a5a3..a9d8a74f53ba3c5457ba3d36efe057f68cc72624 100644 (file)
@@ -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) {