Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/whois It helps to separate arguments from the query.



details:   https://anonhg.NetBSD.org/src/rev/0d1006e10ddf
branches:  trunk
changeset: 785061:0d1006e10ddf
user:      ws <ws%NetBSD.org@localhost>
date:      Wed Feb 20 09:27:52 2013 +0000

description:
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.

diffstat:

 usr.bin/whois/whois.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 55973f128a5b -r 0d1006e10ddf usr.bin/whois/whois.c
--- a/usr.bin/whois/whois.c     Wed Feb 20 09:03:41 2013 +0000
+++ b/usr.bin/whois/whois.c     Wed Feb 20 09:27:52 2013 +0000
@@ -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 @@
 #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 @@
 
        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 = "";
 



Home | Main Index | Thread Index | Old Index