blob: e6d787eb57af0fe974c8b1a871800f7e4ecc8339 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- code/bcpp.cpp.orig Sat May 18 13:53:27 2002
+++ code/bcpp.cpp Fri Jun 7 14:39:33 2002
@@ -2755,6 +2757,7 @@
char* pSPath = getenv ("PATH");
char* pEPath = NULL;
char* pNameMem = NULL;
+ char* tmpCfgName = new char[strlen("%%PREFIX%%/etc") + strlen(pCfgName)+1];
char sepChar = NULLC;
const char* pathSepChar;
char backUp;
@@ -2763,6 +2766,13 @@
// test to see if file is in current directory first !
if ((pCfgFile = fopen(pCfgName, "r")) != NULL)
return;
+
+ // look to see if it's in %%PREFIX%%/etc
+ tmpCfgName = strcat( tmpCfgName, "%%PREFIX%%/etc/" );
+ tmpCfgName = strcat( tmpCfgName, pCfgName );
+ if ((pCfgFile = fopen(tmpCfgName, "r")) != NULL)
+ return;
+
// environment variable not found, lord knows what it is !
if (pSPath == NULL)
|