From: Miroslav Zagorac Date: Fri, 1 Sep 2023 20:23:27 +0000 (+0200) Subject: MINOR: properly mark the end of the CLI command in error messages X-Git-Tag: v2.9-dev5~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cfc30416c6d41db8d59ced738d530929c2e98e3;p=thirdparty%2Fhaproxy.git MINOR: properly mark the end of the CLI command in error messages In several places in the file src/ssl_ckch.c, in the message about the incorrect use of the CLI command, the end of that CLI command is not correctly marked with the sign ' . --- diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 341531d174..07a04aa181 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -2260,7 +2260,7 @@ static int cli_parse_commit_cert(char **args, char *payload, struct appctx *appc return 1; if (!*args[3]) - return cli_err(appctx, "'commit ssl cert expects a filename\n"); + return cli_err(appctx, "'commit ssl cert' expects a filename\n"); /* The operations on the CKCH architecture are locked so we can * manipulate ckch_store and ckch_inst */ @@ -2328,7 +2328,7 @@ static int cli_parse_set_cert(char **args, char *payload, struct appctx *appctx, return 1; if (!*args[3] || !payload) - return cli_err(appctx, "'set ssl cert expects a filename and a certificate as a payload\n"); + return cli_err(appctx, "'set ssl cert' expects a filename and a certificate as a payload\n"); /* The operations on the CKCH architecture are locked so we can * manipulate ckch_store and ckch_inst */ @@ -2667,7 +2667,7 @@ static int cli_parse_set_cafile(char **args, char *payload, struct appctx *appct add_cmd = 1; if (!*args[3] || !payload) - return cli_err(appctx, "'set ssl ca-file expects a filename and CAs as a payload\n"); + return cli_err(appctx, "'set ssl ca-file' expects a filename and CAs as a payload\n"); /* The operations on the CKCH architecture are locked so we can * manipulate ckch_store and ckch_inst */ @@ -2776,7 +2776,7 @@ static int cli_parse_commit_cafile(char **args, char *payload, struct appctx *ap return 1; if (!*args[3]) - return cli_err(appctx, "'commit ssl ca-file expects a filename\n"); + return cli_err(appctx, "'commit ssl ca-file' expects a filename\n"); /* The operations on the CKCH architecture are locked so we can * manipulate ckch_store and ckch_inst */ @@ -3368,7 +3368,7 @@ static int cli_parse_set_crlfile(char **args, char *payload, struct appctx *appc return 1; if (!*args[3] || !payload) - return cli_err(appctx, "'set ssl crl-file expects a filename and CRLs as a payload\n"); + return cli_err(appctx, "'set ssl crl-file' expects a filename and CRLs as a payload\n"); /* The operations on the CKCH architecture are locked so we can * manipulate ckch_store and ckch_inst */ @@ -3471,7 +3471,7 @@ static int cli_parse_commit_crlfile(char **args, char *payload, struct appctx *a return 1; if (!*args[3]) - return cli_err(appctx, "'commit ssl ca-file expects a filename\n"); + return cli_err(appctx, "'commit ssl ca-file' expects a filename\n"); /* The operations on the CKCH architecture are locked so we can * manipulate ckch_store and ckch_inst */