pgp50i on Solaris/sparc

pgpk -ll とかで落ちるからパッチ。
参考: http://mri.is.utsunomiya-u.ac.jp/html/99people/seki/solaris/pgp50i_inst.html

diff -uar pgp50i/src/lib/pgp/include/pgpUsuals.h pgp50i.solaris/src/lib/pgp/include/pgpUsuals.h
--- pgp50i/src/lib/pgp/include/pgpUsuals.h	Sun Aug 10 06:44:58 1997
+++ pgp50i.solaris/src/lib/pgp/include/pgpUsuals.h	Sun Mar 23 01:47:34 2003
@@ -50,9 +50,9 @@
 */
 #if ULONG_MAX > 0xfffffffful
 #if ULONG_MAX == 0xfffffffffffffffful
-typedef ulong bnword64;
+typedef ulong nword64;
 #define BNWORD64 bnword64
-#define HAVE64 1
+#define HAVE64 0
 #endif
 #endif
 
@@ -66,7 +66,7 @@
 * IRIX uses ULONGLONG_MAX. Are there any other names for this?
 */
 
-#ifndef HAVE64
+#if HAVE64
 #if defined(ULONG_LONG_MAX) || defined (ULLONG_MAX) || defined(ULONGLONG_MAX)
 typedef unsigned long long word64;
 typedef long long int64;
diff -uar pgp50i/src/lib/pgp/keydb/pgpPrefUnix.c pgp50i.solaris/src/lib/pgp/keydb/pgpPrefUnix.c
--- pgp50i/src/lib/pgp/keydb/pgpPrefUnix.c	Mon Aug 11 09:05:32 1997
+++ pgp50i.solaris/src/lib/pgp/keydb/pgpPrefUnix.c	Sun Mar 23 00:14:55 2003
@@ -183,7 +183,7 @@
 				*/
 				if((inf = fopen(fn, "r"))) {
 					name_exists = TRUE;
-					fclose(inf):
+					fclose(inf);
 				}
 				/*If we haven't hit anything, either this thing doesn't
 				 *exist, or it exists and isn't a directory and we don't
diff -uar pgp50i/src/lib/pgp/utils/pgpFileType.c pgp50i.solaris/src/lib/pgp/utils/pgpFileType.c
--- pgp50i/src/lib/pgp/utils/pgpFileType.c	Sun Aug 10 06:44:33 1997
+++ pgp50i.solaris/src/lib/pgp/utils/pgpFileType.c	Sun Mar 23 00:13:59 2003
@@ -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 */

Generated with mkdiary.rb
yuuji@example.org
Fingerprint16 = FF F9 FF CC E0 FE 5C F7 19 97 28 24 EC 5D 39 BA
HIROSE Yuuji - ASTROLOGY / BIKE / EPO / GUEST BOOK / YaTeX [Tweet]