diff options
| author | Ali B <abittin@gmail.com> | 2020-12-07 10:57:29 +0100 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@box1> | 2020-12-07 10:57:29 +0100 |
| commit | 6a7bd233c5ae53ac52818794cad431850b509f3a (patch) | |
| tree | 387a3fd994c68254741fc1f3c577291977d1d833 /sethostent.cpp | |
| parent | 3334a5e0fc7b049e3e550da97014112f415a0736 (diff) | |
| parent | a56c2362d97fd198f32b6d8dd8ff6f10cec4b833 (diff) | |
Merge "Toggle-able adblock hosts file [1/3]" into r11.0r11.0
Diffstat (limited to 'sethostent.cpp')
| -rw-r--r-- | sethostent.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sethostent.cpp b/sethostent.cpp index de94fce9..1074fc04 100644 --- a/sethostent.cpp +++ b/sethostent.cpp @@ -43,6 +43,8 @@ #include "hostent.h" #include "resolv_private.h" +#include "gethostsfile.h" + constexpr int MAXALIASES = 35; constexpr int MAXADDRS = 35; @@ -51,7 +53,7 @@ constexpr int MAXADDRS = 35; static void sethostent_r(FILE** hf) { if (!*hf) - *hf = fopen(_PATH_HOSTS, "re"); + *hf = fopen(gethostsfile(), "re"); else rewind(*hf); } |
