diff options
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r-- | g10/trustdb.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index fee87f933..c96de91f4 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -1506,8 +1506,10 @@ list_trust_path( const char *username ) int rc; ulong lid; TRUSTREC rec; + #if 0 TRUST_INFO *tmppath; TRUST_SEG_LIST trust_seg_list, tsl, tsl2; + #endif PKT_public_key *pk = m_alloc_clear( sizeof *pk ); INIT_TRUSTDB(); @@ -1688,6 +1690,9 @@ update_trustdb( ) KBPOS kbpos; int rc; + if( opt.dry_run ) + return; + INIT_TRUSTDB(); rc = enum_keyblocks( 0, &kbpos, &keyblock ); if( !rc ) { @@ -2121,6 +2126,9 @@ clear_trust_checked_flag( PKT_public_key *pk ) TRUSTREC rec; int rc; + if( opt.dry_run ) + return 0; + INIT_TRUSTDB(); rc = get_dir_record( pk, &rec ); if( rc ) @@ -3108,6 +3116,9 @@ update_trust_record( KBNODE keyblock, int recheck, int *modified ) RECNO_LIST recno_list = NULL; /* list of verified records */ /* fixme: replace recno_list by a lookup on node->recno */ + if( opt.dry_run ) + return 0; + INIT_TRUSTDB(); if( modified ) *modified = 0; @@ -3237,6 +3248,10 @@ insert_trust_record( PKT_public_key *pk ) int rc = 0; ulong hintlist = 0; + + if( opt.dry_run ) + return 0; + INIT_TRUSTDB(); if( pk->local_id ) |