From: sergey.kitov Date: Thu, 3 Oct 2024 12:52:15 +0000 (+0300) Subject: config: Fix formatting of boollist keys containing '=' by doveconf. X-Git-Tag: 2.4.1~622 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f3798b476aff7ad05b7d144e4655e8f4d20fccc;p=thirdparty%2Fdovecot%2Fcore.git config: Fix formatting of boollist keys containing '=' by doveconf. --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 6c0b242499..e1750a7782 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -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);