diff options
author | mjl <mjl@pkgsrc.org> | 1999-04-12 22:19:03 +0000 |
---|---|---|
committer | mjl <mjl@pkgsrc.org> | 1999-04-12 22:19:03 +0000 |
commit | ef9aa6b1a63c37477faf08fb4920b3cc8409b456 (patch) | |
tree | 15711e941b2ba54596aa29e179d022594d0d2f7e /security | |
parent | 0a71b585d3533610618e3872dc6104cc00261528 (diff) | |
download | pkgsrc-ef9aa6b1a63c37477faf08fb4920b3cc8409b456.tar.gz |
Correct "check for binary file" which used signed char erroneously,
as pointed out by Bjoern Labitzke <hermit@cs.tu-berlin.de> in PR/7359.
While I'm at it, also correct the behaviour when invoked as "pgp5"
(give usage, not unhelpful 'invoked with unknown symbolic link').
Diffstat (limited to 'security')
-rw-r--r-- | security/pgp5/patches/patch-ah | 13 | ||||
-rw-r--r-- | security/pgp5/patches/patch-ai | 12 |
2 files changed, 25 insertions, 0 deletions
diff --git a/security/pgp5/patches/patch-ah b/security/pgp5/patches/patch-ah new file mode 100644 index 00000000000..f76ef66a31f --- /dev/null +++ b/security/pgp5/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 1999/04/12 22:19:03 mjl Exp $ + +--- lib/pgp/utils/pgpFileType.c.orig Tue Apr 13 00:01:40 1999 ++++ lib/pgp/utils/pgpFileType.c Tue Apr 13 00:02:14 1999 +@@ -185,7 +185,7 @@ + pgpFileTypeBinary(char const *lang, byte const *buf, unsigned len) + { + unsigned highlimit; +- char c; ++ unsigned char c; + + if (!len) + return 1; /* empty file or error, not a text file */ diff --git a/security/pgp5/patches/patch-ai b/security/pgp5/patches/patch-ai new file mode 100644 index 00000000000..5f486816432 --- /dev/null +++ b/security/pgp5/patches/patch-ai @@ -0,0 +1,12 @@ +$NetBSD: patch-ai,v 1.1 1999/04/12 22:19:03 mjl Exp $ + +--- apps/pgp/pgp.c.orig Tue Apr 13 00:04:28 1999 ++++ apps/pgp/pgp.c Tue Apr 13 00:05:23 1999 +@@ -1095,6 +1095,7 @@ + break; + + case 'p': ++ case '5': + invoked_type = PGPraw; + break; + |