aboutsummaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/openfile.c')
-rw-r--r--g10/openfile.c7
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" );