Package Details: jwhois 4.0-2

Git Clone URL: https://aur.archlinux.org/jwhois.git (read-only)
Package Base: jwhois
Description: An Internet Whois client
Upstream URL: http://www.gnu.org/software/jwhois/
Licenses: GPL3
Submitter: None
Maintainer: fukawi2
Last Packager: fukawi2
Votes: 16
Popularity: 1.664727
First Submitted: 2005-06-28 12:11
Last Updated: 2016-06-15 00:19

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

mmanjos commented on 2016-06-17 22:35

Hi,

I'm experiencing a connection bug which seems to be described here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542148

And fixed with the following patch:

--- 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;
}

fukawi2 commented on 2016-06-15 00:20

Thanks yhager; added in 4.0-2: https://github.com/fukawi2/aur4-pkgs/commit/6a24d96c97f6803590fc5582058b4015c383a446

yhager commented on 2016-06-04 23:27

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 nicname instead. Here's the revised jwhois.patch I came up with:

--- 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)
sprintf(ascport, "%9.9d", port);

fukawi2 commented on 2012-02-19 01:20

Adopted.