Check for default config file in 2 locations /etc/ and {install_prefix}/etc.

This commit is contained in:
Adam Hamsik 2012-01-28 16:56:47 +01:00
parent 2250ef66a8
commit adb13c7e79

View File

@ -128,8 +128,9 @@ int main(int argc, char *argv[]) {
if(check_path(path))
goto have;
/* Check for default config file in two locations {install_prefix}/etc /etc */
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
snprintf(pbuf, sizeof(pbuf), "%s/%s", INSTALL_PREFIX, PROXYCHAINS_CONF_FILE);
snprintf(pbuf, sizeof(pbuf), "%s/proxychains.conf", INSTALL_PREFIX);
path = pbuf;
if(check_path(path))
goto have;