]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: Issue an error when too many args are passed for a command
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Apr 2025 13:29:00 +0000 (15:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 12:58:24 +0000 (14:58 +0200)
commitd3f92894471dd7306f857156a5820c53c10f8d88
treee7c494ef717b987932236ec9724c04413fb71bff
parent6c5030f703e29bfd8deeace111bcedc6835c7065
BUG/MINOR: cli: Issue an error when too many args are passed for a command

When a command is parsed to split it in an array of arguments, by default,
at most 64 arguments are supported. But no warning was emitted when there
were too many arguments. Instead, the arguments above the limit were
silently ignored. It could be an issue for some commands, like "add server",
because there was no way to know some arguments were ignored.

Now an error is issued when too many arguments are passed and the command is
not executed.

This patch should be backported to all stable versions.
src/cli.c