]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Fix formatting of boollist keys containing '=' by doveconf.
authorsergey.kitov <sergey.kitov@open-xchange.com>
Thu, 3 Oct 2024 12:52:15 +0000 (15:52 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:00 +0000 (10:40 +0200)
src/config/doveconf.c

index 6c0b242499f963bd886c345f19fa53c5b66ef802..e1750a7782373623ced189568515324700771c30 100644 (file)
@@ -568,11 +568,11 @@ config_dump_human_output(struct config_dump_human_context *ctx,
 
                const char *full_key = key;
                try_strip_prefix(&key, strip_prefix, strip_prefix2);
-               value = strchr(key, '=');
+               value = bool_list_elem ? strrchr(key, '=') : strchr(key, '=');
                i_assert(value != NULL);
                if (!hide_key || bool_list_elem || str_list_elem) {
                        key = t_strdup_until(key, value);
-                       if (strpbrk(key, " \"\\#") == NULL)
+                       if (strpbrk(key, " \"\\#=") == NULL)
                                o_stream_nsend_str(output, key);
                        else {
                                o_stream_nsend(output, "\"", 1);