aboutsummaryrefslogtreecommitdiffstats
path: root/g10/ringedit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-02-25 17:51:55 +0000
committerWerner Koch <[email protected]>1999-02-25 17:51:55 +0000
commit946916a53d4643c7855fc446ac24193248aa3831 (patch)
tree156d411cc486f3ec244ea8f9c1dae741d4927f02 /g10/ringedit.c
parent*** empty log message *** (diff)
downloadgnupg-946916a53d4643c7855fc446ac24193248aa3831.tar.gz
gnupg-946916a53d4643c7855fc446ac24193248aa3831.zip
See ChangeLog: Thu Feb 25 18:47:39 CET 1999 Werner Koch
Diffstat (limited to 'g10/ringedit.c')
-rw-r--r--g10/ringedit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/ringedit.c b/g10/ringedit.c
index d5ac6ac77..bc7d40e05 100644
--- a/g10/ringedit.c
+++ b/g10/ringedit.c
@@ -1297,6 +1297,9 @@ keyring_copy( KBPOS *kbpos, int mode, KBNODE root )
if( kbpos->fp )
BUG(); /* not allowed with such a handle */
+ if( opt.dry_run )
+ return 0;
+
lock_rentry( rentry );
/* open the source file */
@@ -1535,6 +1538,9 @@ do_gdbm_store( KBPOS *kbpos, KBNODE root, int update )
if( !(rentry = check_pos( kbpos )) )
return G10ERR_GENERAL;
+ if( opt.dry_run )
+ return 0;
+
/* construct the fingerprint which is used as the primary key */
node = find_kbnode( root, PKT_PUBLIC_KEY );
if( !node )