summaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-09-29 18:15:15 +0200
committerWerner Koch <wk@gnupg.org>1998-09-29 18:15:15 +0200
commit9a854f1010d6311576b823b6638997f9778b4327 (patch)
treea2f20737cfaa86e6faaeebfef81892e7c56bfa63 /g10/plaintext.c
parent*** empty log message *** (diff)
downloadgnupg2-9a854f1010d6311576b823b6638997f9778b4327.tar.xz
gnupg2-9a854f1010d6311576b823b6638997f9778b4327.zip
*** empty log message ***
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r--g10/plaintext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c
index 6d1c8796f..b1201b8b7 100644
--- a/g10/plaintext.c
+++ b/g10/plaintext.c
@@ -98,6 +98,10 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx,
fname = m_alloc( strlen( opt.outfile ) + 1);
strcpy(fname, opt.outfile );
}
+ else if( pt->namelen == 8 && !memcmp( pt->name, "_CONSOLE", 8 ) ) {
+ log_info(_("data not saved; use option \"--output\" to save it\n"));
+ nooutput = 1;
+ }
else {
fname = m_alloc( pt->namelen +1 );
memcpy( fname, pt->name, pt->namelen );