Hello community, here is the log from the commit of package whois for openSUSE:Factory checked in at 2018-05-29 16:51:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/whois (Old) and /work/SRC/openSUSE:Factory/.whois.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "whois" Tue May 29 16:51:18 2018 rev:68 rq:612308 version:5.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/whois/whois.changes 2018-01-30 15:44:09.183306932 +0100 +++ /work/SRC/openSUSE:Factory/.whois.new/whois.changes 2018-05-29 16:51:31.701466400 +0200 @@ -1,0 +2,9 @@ +Wed May 23 20:01:01 UTC 2018 - astie...@suse.com + +- whois 5.3.1: + * mkpasswd: support passwords of arbitrary length + * Added the .ls TLD server + * Added support for -bzh and -uanic NIC handles + * Updated the list of new gTLDs + +------------------------------------------------------------------- Old: ---- whois_5.3.0.tar.xz New: ---- whois_5.3.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ whois.spec ++++++ --- /var/tmp/diff_new_pack.39rdeP/_old 2018-05-29 16:51:32.333443147 +0200 +++ /var/tmp/diff_new_pack.39rdeP/_new 2018-05-29 16:51:32.333443147 +0200 @@ -17,12 +17,12 @@ Name: whois -Version: 5.3.0 +Version: 5.3.1 Release: 0 Summary: Intelligent WHOIS client -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Networking/Other -Url: http://www.linux.it/~md/software/ +URL: http://www.linux.it/~md/software/ Source: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz Source2: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}.asc Source3: https://db.debian.org/fetchkey.cgi?fingerprint=6791403B68AE2690517C42EAE6FFF1E38DC968B0#/%{name}.keyring @@ -77,10 +77,11 @@ %find_lang %{name} %files -f %{name}.lang -%doc README debian/changelog debian/copyright +%license COPYING +%doc README debian/changelog %{_bindir}/mkpasswd %{_bindir}/whois -%{_mandir}/man1/*.1%{ext_man} -%{_mandir}/man5/*.5%{ext_man} +%{_mandir}/man1/*.1%{?ext_man} +%{_mandir}/man5/*.5%{?ext_man} %changelog ++++++ whois.asc ++++++ --- /var/tmp/diff_new_pack.39rdeP/_old 2018-05-29 16:51:32.361442117 +0200 +++ /var/tmp/diff_new_pack.39rdeP/_new 2018-05-29 16:51:32.365441970 +0200 @@ -5,7 +5,7 @@ Source: whois Binary: whois Architecture: any -Version: 5.3.0 +Version: 5.3.1 Maintainer: Marco d'Itri <m...@linux.it> 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: - d560013dc360134e34071e0f2c46b86b546b82af 82728 whois_5.3.0.tar.xz + 5677af8349cd4d287e47fc16383619784aa0a36e 82920 whois_5.3.1.tar.xz Checksums-Sha256: - 4d789c403bfb5833c8ae168a5f31be70e34b045bd5d95a54c82a27b0ff135723 82728 whois_5.3.0.tar.xz + ef4ead31306a388d9c8c83d67f56c94ed8b4c85e94f60baea2f5b1660445893e 82920 whois_5.3.1.tar.xz Files: - 2355e5f4d9b91d4ec5ab608c1ea37a9e 82728 whois_5.3.0.tar.xz + 5c436e40a7257a44401c001fc05c668c 82920 whois_5.3.1.tar.xz -----BEGIN PGP SIGNATURE----- -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 +iQGzBAEBCgAdFiEEGBsIcS5ipP0URKfyK/WlwSLE96QFAlsEHVoACgkQK/WlwSLE +96RBjwwAwYv9AIAxHP/YkbQW5TE1kooukbdRWldWkN2xZMbDdEQExPOwpsVmnEBP +xBYezUPzlPDqLzNse+dkR6C9HVuEcWhY9rAYbryYcGGa0fFN+dMFqPNRcpQ9nsJm +pczd6GGZuCIHbjz3XLoRrNBHEHvlyy7cwaZTg4itHHEDEuG3vPeDkd3FufBPK01I +8KgUU/HiK63zi7Hyyjx93SMSJypE+3oD1VsMwz8zXAN2TODSGetKlG9BG1gSZfiW +m34Bd8yhakmfQ0PI7Fc8Bc0c1VlXSlY0xGdlh9nyFEt4freZe7lraUYBpT1dzKVm +lhKe23iTkn5MPxBabyiIOfzlnmjaOxeXiaSqqBZZjnHMqUqUmb30d5icPdFMalpj +lEFVVZiIFkpRBkoIEseBg4e7uiHx0jmD79SzafA1WcVyUu4AvlD0aSCuMCFvLfYi +7TIePofgu17zOibP1qrpJyQy3x0HQ/bzfMqS+o6Wvo0LKCdeiWPr4XIWwVw+xP2A +Cg+KXLUI +=oW3h -----END PGP SIGNATURE----- ++++++ whois_5.3.0.tar.xz -> whois_5.3.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/debian/changelog new/whois-5.3.1/debian/changelog --- old/whois-5.3.0/debian/changelog 2018-01-21 01:23:45.000000000 +0100 +++ new/whois-5.3.1/debian/changelog 2018-05-22 15:32:28.000000000 +0200 @@ -1,3 +1,12 @@ +whois (5.3.1) unstable; urgency=medium + + * mkpasswd: support passwords of arbitrary length. (Closes: #899254) + * Added the .ls TLD server. (Closes: #896452) + * Added support for -bzh and -uanic NIC handles. + * Updated the list of new gTLDs. + + -- Marco d'Itri <m...@linux.it> Tue, 22 May 2018 15:32:28 +0200 + whois (5.3.0) unstable; urgency=medium * Implemented querying for ip6.arpa domains. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/mkpasswd.c new/whois-5.3.1/mkpasswd.c --- old/whois-5.3.0/mkpasswd.c 2018-01-21 01:23:45.000000000 +0100 +++ new/whois-5.3.1/mkpasswd.c 2018-05-22 15:32:28.000000000 +0200 @@ -127,6 +127,7 @@ void NORETURN display_help(int error); void display_version(void); void display_methods(void); +char *read_line(FILE *fp); int main(int argc, char *argv[]) { @@ -314,24 +315,20 @@ if (password) { } else if (password_fd != -1) { FILE *fp; - char *p; if (isatty(password_fd)) fprintf(stderr, _("Password: ")); - password = NOFAIL(malloc(128)); fp = fdopen(password_fd, "r"); if (!fp) { perror("fdopen"); exit(2); } - if (!fgets(password, 128, fp)) { - perror("fgets"); + + password = read_line(fp); + if (!password) { + perror("fgetc"); exit(2); } - - p = strpbrk(password, "\n\r"); - if (p) - *p = '\0'; } else { password = getpass(_("Password: ")); if (!password) { @@ -479,3 +476,29 @@ printf("%s\t%s\n", methods[i].method, methods[i].desc); } +char *read_line(FILE *fp) { + int size = 128; + int ch; + size_t pos = 0; + char *password; + + password = NOFAIL(malloc(size)); + + while ((ch = fgetc(fp)) != EOF) { + if (ch == '\n' || ch == '\r') + break; + password[pos++] = ch; + if (pos == size) { + size += 128; + password = NOFAIL(realloc(password, size)); + } + } + password[pos] = '\0'; + + if (ferror(fp)) { + free(password); + return NULL; + } + return password; +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/new_gtlds_list new/whois-5.3.1/new_gtlds_list --- old/whois-5.3.0/new_gtlds_list 2018-01-21 01:23:45.000000000 +0100 +++ new/whois-5.3.1/new_gtlds_list 2018-05-22 15:32:28.000000000 +0200 @@ -613,6 +613,7 @@ live living lixil +llc loan loans locker @@ -1193,6 +1194,7 @@ xn--nqv7f xn--nqv7fs00ema xn--nyqy26a +xn--otu796d xn--p1acf xn--pbt977c xn--pssy2u diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/nic_handles.h new/whois-5.3.1/nic_handles.h --- old/whois-5.3.0/nic_handles.h 2017-08-15 19:43:07.000000000 +0200 +++ new/whois-5.3.1/nic_handles.h 2018-05-22 15:32:28.000000000 +0200 @@ -20,3 +20,5 @@ "-tel", "whois.nic.tel", "-adnic", "whois.nic.org.uy", "-sixxs", "whois.sixxs.net", + "-uanic", "whois.ua", + "-bzh", "whois.nic.bzh", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/nic_handles_list new/whois-5.3.1/nic_handles_list --- old/whois-5.3.0/nic_handles_list 2017-07-27 17:44:55.000000000 +0200 +++ new/whois-5.3.1/nic_handles_list 2018-05-22 15:32:28.000000000 +0200 @@ -20,3 +20,5 @@ -tel whois.nic.tel -adnic whois.nic.org.uy -sixxs whois.sixxs.net +-uanic whois.ua +-bzh whois.nic.bzh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/servers_charset_list new/whois-5.3.1/servers_charset_list --- old/whois-5.3.0/servers_charset_list 2017-12-27 02:24:30.000000000 +0100 +++ new/whois-5.3.1/servers_charset_list 2018-05-22 15:32:28.000000000 +0200 @@ -65,4 +65,5 @@ whois.nic.org.uy utf-8 whois.nic.wf utf-8 whois.nic.yt utf-8 +whois.nic.xn--otu796d utf-8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/tld_serv_list new/whois-5.3.1/tld_serv_list --- old/whois-5.3.0/tld_serv_list 2018-01-21 01:23:45.000000000 +0100 +++ new/whois-5.3.1/tld_serv_list 2018-05-22 15:32:28.000000000 +0200 @@ -200,7 +200,7 @@ .li whois.nic.li .lk whois.nic.lk .lr NONE # http://www.psg.com/dns/lr/ -.ls WEB http://www.nic.ls/ +.ls whois.nic.ls .lt whois.domreg.lt .lu whois.dns.lu .lv whois.nic.lv diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/version.h new/whois-5.3.1/version.h --- old/whois-5.3.0/version.h 2018-01-13 01:39:11.000000000 +0100 +++ new/whois-5.3.1/version.h 2018-05-22 15:32:28.000000000 +0200 @@ -1 +1 @@ -#define VERSION "5.3.0" +#define VERSION "5.3.1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whois-5.3.0/whois.c new/whois-5.3.1/whois.c --- old/whois-5.3.0/whois.c 2018-01-21 01:23:45.000000000 +0100 +++ new/whois-5.3.1/whois.c 2018-05-22 15:32:28.000000000 +0200 @@ -18,6 +18,7 @@ #include "config.h" #include <string.h> #include <ctype.h> +#include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> @@ -1355,7 +1356,6 @@ /* 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; }