From 95d77c9b98bd34ff1f6e4914c4b88b02e8ab992b Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 7 Jun 2021 10:36:34 +0200 Subject: [PATCH] help and version commands return code 0 (success) --- osslsigncode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osslsigncode.c b/osslsigncode.c index c1a7557..c33a010 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -6015,7 +6015,9 @@ err_cleanup: free_options(&options); if (ret) ERR_print_errors_fp(stdout); - if (cmd != CMD_HELP) + if (cmd == CMD_HELP) + ret = 0; /* OK */ + else printf(ret ? "Failed\n" : "Succeeded\n"); return ret; }