From: Olivier Houchard Date: Wed, 29 Jul 2026 20:39:22 +0000 (+0200) Subject: BUG/MINOR: cli: do not reject the "/" form of "show fd" X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=2b7f1cb2fe1281a6b8879e6a768d61166aa40c01;p=thirdparty%2Fhaproxy.git BUG/MINOR: cli: do not reject the "/" form of "show fd" Commit da554b7ef added the tgid/fd argument form, where tgid is optional, and a missing tgid would mean "in each thread group". However the code considered everything that was not a digit a filter type, and as / was not a valid filter type, we'd just get an output of "Invalid FD type". Fix that by not considering / a filter character. This must be backported to 3.4. --- diff --git a/src/cli.c b/src/cli.c index d6c2479b4..8f3c74727 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1841,7 +1841,7 @@ static int cli_parse_show_fd(char **args, char *payload, struct appctx *appctx, if (*args[arg] == '!' || *args[arg] == '-') ctx->show_mask = CLI_SHOWFD_F_ANY; - while (*args[arg] && !isdigit((uchar)*args[arg])) { + while (*args[arg] && !isdigit((uchar)*args[arg]) && *args[arg] != '/') { uint flag = 0, inv = 0; c = args[arg]; while (*c) {