From 0c34edc4435d8cce1eccee1e9e369c2744b49751 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 1 Jul 2024 09:21:49 +0200 Subject: [PATCH] gpg: Make --with-sig-check with -with --show-key in non-colon mode. * g10/keylist.c (list_keyblock_direct): Set check_sigs. --- g10/keylist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g10/keylist.c b/g10/keylist.c index 57d73bc4b..1fe39433b 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -2414,6 +2414,8 @@ list_keyblock_direct (ctrl_t ctrl, memset (&listctx, 0, sizeof (listctx)); listctx.no_validity = !!no_validity; + if (opt.check_sigs) + listctx.check_sigs = 1; err = list_keyblock (ctrl, keyblock, secret, has_secret, fpr, &listctx); keylist_context_release (&listctx); return err;