From 6148cf9f3ad5113370a19ada09d7617a72a678d7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 8 Nov 2024 13:14:13 +0200 Subject: [PATCH] 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". --- src/config/doveconf.c | 1 + 1 file changed, 1 insertion(+) 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++; -- 2.47.3