1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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
This commit is contained in:
Werner Koch 2024-10-30 08:13:55 +01:00
parent 39aa206dc5
commit 48aa9e8265
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -2240,14 +2240,14 @@ validate_keys (ctrl_t ctrl, int interactive)
keyblock = get_pubkeyblock (ctrl, k->kid); keyblock = get_pubkeyblock (ctrl, k->kid);
if (!keyblock) 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)); keystr(k->kid));
continue; continue;
} }
pk = keyblock->pkt->pkt.public_key; pk = keyblock->pkt->pkt.public_key;
if (pk->has_expired) 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)); keystr(k->kid));
continue; continue;
} }