pass install prefix to proxychains app, to find /etc

This commit is contained in:
rofl0r
2012-01-27 19:28:00 +01:00
parent 3bb03892fa
commit 2acdcd9707
2 changed files with 8 additions and 2 deletions

View File

@ -121,7 +121,13 @@ int main(int argc, char *argv[]) {
if(check_path(path))
goto have;
// priority 4: /etc/proxychains.conf
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
snprintf(pbuf, sizeof(pbuf), "%s/%s", INSTALL_PREFIX, PROXYCHAINS_CONF_FILE);
path = pbuf;
if(check_path(path))
goto have;
// priority 5: /etc/proxychains.conf
path = "/etc/proxychains.conf";
if(check_path(path))
goto have;