From 6792c5a34715e10117c7edb3760650893c9d6358 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 15 2019 14:36:16 +0000 Subject: import hostname-3.13-3.el7_7.1 --- diff --git a/SOURCES/hostname-fqdn_size.patch b/SOURCES/hostname-fqdn_size.patch new file mode 100644 index 0000000..2766a85 --- /dev/null +++ b/SOURCES/hostname-fqdn_size.patch @@ -0,0 +1,13 @@ +diff --git a/hostname.c b/hostname.c +index b192e74..ad6070c 100644 +--- a/hostname.c ++++ b/hostname.c +@@ -279,7 +279,7 @@ show_name(enum type_t type) + break; + case ALL_IPS: + case ALL_FQDNS: { +- char buf[INET6_ADDRSTRLEN]; ++ char buf[255]; + int flags, ret, family, addrlen; + + /* What kind of information do we want from getnameinfo()? */ diff --git a/SPECS/hostname.spec b/SPECS/hostname.spec index a0f9afc..5056b39 100644 --- a/SPECS/hostname.spec +++ b/SPECS/hostname.spec @@ -1,7 +1,7 @@ Summary: Utility to set/show the host name or domain name Name: hostname Version: 3.13 -Release: 3%{?dist} +Release: 3%{?dist}.1 License: GPLv2+ Group: System Environment/Base URL: http://packages.qa.debian.org/h/hostname.html @@ -9,6 +9,7 @@ Source0: http://ftp.de.debian.org/debian/pool/main/h/hostname/hostname_%{version # Initial changes Patch1: hostname-rh.patch +Patch2: hostname-fqdn_size.patch %description This package provides commands which can be used to display the system's @@ -17,6 +18,7 @@ DNS name, and to display or set its hostname or NIS domain name. %prep %setup -q %patch1 -p1 -b .rh +%patch2 -p1 -b .fqdn %build make CFLAGS="$RPM_OPT_FLAGS $CFLAGS" @@ -30,6 +32,9 @@ make BASEDIR=%{buildroot} install %{_mandir}/man1/* %changelog +* Mon Aug 12 2019 Pavel Zhukov - 3.13-3.1 +- Fix fqdn buffer size + * Fri Jan 24 2014 Daniel Mach - 3.13-3 - Mass rebuild 2014-01-24