chiark / gitweb /
dnsutils: fix path to 'resolv.conf' in liblwres (#1616)
[termux-packages] / packages / dnsutils / lwres-fix-hardcoded-paths.patch
1 diff -uNr bind-9.11.1-P3/lib/lwres/include/lwres/lwres.h bind-9.11.1-P3.mod/lib/lwres/include/lwres/lwres.h
2 --- bind-9.11.1-P3/lib/lwres/include/lwres/lwres.h      2017-07-07 18:01:52.000000000 +0300
3 +++ bind-9.11.1-P3.mod/lib/lwres/include/lwres/lwres.h  2017-10-04 16:48:56.466109542 +0300
4 @@ -74,7 +74,7 @@
5  #define LWRES_UDP_PORT         921     /*%< UDP Port Number */
6  #define LWRES_RECVLENGTH       16384 /*%< Maximum Packet Length */
7  #define LWRES_ADDR_MAXLEN      16      /*%< changing this breaks ABI */
8 -#define LWRES_RESOLV_CONF      "/etc/resolv.conf" /*%< Location of resolv.conf */
9 +#define LWRES_RESOLV_CONF      "@TERMUX_PREFIX@/etc/resolv.conf" /*%< Location of resolv.conf */
10  
11  /*% DNSSEC is not required (input).  Only relevant to rrset queries. */
12  #define LWRES_FLAG_TRUSTNOTREQUIRED    0x00000001U