summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjl <mjl>1999-04-12 22:19:03 +0000
committermjl <mjl>1999-04-12 22:19:03 +0000
commit49a2aa02241cdec09687ed71016ad50f3febb632 (patch)
tree15711e941b2ba54596aa29e179d022594d0d2f7e
parent40fda8eb3ed72f6ff0c46b1709dff8331ee1f919 (diff)
downloadpkgsrc-49a2aa02241cdec09687ed71016ad50f3febb632.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').
-rw-r--r--security/pgp5/patches/patch-ah13
-rw-r--r--security/pgp5/patches/patch-ai12
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;
+