Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160209 Details for
Bug 231605
bcpp does not read its own conf file in /etc/bcpp... here's a patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make bcpp try to read its conf file from /etc/bcpp/
bcpp-20050725-etc-cfg-files.patch (text/plain), 675 bytes, created by
Shawn Rutledge
on 2008-07-12 17:24:27 UTC
(
hide
)
Description:
make bcpp try to read its conf file from /etc/bcpp/
Filename:
MIME Type:
Creator:
Shawn Rutledge
Created:
2008-07-12 17:24:27 UTC
Size:
675 bytes
patch
obsolete
>*** 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231605
: 160209