mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
* import.c (import_one): Make sure that a newly imported key starts with a
clean ownertrust.
This commit is contained in:
parent
e85fd72317
commit
05691b1dce
@ -1,3 +1,8 @@
|
|||||||
|
2002-10-01 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* import.c (import_one): Make sure that a newly imported key
|
||||||
|
starts with a clean ownertrust.
|
||||||
|
|
||||||
2002-10-01 Werner Koch <wk@gnupg.org>
|
2002-10-01 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* getkey.c (get_pubkey_direct): New.
|
* getkey.c (get_pubkey_direct): New.
|
||||||
|
10
g10/import.c
10
g10/import.c
@ -665,7 +665,15 @@ import_one( const char *fname, KBNODE keyblock,
|
|||||||
log_error (_("error writing keyring `%s': %s\n"),
|
log_error (_("error writing keyring `%s': %s\n"),
|
||||||
keydb_get_resource_name (hd), g10_errstr(rc));
|
keydb_get_resource_name (hd), g10_errstr(rc));
|
||||||
else
|
else
|
||||||
revalidation_mark ();
|
{
|
||||||
|
/* This should not be possible since we delete the
|
||||||
|
ownertrust when a key is deleted, but it can happen if
|
||||||
|
the keyring and trustdb are out of sync. It can also
|
||||||
|
be made to happen with the trusted-key command. */
|
||||||
|
|
||||||
|
clear_ownertrust (pk);
|
||||||
|
revalidation_mark ();
|
||||||
|
}
|
||||||
keydb_release (hd);
|
keydb_release (hd);
|
||||||
|
|
||||||
/* we are ready */
|
/* we are ready */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user