1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

Fix for bug#1201.

This commit is contained in:
Werner Koch 2010-03-12 18:46:33 +00:00
parent 3dfa2e6df5
commit c50f244b20
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2010-03-12 Werner Koch <wk@g10code.com> 2010-03-12 Werner Koch <wk@g10code.com>
* 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. * seckey-cert.c (do_check): Return GPG_ERR_CANCELED.
* keyedit.c (change_passphrase): Add arg R_ERR. * keyedit.c (change_passphrase): Add arg R_ERR.
(keyedit_passwd): Return the correct error or emit a success (keyedit_passwd): Return the correct error or emit a success

View File

@ -623,7 +623,8 @@ setup_plaintext_name(const char *filename,IOBUF iobuf)
{ {
PKT_plaintext *pt; 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; char *s;