dnsutils: update lib-irs-context.c.patch

This commit is contained in:
Leonid Pliushch 2020-03-19 22:01:56 +02:00
parent 732078b8be
commit fa7403eb13
1 changed files with 12 additions and 6 deletions

View File

@ -1,12 +1,18 @@
diff -uNr bind-9.13.6/lib/irs/context.c bind-9.13.6.mod/lib/irs/context.c
--- bind-9.13.6/lib/irs/context.c 2019-02-07 01:44:09.000000000 +0200
+++ bind-9.13.6.mod/lib/irs/context.c 2019-03-02 02:39:12.188552664 +0200
@@ -42,7 +42,7 @@
diff -uNr bind-9.16.1/lib/irs/context.c bind-9.16.1.mod/lib/irs/context.c
--- bind-9.16.1/lib/irs/context.c 2020-03-11 18:46:53.000000000 +0200
+++ bind-9.16.1.mod/lib/irs/context.c 2020-03-19 22:01:16.984465631 +0200
@@ -34,12 +34,12 @@
#ifndef RESOLV_CONF
/*% location of resolve.conf */
-#define RESOLV_CONF "/etc/resolv.conf"
+#define RESOLV_CONF "@TERMUX_PREFIX@/etc/resolv.conf"
#endif /* ifndef RESOLV_CONF */
#ifndef DNS_CONF
/*% location of dns.conf */
-#define DNS_CONF "/etc/dns.conf"
+#define DNS_CONF "@TERMUX_PREFIX@/etc/dns.conf"
#endif
#endif /* ifndef DNS_CONF */
static bool thread_key_initialized = false;
ISC_THREAD_LOCAL irs_context_t *irs_context = NULL;