1 diff -u -r ../gnupg-2.1.22/dirmngr/dns.c ./dirmngr/dns.c
2 --- ../gnupg-2.1.22/dirmngr/dns.c 2017-07-25 09:37:05.000000000 +0200
3 +++ ./dirmngr/dns.c 2017-07-29 20:54:37.445647974 +0200
5 if (!(resconf = dns_resconf_open(&error)))
8 - if ((error = dns_resconf_loadpath(resconf, "/etc/resolv.conf"))) {
9 + if ((error = dns_resconf_loadpath(resconf, "@TERMUX_PREFIX@/etc/resolv.conf"))) {
11 * NOTE: Both the glibc and BIND9 resolvers ignore a missing
12 * /etc/resolv.conf, defaulting to a nameserver of
17 - if ((error = dns_nssconf_loadpath(resconf, "/etc/nsswitch.conf"))) {
18 + if ((error = dns_nssconf_loadpath(resconf, "@TERMUX_PREFIX@/etc/nsswitch.conf"))) {
22 @@ -10407,7 +10407,7 @@
23 panic("dns_resconf_open: %s", dns_strerror(error));
25 if (!MAIN.resconf.count)
26 - MAIN.resconf.path[MAIN.resconf.count++] = "/etc/resolv.conf";
27 + MAIN.resconf.path[MAIN.resconf.count++] = "@TERMUX_PREFIX@/etc/resolv.conf";
29 for (i = 0; i < MAIN.resconf.count; i++) {
30 path = MAIN.resconf.path[i];
31 diff -u -r ../gnupg-2.1.22/dirmngr/dns-stuff.c ./dirmngr/dns-stuff.c
32 --- ../gnupg-2.1.22/dirmngr/dns-stuff.c 2017-05-25 20:24:30.000000000 +0200
33 +++ ./dirmngr/dns-stuff.c 2017-07-29 20:54:00.414067929 +0200
35 #define DEFAULT_TIMEOUT 30
38 -#define RESOLV_CONF_NAME "/etc/resolv.conf"
39 +#define RESOLV_CONF_NAME "@TERMUX_PREFIX@/etc/resolv.conf"
41 /* Two flags to enable verbose and debug mode. */
42 static int opt_verbose;