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:
parent
39aa206dc5
commit
48aa9e8265
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user