Date: Fri, 26 Mar 1999 08:36:10 -0800 (PST) From: adamo@dblab.ece.ntua.gr To: freebsd-gnats-submit@freebsd.org Subject: misc/10803: whois(1) client enchancements Message-ID: <19990326163610.1836E1569B@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 10803 >Category: misc >Synopsis: whois(1) client enchancements >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 26 08:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Yiorgos Adamopoulos >Release: 3.1-RELEASE >Organization: Knowledge and Data Base Systems Laboratory, NTUA >Environment: FreeBSD hawk.dbnet.ece.ntua.gr 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Mon Mar 1 21:41:09 EET 1999 george@hawk.dbnet.ece.ntua.gr:/usr/src/sys/compile/ADAMO i386 >Description: >How-To-Repeat: >Fix: *** whois.c.orig Fri Mar 26 18:07:47 1999 --- whois.c Fri Mar 26 18:00:40 1999 *************** *** 57,66 **** #include <unistd.h> #define NICHOST "whois.internic.net" ! #define DNICHOST "nic.ddn.mil" #define ANICHOST "whois.arin.net" #define RNICHOST "whois.ripe.net" #define PNICHOST "whois.apnic.net" #define WHOIS_PORT 43 static void usage __P((void)); --- 57,68 ---- #include <unistd.h> #define NICHOST "whois.internic.net" ! #define DNICHOST "whois.nic.mil" #define ANICHOST "whois.arin.net" #define RNICHOST "whois.ripe.net" #define PNICHOST "whois.apnic.net" + #define GNICHOST "whois.nic.gov" + #define SNICHOST "whois.6bone.net" #define WHOIS_PORT 43 static void usage __P((void)); *************** *** 83,89 **** #endif host = NICHOST; ! while ((ch = getopt(argc, argv, "adh:pr")) != -1) switch((char)ch) { case 'a': host = ANICHOST; --- 85,91 ---- #endif host = NICHOST; ! while ((ch = getopt(argc, argv, "adh:prg6")) != -1) { switch((char)ch) { case 'a': host = ANICHOST; *************** *** 100,109 **** --- 102,122 ---- case 'r': host = RNICHOST; break; + case 'g': + host = GNICHOST; + break; + case '6': + host = SNICHOST; + break; case '?': default: usage(); } + + if ((host == SNICHOST) || (host == RNICHOST)) { + break; + } + } argc -= optind; argv += optind; *************** *** 151,156 **** static void usage() { ! (void)fprintf(stderr, "usage: whois [-adpr] [-h hostname] name ...\n"); exit(EX_USAGE); } --- 164,169 ---- static void usage() { ! (void)fprintf(stderr, "usage: whois [-adprg6] [-h hostname] name ...\n") ; exit(EX_USAGE); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990326163610.1836E1569B>