summaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-03-15 12:15:45 +0100
committerWerner Koch <wk@gnupg.org>2010-03-15 12:15:45 +0100
commitfb2ba98963beea249474f5d6d7345cf9b4b7f570 (patch)
tree3c9b25d63f90a71caec5685fca945341d54bef9d /g10/plaintext.c
parentUse a custom log handler for libassuan. (diff)
downloadgnupg2-fb2ba98963beea249474f5d6d7345cf9b4b7f570.tar.xz
gnupg2-fb2ba98963beea249474f5d6d7345cf9b4b7f570.zip
Finished the bulk of changes to use estream in most places instead of
stdio.
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r--g10/plaintext.c3
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;