Date: Wed, 2 Jul 2014 11:51:02 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r268155 - stable/9/usr.bin/whois Message-ID: <201407021151.s62Bp2ns020194@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Wed Jul 2 11:51:01 2014 New Revision: 268155 URL: http://svnweb.freebsd.org/changeset/base/268155 Log: MFC r267871: Introduce $RA_SERVER to set default whois server. Requested by: nork Reviewed by: nork Modified: stable/9/usr.bin/whois/whois.c Directory Properties: stable/9/usr.bin/whois/ (props changed) Modified: stable/9/usr.bin/whois/whois.c ============================================================================== --- stable/9/usr.bin/whois/whois.c Wed Jul 2 11:49:15 2014 (r268154) +++ stable/9/usr.bin/whois/whois.c Wed Jul 2 11:51:01 2014 (r268155) @@ -179,10 +179,12 @@ main(int argc, char *argv[]) * back to NICHOST. */ if (host == NULL && country == NULL) { - use_qnichost = 1; - host = NICHOST; - if (!(flags & WHOIS_QUICK)) - flags |= WHOIS_RECURSE; + if ((host = getenv("RA_SERVER")) == NULL) { + use_qnichost = 1; + host = NICHOST; + if (!(flags & WHOIS_QUICK)) + flags |= WHOIS_RECURSE; + } } while (argc-- > 0) { if (country != NULL) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407021151.s62Bp2ns020194>