BUG/MINOR: cli: make sure "help", "prompt", "quit" are enabled at master level
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 16:03:33 +0000 (17:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 18:09:19 +0000 (19:09 +0100)
commit0609c9bde98a80b25bf28f268665de65770a38da
tree0458b1f3f78297041a224482c0a5a5ff8ae5e1b3
parentdb31b4486c939a416c10b717fc79fdbc275458f1
BUG/MINOR: cli: make sure "help", "prompt", "quit" are enabled at master level

These 3 commands are functionally valid both in master and worker CLIs.
However, while they do have a valid handler, they are not permitted by
the code and work partially by chance in the master:
  - "prompt" and "quit" are intercepted by the request analyser
  - "help" triggers an error, which results in displaying the error
    message

Let's make sure they are permitted so that we don't count errors there and
that we can report appropriate help.

This bug has always been there but it doesn't have any functional effect
at the moment since "help" can only show the error message. As such, there
is no need to backport it.
src/cli.c