summaryrefslogtreecommitdiff
path: root/net/upclient/patches/patch-aa
blob: bfaf540bb80c869c6b223d226108beda5891af18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-aa,v 1.7 2002/05/07 22:25:03 hubertf 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);
+        }
       }
     }
   }