diff options
author | Werner Koch <[email protected]> | 2024-10-30 07:13:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-11-08 07:46:47 +0000 |
commit | aa1d4804aeede45cca8e82b05c537d0c7f3583b9 (patch) | |
tree | 1294f8c189eba4ef70b6d00a112913ba774d0b87 | |
parent | gpgsm: Possible improvement for some rare P12 files. (diff) | |
download | gnupg-aa1d4804aeede45cca8e82b05c537d0c7f3583b9.tar.gz gnupg-aa1d4804aeede45cca8e82b05c537d0c7f3583b9.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
-rw-r--r-- | g10/trustdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index 92fed965d..ac331f42d 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; } |