From 2973509c1f0462a463fb307ef94fbfc3e80a5c18 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 29 Jun 2003 23:56:31 +0000 Subject: Back out .SU workaround - people at whois-servers.net set up su.whois-servers.net --- usr.bin/whois/whois.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 6b8924d..729c2e2 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -175,8 +175,6 @@ main(int argc, char *argv[]) } while (argc-- > 0) { if (country != NULL) { - if (strcasecmp(country, "su") == 0) - country = "ru"; s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL); whois(*argv, qnichost, flags); } else if (use_qnichost) @@ -218,11 +216,8 @@ choose_server(char *domain) return (NULL); if (isdigit((unsigned char)*++pos)) s_asprintf(&retval, "%s", ANICHOST); - else { - if (strcasecmp(pos, "su") == 0) - pos = "ru"; + else s_asprintf(&retval, "%s%s", pos, QNICHOST_TAIL); - } return (retval); } -- cgit v1.1