aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-10-30 07:13:55 +0000
committerWerner Koch <[email protected]>2024-10-30 07:13:55 +0000
commit48aa9e82657902ceb7ef081c6c55adbea5dd0217 (patch)
tree57877e90db11f3bf500272dcd50d37460a732ba8 /g10
parentspeedo: Enable additional runtime protections on Windows. (diff)
downloadgnupg-48aa9e82657902ceb7ef081c6c55adbea5dd0217.tar.gz
gnupg-48aa9e82657902ceb7ef081c6c55adbea5dd0217.zip
gpg: Do not fail with an error for a "Note:" diagnostic
* g10/trustdb.c (validate_keys): Use log_info instead of log_error for not found or expired UTKs. -- Actually the not-found case used log_error for decades. The semantically simialr expired case did thus the same. The actual problem is for example in the import case where gpg exits with a failure despite that a key validation was requested. GnuPG-bug-id: 7351
Diffstat (limited to 'g10')
-rw-r--r--g10/trustdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 9f159a5f6..7dc1c8f38 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -2240,14 +2240,14 @@ validate_keys (ctrl_t ctrl, int interactive)
keyblock = get_pubkeyblock (ctrl, k->kid);
if (!keyblock)
{
- log_error (_("Note: ultimately trusted key %s not found\n"),
+ log_info (_("Note: ultimately trusted key %s not found\n"),
keystr(k->kid));
continue;
}
pk = keyblock->pkt->pkt.public_key;
if (pk->has_expired)
{
- log_error (_("Note: ultimately trusted key %s expired\n"),
+ log_info (_("Note: ultimately trusted key %s expired\n"),
keystr(k->kid));
continue;
}