]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acl: Fix error message about several '-m' parameters
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 Sep 2025 09:27:40 +0000 (11:27 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 Sep 2025 09:32:20 +0000 (11:32 +0200)
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.

src/acl.c

index 370d696c0a4c39a5bee9276d4c6b1ab1fa4c295b..954233521da167cc372f16700c262c1b0f5b2768 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -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;
                        }