diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2001-11-22 13:13:37 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2001-11-22 13:13:37 +0000 |
commit | 95a97a3c23443cf426bf02c4d8d51ac5028348a0 (patch) | |
tree | 4b29ccdff713948f4fda2d8b2ffa774ddbe0a0f9 /security | |
parent | Update port to version 0.56.1. (diff) |
Make pgp5 interpret the escape character as part of a plain text message
(ie: an iso-2022-jp encoded Japanese email)
PR: 14225
Submitted by: knu
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=50370
Diffstat (limited to 'security')
-rw-r--r-- | security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c b/security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c new file mode 100644 index 000000000000..7c6bd2aa2208 --- /dev/null +++ b/security/pgp5/files/patch-lib::pgp::utils::pgpFileType.c @@ -0,0 +1,23 @@ +$FreeBSD$ + +--- lib/pgp/utils/pgpFileType.c~ Sun Sep 26 15:23:48 1999 ++++ lib/pgp/utils/pgpFileType.c Sun Sep 26 15:28:22 1999 +@@ -171,7 +171,7 @@ + * 24 CN cancel (can) ILLEGAL + * 25 EM end of medium (em) ILLEGAL + * 26 SB substitute (sub) legal (CP/M & MS-DOS EOF) +- * 27 EC escape (esc) ILLEGAL ++ * 27 EC escape (esc) legal + * 28 FS file separator (is4) ILLEGAL + * 29 GS group separator (is3) ILLEGAL + * 30 RS record separator (is2) ILLEGAL +@@ -199,7 +199,7 @@ + + do { + c = *buf++; +- if (c < ' ' && (c < '\a' || c > '\r') && c != 26) ++ if (c < ' ' && (c < '\a' || c > '\r') && c != 26 && c != 27) + return 1; /* Illegal control char */ + if ((c & 0x80) && highlimit-- == 0) + return 1; /* Too many 8th bits set */ + |