From 89e8bfddf4c73082ebc1bbc44c19322ff05904e8 Mon Sep 17 00:00:00 2001 From: Adam Hamsik Date: Sat, 28 Jan 2012 18:18:58 +0100 Subject: [PATCH] Add etc/ to path where we search for config file. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 2f859dd..ba65b7b 100644 --- a/src/main.c +++ b/src/main.c @@ -130,7 +130,7 @@ int main(int argc, char *argv[]) { /* Check for default config file in two locations {install_prefix}/etc /etc */ // priority 4: $INSTALL_PREFIX/etc/proxychains.conf - snprintf(pbuf, sizeof(pbuf), "%s/proxychains.conf", INSTALL_PREFIX); + snprintf(pbuf, sizeof(pbuf), "%s/etc/proxychains.conf", INSTALL_PREFIX); path = pbuf; if(check_path(path)) goto have; @@ -139,7 +139,7 @@ int main(int argc, char *argv[]) { path = "/etc/proxychains.conf"; if(check_path(path)) goto have; - perror("couldnt find configuration file"); + perror("Couldn't find configuration file"); return 1; }