diff options
Diffstat (limited to 'dev-util/bcpp/files/bcpp-20050725-etc-cfg-files.patch')
-rw-r--r-- | dev-util/bcpp/files/bcpp-20050725-etc-cfg-files.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-util/bcpp/files/bcpp-20050725-etc-cfg-files.patch b/dev-util/bcpp/files/bcpp-20050725-etc-cfg-files.patch new file mode 100644 index 000000000000..e6ba66cd794c --- /dev/null +++ b/dev-util/bcpp/files/bcpp-20050725-etc-cfg-files.patch @@ -0,0 +1,22 @@ +*** bcpp-20050725/code/bcpp.cpp.orig 2008-07-12 10:07:55.000000000 -0700 +--- bcpp-20050725/code/bcpp.cpp 2008-07-12 10:07:57.000000000 -0700 +*************** +*** 3100,3110 **** +--- 3100,3116 ---- + const char* pathSepChar; + char backUp; + int count = 0; ++ char buf[40]; + + // test to see if file is in current directory first ! + if ((pCfgFile = fopen(pCfgName, "r")) != NULL) + return; + ++ // try /etc/bcpp ++ snprintf(buf, 40, "/etc/bcpp/%s", pCfgName); ++ if ((pCfgFile = fopen(buf, "r")) != NULL) ++ return; ++ + // environment variable not found, lord knows what it is ! + if (pSPath == NULL) + return; |