Imported Debian version 4.6.5

This commit is contained in:
Marco d'Itri 2003-05-05 18:14:46 +02:00
parent 570afc2396
commit cc470e6784
2 changed files with 4 additions and 6 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
whois (4.6.4) unstable; urgency=medium
whois (4.6.5) unstable; urgency=medium
* Added may new ASN blocks from MILNET, LACNIC and JP-NIC.
* Fixed a bug which broke ASN queries to whois.nic.mil.

View File

@ -428,13 +428,11 @@ char *queryformat(const char *server, const char *flags, const char *query)
puts(_("Warning: RIPE flags used with a traditional server."));
strcat(buf, flags);
}
if (!isripe && strcmp(server, "whois.nic.mil") == 0 &&
/* FIXME: /e is not applied to .JP ASN */
if (!isripe && (strcmp(server, "whois.nic.mil") == 0 ||
strcmp(server, "whois.nic.ad.jp") == 0) &&
strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2]))
sprintf(buf, "AS %s", query + 2); /* fix query for DDN */
else if (!isripe && (strcmp(server, "whois.arin.net") == 0 ||
strcmp(server, "whois.nic.ad.jp")) &&
strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2]))
sprintf(buf, "AS %s", query + 2); /* always ask for a ASN */
else if (!isripe && strcmp(server, "whois.corenic.net") == 0)
sprintf(buf, "--machine %s", query); /* machine readable output */
else if (!isripe && strcmp(server, "whois.nic.ad.jp") == 0) {