0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 13:03:31 +00:00
termux-packages/packages/libknot/fix-hardcoded-paths.patch
Tee KOBAYASHI 8a3390dff6 new package: libknot
* new subpackage: knot-utils
2023-01-05 21:27:02 +00:00

12 lines
315 B
Diff

--- a/src/utils/common/resolv.c
+++ b/src/utils/common/resolv.c
@@ -24,7 +24,7 @@
#include "libknot/libknot.h"
#include "contrib/ucw/lists.h"
-#define RESOLV_FILE "/etc/resolv.conf"
+#define RESOLV_FILE "@TERMUX_PREFIX@/etc/resolv.conf"
srv_info_t* parse_nameserver(const char *str, const char *def_port)
{