From 0cc595223e86165e3c9ad0fb6cd16d98b278acf3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 19 Sep 2024 13:18:04 +0300 Subject: [PATCH] config: Allow specifying service settings inside @groups --- src/config/config-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config-parser.c b/src/config/config-parser.c index 508f85801c..96b12f9b6d 100644 --- a/src/config/config-parser.c +++ b/src/config/config-parser.c @@ -1214,8 +1214,8 @@ config_filter_add_new_filter(struct config_parser_context *ctx, return FALSE; } if (strcmp(key, "service") == 0 && - parent->filter_name_array) { - i_assert(parent->filter_name != NULL); + parent->filter_name_array && + parent->filter_name[0] != SETTINGS_INCLUDE_GROUP_PREFIX) { ctx->error = p_strdup_printf(ctx->pool, "%s { .. } not allowed under %s { .. }", key, t_strcut(parent->filter_name, '/')); -- 2.47.3