summaryrefslogtreecommitdiff
path: root/games/glchess/patches/patch-ab
blob: afceab37f1665aa7d02d2162c8173fccf1535ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.1.1.1 2002/10/12 06:17:15 rh Exp $

--- src/config.c.orig	Sat Oct 12 15:19:12 2002
+++ src/config.c
@@ -101,6 +101,11 @@ int open_rc(Game * game, const char *fil
     {
       fprintf(stderr, "/etc/glchessrc not found, trying ./glchessrc\n");
       rc = fopen("./glchessrc", "r");
+      if (rc == NULL)
+      {
+        fprintf(stderr, "./glchessrc not found, trying @PKGETC@/glchessrc.default\n");
+        rc = fopen("@PKGETC@/glchessrc.default", "r");
+      }
     }
   }