From c50f244b200713f3922472da8275bcf5d128f055 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 12 Mar 2010 18:46:33 +0000 Subject: [PATCH] Fix for bug#1201. --- g10/ChangeLog | 3 +++ g10/plaintext.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index a6a2f6d43..3f824b122 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,8 @@ 2010-03-12 Werner Koch + * plaintext.c (setup_plaintext_name): Do not encode pipe like + filenames. This helps with bug#1201. + * seckey-cert.c (do_check): Return GPG_ERR_CANCELED. * keyedit.c (change_passphrase): Add arg R_ERR. (keyedit_passwd): Return the correct error or emit a success diff --git a/g10/plaintext.c b/g10/plaintext.c index 027fe994c..34e18f65f 100644 --- a/g10/plaintext.c +++ b/g10/plaintext.c @@ -623,7 +623,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;