summaryrefslogtreecommitdiffstats
path: root/agent/trustlist.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2024-10-31 03:47:55 +0100
committerWerner Koch <wk@gnupg.org>2024-10-31 09:33:40 +0100
commita7c81efe51872122df20a970012af67b0c7dc466 (patch)
treead523feb61584f2afd86cc2c26b6cdcb07259f8d /agent/trustlist.c
parentgpg: Do not fail with an error for a "Note:" diagnostic (diff)
downloadgnupg2-a7c81efe51872122df20a970012af67b0c7dc466.tar.xz
gnupg2-a7c81efe51872122df20a970012af67b0c7dc466.zip
agent: Fix status output for LISTTRUSTED.
* agent/trustlist.c (istrusted_internal): When LISTMODE is enabled, TRUSTLISTFPR status output should be done. -- GnuPG-bug-id: 7363 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org> Fixes-commit: 4275d5fa7a51731544d243ba16628a9958ffe3ce
Diffstat (limited to '')
-rw-r--r--agent/trustlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/trustlist.c b/agent/trustlist.c
index 5fa5e255b..9831d04ef 100644
--- a/agent/trustlist.c
+++ b/agent/trustlist.c
@@ -484,8 +484,8 @@ istrusted_internal (ctrl_t ctrl, const char *fpr, int listmode, int *r_disabled,
in a locked state. */
if (already_locked)
;
- else if (ti->flags.relax || ti->flags.cm || ti->flags.qual
- || ti->flags.de_vs)
+ else if (listmode || ti->flags.relax || ti->flags.cm
+ || ti->flags.qual || ti->flags.de_vs)
{
unlock_trusttable ();
locked = 0;