rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / proxychains / swap-priority-4-and-5-in-get_config_path.patch
blobdd2c3031184c0bd62cd3a3bb8847e9cf983fa8af
1 diff --git a/src/common.c b/src/common.c
2 index 1ca612a..7c21377 100644
3 --- a/src/common.c
4 +++ b/src/common.c
5 @@ -37,13 +37,13 @@ char *get_config_path(char* default_path, char* pbuf, size_t bufsize) {
6 if(check_path(path))
7 return path;
9 - // priority 4: $SYSCONFDIR/proxychains.conf
10 - path = SYSCONFDIR "/" PROXYCHAINS_CONF_FILE;
11 + // priority 4: /etc/proxychains.conf
12 + path = "/etc/" PROXYCHAINS_CONF_FILE;
13 if(check_path(path))
14 return path;
16 - // priority 5: /etc/proxychains.conf
17 - path = "/etc/" PROXYCHAINS_CONF_FILE;
18 + // priority 5: $SYSCONFDIR/proxychains.conf
19 + path = SYSCONFDIR "/" PROXYCHAINS_CONF_FILE;
20 if(check_path(path))
21 return path;
23 --
24 2.37.2