aboutsummaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-07-08 14:24:35 +0000
committerWerner Koch <[email protected]>1999-07-08 14:24:35 +0000
commitc5ca275573f147c83d06a64ba60053d4e646c6c0 (patch)
tree2c6b253b672a049803afab557417f7c96ff2a737 /g10/trustdb.c
parentSee ChangeLog: Wed Jul 7 13:23:40 CEST 1999 Werner Koch (diff)
downloadgnupg-c5ca275573f147c83d06a64ba60053d4e646c6c0.tar.gz
gnupg-c5ca275573f147c83d06a64ba60053d4e646c6c0.zip
See ChangeLog: Thu Jul 8 16:21:27 CEST 1999 Werner Koch
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r--g10/trustdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 497fa9e65..3f5b4fc64 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -477,6 +477,8 @@ verify_own_keys(void)
/* make sure that the pubkey is in the trustdb */
rc = query_trust_record( pk );
+ if( rc == -1 && opt.dry_run )
+ goto skip;
if( rc == -1 ) { /* put it into the trustdb */
rc = insert_trust_record_by_pk( pk );
if( rc ) {
@@ -2217,6 +2219,8 @@ check_trust( PKT_public_key *pk, unsigned *r_trustlevel,
g10_errstr(rc));
return rc;
}
+ else if( rc == -1 && opt.dry_run )
+ return G10ERR_GENERAL;
else if( rc == -1 ) { /* not found - insert */
rc = insert_trust_record_by_pk( pk );
if( rc ) {