[PATCH] init trustdb before trying to clear it
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Jan 21 04:15:21 CET 2014
This avoids failure when importing with --always-trust on gpg 1.4.16,
as reported in http://bugs.debian.org/735363
---
g10/trustdb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 0bf92e4..828b90f 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -927,6 +927,8 @@ clear_ownertrusts (PKT_public_key *pk)
TRUSTREC rec;
int rc;
+ init_trustdb();
+
if (trustdb_args.no_trustdb && opt.trust_model == TM_ALWAYS)
return 0;
--
1.8.5.2
More information about the Gnupg-devel
mailing list