]> git.pld-linux.org Git - packages/whois.git/commitdiff
- updated auto/th/whois-4_7_32-1 auto/ti/whois-4_7_32-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 17 Mar 2009 12:16:43 +0000 (12:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    whois-idn.patch -> 1.2

whois-idn.patch

index c5134064d3329099f07259811da8bd38f14921d0..271c94d7de721d134e61058925a8bb5b67e32f4c 100644 (file)
@@ -1,16 +1,17 @@
---- whois-4.7.14/whois.c.orig  2006-07-21 14:27:55.524440000 +0200
-+++ whois-4.7.14/whois.c       2006-07-21 14:29:06.354440000 +0200
-@@ -695,7 +695,12 @@
+--- whois-4.7.32/whois.c~      2009-03-17 13:14:25.938965061 +0100
++++ whois-4.7.32/whois.c       2009-03-17 13:15:54.058956261 +0100
+@@ -786,8 +786,12 @@
      hints.ai_socktype = SOCK_STREAM;
-     hints.ai_flags = AI_IDN;
+     hints.ai_flags = AI_ADDRCONFIG | AI_IDN;
  
--    if ((err = getaddrinfo(server, port ? port : "nicname", &hints, &res)) != 0)
+-    if ((err = getaddrinfo(server, port ? port : "nicname", &hints, &res))
+-          != 0) {
 +    err = getaddrinfo(server, port ? port : "nicname", &hints, &res);
 +    if (err == EAI_BADFLAGS) {
-+      hints.ai_flags &= ~AI_IDN;
-+      err = getaddrinfo(server, port ? port : "nicname", &hints, &res);
++          hints.ai_flags &= ~AI_IDN;
++          err = getaddrinfo(server, port ? port : "nicname", &hints, &res);
 +    }
-+    if (err != 0)
-       err_quit("getaddrinfo(%s): %s", server, gai_strerror(err));
-     for (ai = res; ai; ai = ai->ai_next) {
-       if ((fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) < 0)
++    if (err != 0) {
+       if (err == EAI_SYSTEM)
+           err_sys("getaddrinfo(%s)", server);
+       else
This page took 0.082023 seconds and 4 git commands to generate.