diff options
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r-- | g10/plaintext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c index ee0d41357..0a7415c9e 100644 --- a/g10/plaintext.c +++ b/g10/plaintext.c @@ -689,7 +689,8 @@ setup_plaintext_name (const char *filename, IOBUF iobuf) { PKT_plaintext *pt; - if (filename || opt.set_filename) + if ((filename && !iobuf_is_pipe_filename (filename)) + || (opt.set_filename && !iobuf_is_pipe_filename (opt.set_filename))) { char *s; |