Module Name: src
Committed By: ws
Date: Wed Feb 20 09:27:52 UTC 2013
Modified Files:
src/usr.bin/whois: whois.c
Log Message:
It helps to separate arguments from the query.
While still suboptimal (you cannot use all the queries specified for .DE),
at least this way we don't get cryptic error messages for standard queries.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/whois/whois.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/whois/whois.c
diff -u src/usr.bin/whois/whois.c:1.35 src/usr.bin/whois/whois.c:1.36
--- src/usr.bin/whois/whois.c:1.35 Wed Aug 17 13:57:12 2011
+++ src/usr.bin/whois/whois.c Wed Feb 20 09:27:52 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: whois.c,v 1.35 2011/08/17 13:57:12 christos Exp $ */
+/* $NetBSD: whois.c,v 1.36 2013/02/20 09:27:52 ws Exp $ */
/* $OpenBSD: whois.c,v 1.28 2003/09/18 22:16:15 fgsch Exp $ */
/*
@@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#if 0
static const char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: whois.c,v 1.35 2011/08/17 13:57:12 christos Exp $");
+__RCSID("$NetBSD: whois.c,v 1.36 2013/02/20 09:27:52 ws Exp $");
#endif
#endif /* not lint */
@@ -216,7 +216,7 @@ whois(const char *query, const char *ser
if (strcmp(server, "whois.denic.de") == 0 ||
strcmp(server, "de.whois-servers.net") == 0)
- fmt = "-T dn,ace -C ISO-8859-1";
+ fmt = "-T dn,ace -C ISO-8859-1 ";
else
fmt = "";