Hello community, here is the log from the commit of package whois for openSUSE:Factory checked in at 2018-01-30 15:43:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/whois (Old) and /work/SRC/openSUSE:Factory/.whois.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "whois" Tue Jan 30 15:43:47 2018 rev:67 rq:570634 version:5.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/whois/whois.changes 2018-01-13 21:47:00.715852567 +0100 +++ /work/SRC/openSUSE:Factory/.whois.new/whois.changes 2018-01-30 15:44:09.183306932 +0100 @@ -1,0 +2,8 @@ +Mon Jan 29 13:08:43 UTC 2018 - [email protected] + +- whois 5.3.0: + * Implement querying for ip6.arpa domains + * Updat the .pr TLD servers + * Update the list of new gTLDs + +------------------------------------------------------------------- Old: ---- whois_5.2.20.tar.xz New: ---- whois_5.3.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ whois.spec ++++++ --- /var/tmp/diff_new_pack.iZdjy5/_old 2018-01-30 15:44:10.043266785 +0100 +++ /var/tmp/diff_new_pack.iZdjy5/_new 2018-01-30 15:44:10.047266598 +0100 @@ -17,7 +17,7 @@ Name: whois -Version: 5.2.20 +Version: 5.3.0 Release: 0 Summary: Intelligent WHOIS client License: GPL-2.0+ ++++++ whois.asc ++++++ --- /var/tmp/diff_new_pack.iZdjy5/_old 2018-01-30 15:44:10.087264731 +0100 +++ /var/tmp/diff_new_pack.iZdjy5/_new 2018-01-30 15:44:10.091264544 +0100 @@ -5,7 +5,7 @@ Source: whois Binary: whois Architecture: any -Version: 5.2.20 +Version: 5.3.0 Maintainer: Marco d'Itri <[email protected]> Standards-Version: 4.1.2 Vcs-Browser: https://github.com/rfc1036/whois @@ -14,23 +14,23 @@ Package-List: whois deb net standard arch=any Checksums-Sha1: - a8f233158282fd99652b0db18dcef59578da69e4 82336 whois_5.2.20.tar.xz + d560013dc360134e34071e0f2c46b86b546b82af 82728 whois_5.3.0.tar.xz Checksums-Sha256: - 6848ab671750ab3782fe4ab2a47910fe4e25aa93894e4d0f3f67b5fcee06c009 82336 whois_5.2.20.tar.xz + 4d789c403bfb5833c8ae168a5f31be70e34b045bd5d95a54c82a27b0ff135723 82728 whois_5.3.0.tar.xz Files: - fb2ef193fb8a1f7c29271ee15e14c752 82336 whois_5.2.20.tar.xz + 2355e5f4d9b91d4ec5ab608c1ea37a9e 82728 whois_5.3.0.tar.xz -----BEGIN PGP SIGNATURE----- -iQGzBAEBCgAdFiEEGBsIcS5ipP0URKfyK/WlwSLE96QFAlpDBPgACgkQK/WlwSLE -96Safwv/Z+xTVxZAPxKlXSiU5BPhokSH7/8Gq1wsSqM7ducvpfcC6rnK6HZ1rsDf -ohMD/wXDRttRe6YkubpTDhIKyHsOsIp6G1nuZ90jTKvs6pXZS8LcWFsU1vvWyW08 -jYvRCct28rQykkPKCkgtM8EvmRzMGj3lfVxt+ma1nYnislKrgOoficbLTn09TBK6 -768oC9fgrClGMRoOpKrmqnAcBcbEKzLROCZzDxPZX2kIL1UH7NYRDyAROo9P29Gy -nA5t/h7u/3iJkwWaASqW5qNwaiAyEFjNlTxTlRXfuJxPL1P9k8DlQJ/fALav1H1B -Q8IM8aS8gWe56fSVbktNDxfmqfKoGLPWAFFZOtDpWOjr4EYSh8fmGVoCA9PejFwN -GnnUwc1FOM+tF+PQroQnFTx99m5JkOUcF52sVtiYgIZQlzulEOACnQamO9PXpmDj -zKQQVuYdRegpCQJu3KfMgQe1d654O/j58XQZXFzOaWuiSOpc/Vf0lRGE0MfblVHc -Swj734ss -=bb8h +iQGzBAEBCgAdFiEEGBsIcS5ipP0URKfyK/WlwSLE96QFAlpj3eUACgkQK/WlwSLE +96QERgwAsN9vFqrHI34jyPF6wFqxMQ8mgOS+/qGF8W/0HVqXPNike1pQptam6wlj +wvSFV0I0EdpfDsLYVgSPfo1EjLarqoCIy/yhX+RWVz/MfBhEhlHiKD0YOm9Y8ZsT +Ni5GMR1wHotakUELg7Pm10EjVMvy8+ezz1KxAYPQoMfVdFRuN6tV83ik4B5AdZIz +UM3obUy6UBYvlKQUYDP4qhA+9hJ+lkJ2kI7HV3MLI9LrdVyiAVVjWdAIzwubjeHg +QmMkeP8W9XE8cZ0VkyIcCYJ5/n1mxF+0QfjvNcjJlC/iI2YKAQZqpkKnXTRZdmMv +IaAxFOT/OfA1aTF4hx1m4yfPtnRtSU2rAqZu1UkKskjxz4gUT5swJyXGp0xWdEFc +xkYmhgiHjiOqpM46JGSdHLPd5jSyYeT/rSIC+77ZdtmRKbzLy3RPDPmInw30CDG9 +WlwilBa/0RHIDlDeWZ60voIlbtTpjjzEeHZy6it5pNQaLeHbZ2H/ujzLxlU/aEgh +j3CB/fe5 +=c3HB -----END PGP SIGNATURE----- ++++++ whois_5.2.20.tar.xz -> whois_5.3.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/Makefile new/whois-5.3.0/Makefile --- old/whois-5.2.20/Makefile 2017-12-27 03:09:58.000000000 +0100 +++ new/whois-5.3.0/Makefile 2018-01-21 01:23:45.000000000 +0100 @@ -33,6 +33,11 @@ DEFS += -DLOCALEDIR=\"$(BASEDIR)$(prefix)/share/locale\" endif +# libidn support has been autodetected since 5.2.18 +ifdef HAVE_LIBIDN +$(error Please fix your build system to stop defining HAVE_LIBIDN!) +endif + ifeq ($(shell $(PKG_CONFIG) --exists 'libidn2 >= 2.0.3' || echo NO),) whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn2) DEFS += -DHAVE_LIBIDN2 $(shell $(PKG_CONFIG) --cflags libidn2) @@ -102,13 +107,8 @@ ############################################################################## afl: - $(MAKE) whois \ - CC=afl-gcc AFL_HARDEN=1 \ - HAVE_LIBIDN=1 HAVE_ICONV=1 DEFS=-DAFL_MODE=1 - -afl2: - $(MAKE) whois \ - HAVE_LIBIDN=1 HAVE_ICONV=1 DEFS=-DAFL_MODE=1 + -rm -f Makefile.depend + DEFS=-DAFL_MODE=1 AFL_HARDEN=1 $(MAKE) whois CC=afl-gcc HAVE_ICONV=1 afl-run: nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/data.h new/whois-5.3.0/data.h --- old/whois-5.2.20/data.h 2017-07-27 17:44:55.000000000 +0200 +++ new/whois-5.3.0/data.h 2018-01-21 01:23:45.000000000 +0100 @@ -78,6 +78,7 @@ "% The WHOIS service offered by DNS Belgium", "", /* be */ "% (c) 2015 NIC Costa Rica", "", /* cr */ "% The WHOIS service offered by EURid", "% of the database", /* eu */ + "Access to .IN WHOIS information", "", /* in */ "% WHOIS LEGAL STATEMENT AND TERMS & CONDITIONS", NULL, /* sx */ "; The data in the WHOIS database of KSregistry GmbH", "", /* vg */ "NeuStar, Inc., the Registry Administrator for .US", NULL, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/debian/changelog new/whois-5.3.0/debian/changelog --- old/whois-5.2.20/debian/changelog 2017-12-27 03:15:27.000000000 +0100 +++ new/whois-5.3.0/debian/changelog 2018-01-21 01:23:45.000000000 +0100 @@ -1,3 +1,11 @@ +whois (5.3.0) unstable; urgency=medium + + * Implemented querying for ip6.arpa domains. + * Updated the .pr TLD servers. + * Updated the list of new gTLDs. + + -- Marco d'Itri <[email protected]> Sun, 21 Jan 2018 01:23:45 +0100 + whois (5.2.20) unstable; urgency=medium * Added the .mr TLD server. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/ip6_del_list new/whois-5.3.0/ip6_del_list --- old/whois-5.2.20/ip6_del_list 2013-03-30 02:31:35.000000000 +0100 +++ new/whois-5.3.0/ip6_del_list 2018-01-21 01:23:45.000000000 +0100 @@ -43,5 +43,3 @@ 2A00:0000::/12 ripe 2C00:0000::/12 afrinic -3FFE:0000::/16 6bone - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/make_tld_serv.pl new/whois-5.3.0/make_tld_serv.pl --- old/whois-5.2.20/make_tld_serv.pl 2017-07-27 17:44:55.000000000 +0200 +++ new/whois-5.3.0/make_tld_serv.pl 2018-01-21 01:23:45.000000000 +0100 @@ -17,6 +17,7 @@ $b = "\\x03" if $b eq 'NONE'; $b = "\\x08" if $b eq 'AFILIAS'; $b = "\\x0C" if $b eq 'ARPA'; + $b = "\\x0D" if $b eq 'IP6'; print qq| "$a",\t"$b",\n|; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/mkpasswd.c new/whois-5.3.0/mkpasswd.c --- old/whois-5.2.20/mkpasswd.c 2017-12-27 03:09:58.000000000 +0100 +++ new/whois-5.3.0/mkpasswd.c 2018-01-21 01:23:45.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2001-2008 Marco d'Itri + * Copyright (C) 2001-2018 Marco d'Itri <[email protected]>. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/new_gtlds_list new/whois-5.3.0/new_gtlds_list --- old/whois-5.2.20/new_gtlds_list 2017-07-27 17:44:55.000000000 +0200 +++ new/whois-5.3.0/new_gtlds_list 2018-01-21 01:23:45.000000000 +0100 @@ -949,6 +949,7 @@ soy space spiegel +sport spot spreadbetting srl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/tld_serv_list new/whois-5.3.0/tld_serv_list --- old/whois-5.2.20/tld_serv_list 2017-12-27 03:15:27.000000000 +0100 +++ new/whois-5.3.0/tld_serv_list 2018-01-21 01:23:45.000000000 +0100 @@ -44,6 +44,7 @@ .e164.arpa whois.ripe.net .in-addr.arpa ARPA +.ip6.arpa IP6 .arpa whois.iana.org .aero whois.aero @@ -252,7 +253,7 @@ .pl whois.dns.pl .pm whois.nic.pm .pn WEB http://www.pitcairn.pn/PnRegistry/ -.pr whois.nic.pr +.pr whois.afilias-srs.net .ps whois.pnina.ps .pt whois.dns.pt .pw whois.nic.pw diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/version.h new/whois-5.3.0/version.h --- old/whois-5.2.20/version.h 2017-12-27 03:15:27.000000000 +0100 +++ new/whois-5.3.0/version.h 2018-01-13 01:39:11.000000000 +0100 @@ -1 +1 @@ -#define VERSION "5.2.20" +#define VERSION "5.3.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/whois.1 new/whois-5.3.0/whois.1 --- old/whois-5.2.20/whois.1 2017-08-22 18:37:55.000000000 +0200 +++ new/whois-5.3.0/whois.1 2018-01-21 01:23:45.000000000 +0100 @@ -207,8 +207,6 @@ This program closely tracks the user interface of the whois client developed at RIPE by Ambrose Magee and others on the base of the original BSD client. -I also added support for the protocol extensions developed by David -Kessens of QWest for the 6bone server. .SH "AUTHOR" .B Whois and this man page were written by Marco d'Itri <\[email protected]\fP> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/whois.c new/whois-5.3.0/whois.c --- old/whois-5.2.20/whois.c 2017-12-27 03:09:58.000000000 +0100 +++ new/whois-5.3.0/whois.c 2018-01-21 01:23:45.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright 1999-2010 by Marco d'Itri <[email protected]>. + * Copyright (C) 1999-2018 Marco d'Itri <[email protected]>. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -368,6 +368,12 @@ server = guess_server(p); free(p); goto retry; + case 0x0D: + p = convert_in6arpa(query); + free(server); + server = guess_server(p); + free(p); + goto retry; default: break; } @@ -555,7 +561,7 @@ char *server = malloc(strlen("whois.nic.") + strlen(tld) + 1); strcpy(server, "whois.nic."); strcat(server, tld); - return(server); + return server; } /* no dot but hyphen */ @@ -935,7 +941,7 @@ * instead of connecting to the actual whois server. */ if (AFL_MODE) - return (dup(0)); + return dup(0); alarm(60); @@ -1001,7 +1007,7 @@ struct timeval tv; if (timeout <= 0) - return (connect(fd, addr, addrlen)); + return connect(fd, addr, addrlen); if ((savedflags = fcntl(fd, F_GETFL, 0)) < 0) return -1; @@ -1065,7 +1071,8 @@ err_quit(_("Interrupted by signal %d..."), signum); } -int japanese_locale(void) { +int japanese_locale(void) +{ char *lang; lang = getenv("LC_MESSAGE"); @@ -1212,7 +1219,8 @@ /* server and port have to be freed by the caller */ void split_server_port(const char *const input, - char **server, char **port) { + char **server, char **port) +{ char *p; if (*input == '[' && (p = strchr(input, ']'))) { /* IPv6 */ @@ -1326,6 +1334,69 @@ return new; } +char *convert_in6arpa(const char *s) +{ + char *ip, *p; + int character = 0; + int digits = 1; + + ip = malloc(40); + + p = strstr(s, ".ip6.arpa"); + if (!p || p == s) { + ip[character] = '\0'; + return ip; + } + + /* start from the first character before ".ip6.arpa" */ + p--; + + while (1) { + /* check that this is a valid digit for an IPv6 address */ + if (!((*p >= '0' && *p <= '9') || (*p >= 'a' && *p <= 'f') || + (*p >= 'A' && *p <= 'F'))) { + free(ip); + ip[character] = '\0'; + return ip; + } + + /* copy the digit to the IP address */ + ip[character++] = *p; + + /* stop if we have reached the beginning of the string */ + if (p == s) + break; + + /* stop if we have parsed a complete address */ + if (character == 39) + break; + + /* add the colon separator every four digits */ + if ((digits++ % 4) == 0) + ip[character++] = ':'; + + /* go to the precedent character and abort if it is not a dot */ + p--; + if (*p != '.') { + ip[character] = '\0'; + return ip; + } + + /* abort if the string starts with the dot */ + if (p == s) { + ip[character] = '\0'; + return ip; + } + + /* go to the precedent character and continue */ + p--; + } + + /* terminate the string */ + ip[character] = '\0'; + return ip; +} + unsigned long myinet_aton(const char *s) { unsigned long a, b, c, d; @@ -1356,7 +1427,8 @@ return (a << 16) + b; } -int isasciidigit(const char c) { +int isasciidigit(const char c) +{ return (c >= '0' && c <= '9') ? 1 : 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.2.20/whois.h new/whois-5.3.0/whois.h --- old/whois-5.2.20/whois.h 2017-07-27 17:44:55.000000000 +0200 +++ new/whois-5.3.0/whois.h 2018-01-21 01:23:45.000000000 +0100 @@ -38,6 +38,7 @@ char *convert_6to4(const char *); char *convert_teredo(const char *); char *convert_inaddr(const char *); +char *convert_in6arpa(const char *); int handle_query(const char *server, const char *port, const char *qstring, const char *fstring); void split_server_port(const char *const input, char **server, char **port);
