summaryrefslogtreecommitdiff
path: root/usr.bin/whois
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-04-15 23:24:46 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-04-15 23:24:46 +0000
commit3393064a22b604d4b6d9b668d40161f0f6540d17 (patch)
tree51968ffb4bd5adad621a44a7d7ad8980f2667ea4 /usr.bin/whois
parent73458f98d952f7fe03b5fa06aaa098b36616d6bf (diff)
Remove trailing space in "Whois Server: " since not all records
have whitespace separating that string and the hostname of the whois server (and we strip out whitespace before the hostname anyway). Fixes lookups of .org and probably others.
Diffstat (limited to 'usr.bin/whois')
-rw-r--r--usr.bin/whois/whois.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 4f13465dd25..feb1cdc7244 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: whois.c,v 1.23 2003/01/15 23:16:29 millert Exp $ */
+/* $OpenBSD: whois.c,v 1.24 2003/04/15 23:24:45 millert Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: whois.c,v 1.23 2003/01/15 23:16:29 millert Exp $";
+static const char rcsid[] = "$OpenBSD: whois.c,v 1.24 2003/04/15 23:24:45 millert Exp $";
#endif
#endif /* not lint */
@@ -77,7 +77,7 @@ static const char rcsid[] = "$OpenBSD: whois.c,v 1.23 2003/01/15 23:16:29 miller
#define QNICHOST_TAIL ".whois-servers.net"
#define WHOIS_PORT "whois"
-#define WHOIS_SERVER_ID "Whois Server: "
+#define WHOIS_SERVER_ID "Whois Server:"
#define WHOIS_RECURSE 0x01
#define WHOIS_QUICK 0x02
@@ -200,7 +200,7 @@ whois(const char *query, const char *server, const char *port, int flags)
}
if (s < 0) {
if (reason)
- warn("%s", reason);
+ warn("%s: %s", server, reason);
else
warn("unknown error in connection attempt");
freeaddrinfo(res);