summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjlam <jlam>2000-10-01 04:24:27 +0000
committerjlam <jlam>2000-10-01 04:24:27 +0000
commit55d89537eb408cdefadfc2cddc3c691d2749c219 (patch)
tree0e393fdeb0b044d6615a00bee8cc134d8d2ceabb /games
parent04ab8afd462ac30d37dc44f871fabd097b551914 (diff)
downloadpkgsrc-55d89537eb408cdefadfc2cddc3c691d2749c219.tar.gz
Open the opening book with read permissions, not read/write. This fixes
an error where GNU Chess would go out of book on the first move when it fails to open the book read/write, and concludes the book isn't there.
Diffstat (limited to 'games')
-rw-r--r--games/gnuchess/files/patch-sum3
-rw-r--r--games/gnuchess/patches/patch-ac13
2 files changed, 15 insertions, 1 deletions
diff --git a/games/gnuchess/files/patch-sum b/games/gnuchess/files/patch-sum
index 46f06a138ea..752fc141c6f 100644
--- a/games/gnuchess/files/patch-sum
+++ b/games/gnuchess/files/patch-sum
@@ -1,4 +1,5 @@
-$NetBSD: patch-sum,v 1.3 2000/03/26 08:29:25 jlam Exp $
+$NetBSD: patch-sum,v 1.4 2000/10/01 04:24:27 jlam Exp $
MD5 (patch-aa) = 9aede68ccd4a386b653381a8245a21d5
MD5 (patch-ab) = 4376f2b68d7733c469ac67e657e1343f
+MD5 (patch-ac) = 6eabe3d99fdec3d3259b18de9c944f18
diff --git a/games/gnuchess/patches/patch-ac b/games/gnuchess/patches/patch-ac
new file mode 100644
index 00000000000..46d28f30351
--- /dev/null
+++ b/games/gnuchess/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.4 2000/10/01 04:24:27 jlam Exp $
+
+--- book.c.orig Sat Oct 23 06:07:21 1999
++++ book.c
+@@ -85,7 +85,7 @@
+ mcnt = -1;
+ side = board.side;
+ xside = 1^side;
+- rfp = fopen(BOOKBIN,"r+b");
++ rfp = fopen(BOOKBIN,"rb"); /* don't need to open read/write */
+ if (rfp == NULL) {
+ if (!(flags & XBOARD))
+ fprintf(ofp," no book (%s).\n",BOOKBIN);