diff options
author | Werner Koch <wk@gnupg.org> | 2010-03-15 12:15:45 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-03-15 12:15:45 +0100 |
commit | fb2ba98963beea249474f5d6d7345cf9b4b7f570 (patch) | |
tree | 3c9b25d63f90a71caec5685fca945341d54bef9d /g10/plaintext.c | |
parent | Use a custom log handler for libassuan. (diff) | |
download | gnupg2-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.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; |