diff options
author | Werner Koch <wk@gnupg.org> | 1999-02-25 18:51:55 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-02-25 18:51:55 +0100 |
commit | 946916a53d4643c7855fc446ac24193248aa3831 (patch) | |
tree | 156d411cc486f3ec244ea8f9c1dae741d4927f02 /g10/openfile.c | |
parent | *** empty log message *** (diff) | |
download | gnupg2-946916a53d4643c7855fc446ac24193248aa3831.tar.xz gnupg2-946916a53d4643c7855fc446ac24193248aa3831.zip |
See ChangeLog: Thu Feb 25 18:47:39 CET 1999 Werner Koch
Diffstat (limited to 'g10/openfile.c')
-rw-r--r-- | g10/openfile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/openfile.c b/g10/openfile.c index 8e5a51afe..afe531465 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -93,7 +93,9 @@ open_outfile( const char *iname, int mode, IOBUF *a ) char *buf=NULL; const char *name; - if( opt.outfile ) + if( opt.dry_run ) + name = "/dev/null"; + else if( opt.outfile ) name = opt.outfile; else { #ifdef USE_ONLY_8DOT3 @@ -162,6 +164,9 @@ copy_options_file( const char *destdir ) int linefeeds=0; int c; + if( opt.dry_run ) + return; + fname = m_alloc( strlen(datadir) + strlen(destdir) + 15 ); strcpy(stpcpy(fname, datadir), "/options" SKELEXT ); src = fopen( fname, "r" ); |