| 80 | } |
| 81 | |
| 82 | std::string getCurrentConfigFileName(void) { |
| 83 | std::string configFile = BZ_CONFIG_FILE_NAME; |
| 84 | |
| 85 | std::string name = getConfigDirName(BZ_CONFIG_DIR_VERSION); |
| 86 | name += configFile; |
| 87 | |
| 88 | #if !defined(_WIN32) |
| 89 | // add in hostname on UNIX |
| 90 | if (getenv("HOST")) { |
| 91 | name += "."; |
| 92 | name += getenv("HOST"); |
| 93 | } |
| 94 | #endif |
| 95 | return name; |
| 96 | } |
| 97 | |
| 98 | // this function will look for the config, if it's not there, |
| 99 | // it will TRY and find an old one and copy it |
no test coverage detected