setup-ubuntu.sh: ant is no longer used
[termux-packages] / packages / nmap / nmap_dns.cc.patch
CommitLineData
95fcb276
FF
1diff -u -r ../nmap-7.01/nmap_dns.cc ./nmap_dns.cc
2--- ../nmap-7.01/nmap_dns.cc 2015-10-07 13:49:24.000000000 -0400
3+++ ./nmap_dns.cc 2015-12-15 18:49:27.994641597 -0500
4@@ -959,9 +959,9 @@
5 char fmt[32];
6 char ipaddr[INET6_ADDRSTRLEN+1];
7
8- fp = fopen("/etc/resolv.conf", "r");
9+ fp = fopen("@TERMUX_PREFIX@/etc/resolv.conf", "r");
10 if (fp == NULL) {
11- if (firstrun) error("mass_dns: warning: Unable to open /etc/resolv.conf. Try using --system-dns or specify valid servers with --dns-servers");
12+ if (firstrun) error("mass_dns: warning: Unable to open $PREFIX/etc/resolv.conf. Try using --system-dns or specify valid servers with --dns-servers");
13 return;
14 }
15