summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/jwhois/files')
-rw-r--r--net-misc/jwhois/files/jwhois-3.2.3-whois-de.patch18
-rw-r--r--net-misc/jwhois/files/jwhois-4.0-connect-logic.patch15
2 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/jwhois/files/jwhois-3.2.3-whois-de.patch b/net-misc/jwhois/files/jwhois-3.2.3-whois-de.patch
new file mode 100644
index 000000000000..9bd56b5b2eda
--- /dev/null
+++ b/net-misc/jwhois/files/jwhois-3.2.3-whois-de.patch
@@ -0,0 +1,18 @@
+fix from upstream cvs
+
+http://bugs.gentoo.org/159776
+
+--- jwhois-3.2.3/example/jwhois.conf
++++ jwhois-3.2.3/example/jwhois.conf
+@@ -180,7 +180,10 @@
+ "\\.cx$" = "whois.nic.cx";
+ "\\.cy$" = "whois.ripe.net";
+ "\\.cz$" = "whois.nic.cz";
+- "\\.de$" = "www.denic.de";
++ "\\.de$" {
++ whois-server = "whois.denic.de";
++ query-format = "-C UTF-8 -T dn,ace $*";
++ }
+ "\\.dk$" = "whois.dk-hostmaster.dk";
+ "\\.do$" = "whois.nic.do";
+ "\\.dz$" = "whois.ripe.net";
diff --git a/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch b/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch
new file mode 100644
index 000000000000..e0b10f6b50b9
--- /dev/null
+++ b/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/208875
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542148
+https://savannah.gnu.org/bugs/index.php?37135
+
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -288,7 +288,7 @@ make_connect(const char *host, int port)
+
+ retlen = sizeof(retval);
+ error = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &retval, &retlen);
+- if (error < 0 || retval)
++ if (error == 0 && !retval)
+ {
+ break;
+ }