diff options
author | Werner Koch <[email protected]> | 1999-02-25 17:51:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-02-25 17:51:55 +0000 |
commit | 946916a53d4643c7855fc446ac24193248aa3831 (patch) | |
tree | 156d411cc486f3ec244ea8f9c1dae741d4927f02 /g10/trustdb.c | |
parent | *** empty log message *** (diff) | |
download | gnupg-946916a53d4643c7855fc446ac24193248aa3831.tar.gz gnupg-946916a53d4643c7855fc446ac24193248aa3831.zip |
See ChangeLog: Thu Feb 25 18:47:39 CET 1999 Werner Koch
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 ) |