diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2005-08-30 09:55:47 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2005-08-30 09:55:47 +0000 |
commit | dcdf581fef55e331f7ab802888cce325e2cb099a (patch) | |
tree | 733a998cca97a2472d33e6a7d6f374b80c1862f2 /mail/mutt-devel/files/patch-pgp.c | |
parent | upgrade to 2.1 (diff) |
Fix distinfo for vvv.quote patch
Fix handling of pgp messages (from mutt's cvs)
PR: ports/85465
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=141413
Diffstat (limited to 'mail/mutt-devel/files/patch-pgp.c')
-rw-r--r-- | mail/mutt-devel/files/patch-pgp.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mail/mutt-devel/files/patch-pgp.c b/mail/mutt-devel/files/patch-pgp.c new file mode 100644 index 000000000000..ae926fbc2b1d --- /dev/null +++ b/mail/mutt-devel/files/patch-pgp.c @@ -0,0 +1,27 @@ +--- pgp.c.orig Thu Aug 11 23:22:41 2005 ++++ pgp.c Thu Aug 25 08:01:22 2005 +@@ -381,16 +381,21 @@ + } + + /* treat empty result as sign of failure */ +- rewind (pgpout); +- if ((c = fgetc (pgpout)) == EOF) ++ if (pgpout) ++ { ++ rewind (pgpout); ++ c = fgetc (pgpout); ++ ungetc (c, pgpout); ++ } ++ if (!clearsign && (!pgpout || c == EOF)) + { + mutt_error _("Could not decrypt PGP message"); ++ mutt_sleep (1); + pgp_void_passphrase (); + rc = -1; + + goto out; + } +- ungetc (c, pgpout); + } + + /* |