dovecot-2.0: doveconf: Skip verifying settings for modules we do...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 28 19:09:54 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/65855df71cf4
changeset: 12193:65855df71cf4
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 28 17:09:29 2010 +0100
description:
doveconf: Skip verifying settings for modules we don't care about.
This was done sometimes, but not always.
diffstat:
src/config/config-parser.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 431dff6a6ae7 -r 65855df71cf4 src/config/config-parser.c
--- a/src/config/config-parser.c Tue Sep 28 16:29:33 2010 +0100
+++ b/src/config/config-parser.c Tue Sep 28 17:09:29 2010 +0100
@@ -286,12 +286,13 @@
const struct config_module_parser *p,
const char **error_r)
{
- /* skip checking settings we don't care about */
- if (*ctx->module != '\0' &&
- !config_module_want_parser(ctx->root_parsers, ctx->module, p->root))
- return 0;
+ for (; p->root != NULL; p++) {
+ /* skip checking settings we don't care about */
+ if (*ctx->module != '\0' &&
+ !config_module_want_parser(ctx->root_parsers,
+ ctx->module, p->root))
+ continue;
- for (; p->root != NULL; p++) {
settings_parse_var_skip(p->parser);
if (!settings_parser_check(p->parser, ctx->pool, error_r))
return -1;
More information about the dovecot-cvs
mailing list