complete sysconfdir support

This commit is contained in:
rofl0r 2012-01-30 18:29:35 +01:00
parent 0ee539f31c
commit e99dd76941
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ ALL_TOOLS = $(PXCHAINS)
CFLAGS+=$(USER_CFLAGS) $(MAC_CFLAGS)
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DINSTALL_PREFIX=\"$(prefix)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\"
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\"
all: $(ALL_LIBS) $(ALL_TOOLS)

View File

@ -121,8 +121,8 @@ int main(int argc, char *argv[]) {
if(check_path(path))
goto have;
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
path = INSTALL_PREFIX "/etc/" PROXYCHAINS_CONF_FILE;
// priority 4: $SYSCONFDIR/proxychains.conf
path = SYSCONFDIR "/" PROXYCHAINS_CONF_FILE;
if(check_path(path))
goto have;