blob: f662105be72373895cc64f993a27d4bb376196a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-aa,v 1.5 2001/06/28 10:32:46 wiz Exp $
--- src/options.c Sat Jun 16 14:15:04 2001
+++ src/options.c Tue Jun 19 10:48:25 2001
@@ -298,8 +298,11 @@
if(!(fp = fopen("/etc/"CONFIGFILE, "r"))) {
/* Failed, now try to open config file in /usr/local/etc */
if(!(fp = fopen("/usr/local/etc/"CONFIGFILE, "r"))) {
- printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n", CONFIGFILE);
- exit(-1);
+ /* Failed, now try to open config file in /usr/pkg/etc */
+ if (!(fp = fopen("/usr/pkg/etc/"CONFIGFILE, "r"))) {
+ printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n- /usr/pkg/etc\n", CONFIGFILE);
+ exit(-1);
+ }
}
}
}
|