summarylogtreecommitdiffstats
path: root/jwhois.patch
diff options
context:
space:
mode:
authorPhillip Smith2016-06-15 10:18:31 +1000
committerPhillip Smith2016-06-15 10:18:31 +1000
commit60c72f62ea07c2af153743cc964ac0e33d3b2295 (patch)
treed3623bcd1db835ef48f1aebbae62b205f25f8986 /jwhois.patch
parent845fd9488e87c02dfa444a71e9c6cf11faef2e80 (diff)
downloadaur-60c72f62ea07c2af153743cc964ac0e33d3b2295.tar.gz
upgpkg: jwhois 4.0-2 (fix finding service in /etc/services)
Thanks to @yhager: The sources are looking for a 'whois' entry in /etc/services, which does not exist on my system. I had to patch it to look for internic instead.
Diffstat (limited to 'jwhois.patch')
-rw-r--r--jwhois.patch15
1 files changed, 11 insertions, 4 deletions
diff --git a/jwhois.patch b/jwhois.patch
index b1e3bfe1bd5e..34acd63940a3 100644
--- a/jwhois.patch
+++ b/jwhois.patch
@@ -1,9 +1,16 @@
---- src/dns.c~ 2007-06-26 12:58:38.000000000 +0600
-+++ src/dns.c 2009-10-13 17:28:46.233709651 +0600
-@@ -119,6 +119,7 @@
+--- src/dns.c~ 2007-06-25 23:58:38.000000000 -0700
++++ src/dns.c 2016-06-04 16:20:19.644865127 -0700
+@@ -113,12 +113,13 @@
+ lookup_host_addrinfo(struct addrinfo **res, const char *host, int port)
+ {
+ struct addrinfo hints;
+- char ascport[10] = "whois";
++ char ascport[10] = "nicname";
+ int error;
+
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
-
+
+ hints.ai_flags = AI_ADDRCONFIG;
hints.ai_socktype = SOCK_STREAM;
if (port)