]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Don't show requested settings where only prefix matches
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 8 Nov 2024 11:14:13 +0000 (13:14 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
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

index f63706cdedea189d1fff2f44e65f5c423f965361..935f139d47cfe63b3152646a0233dde76102e489 100644 (file)
@@ -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++;