biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / proxychains-ng / swap-priority-4-and-5-in-get_config_path.patch
blob05d5546e674e78958a0545054987ca1a56e7892c
1 diff --git a/src/common.c b/src/common.c
2 index 1da1c45..fb68ada 100644
3 --- a/src/common.c
4 +++ b/src/common.c
5 @@ -113,13 +113,13 @@ char *get_config_path(char* default_path, char* pbuf, size_t bufsize) {
6 if(check_path(path))
7 goto have;
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 goto have;
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 goto have;
23 --
24 2.37.2