From 29c729a8d599061fac8812461e56d7622db63946 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sun, 17 Nov 2024 14:30:08 +0000 Subject: [PATCH] Unix Pageant: fix usage message about --encrypted. If you specified --encrypted or one of its synonyms while not adding keys, Pageant would start going on about the unrelated -E option for some reason. --- unix/pageant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/pageant.c b/unix/pageant.c index 36ae2d22..bd6d6d7f 100644 --- a/unix/pageant.c +++ b/unix/pageant.c @@ -1365,8 +1365,8 @@ int main(int argc, char **argv) else if (curr_keyact == KEYACT_CLIENT_ADD) curr_keyact = KEYACT_CLIENT_ADD_ENCRYPTED; else { - fprintf(stderr, "pageant: unexpected -E while not adding " - "keys\n"); + fprintf(stderr, "pageant: unexpected %s while not adding " + "keys\n", p); exit(1); } } else if (!strcmp(p, "--debug")) {