From: Timo Sirainen Date: Fri, 8 Nov 2024 11:14:13 +0000 (+0200) Subject: doveconf: Don't show requested settings where only prefix matches X-Git-Tag: 2.4.0~234 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6148cf9f3ad5113370a19ada09d7617a72a678d7;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Don't show requested settings where only prefix matches For example asking for "doveconf passdb" could have returned passdb_lua and other (default) named filters where the name started with "passdb". --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index f63706cded..935f139d47 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -742,6 +742,7 @@ config_dump_human_filter_path(enum config_dump_scope scope, sub_filter_path++; } else if (suffix[0] != '/') { /* filter name doesn't match the path */ + continue; } else if (set_filter_path[1] == NULL) { /* filter array name prefix match (e.g. "service") */ sub_filter_path++;