BUG/MINOR: acl: Fix error message about several '-m' parameters

There is a typo in the commit * c51ddd5c3 ("MINOR: acl: Only allow one '-m'
matching method") . '*m' was reported in the error message instead of '-m'.

In addition, it is now mentionned that only the last one should be keep if
an old config triggers the error.

No backport needed, except if the commit above is backported.
This commit is contained in:
Christopher Faulet 2025-09-05 11:27:40 +02:00
parent b167d545cf
commit bb407ba8e3

View File

@ -364,7 +364,8 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list *
goto out_free_expr;
}
if (match_forced) {
memprintf(err, "only one explicit matching method can be defined with '*m' parameter");
memprintf(err, "only one explicit matching method can be defined with '-m' parameter."
" if migrating from an old version, just keep the last one");
goto out_free_expr;
}