diff --git a/5000-fix-memory-leak.patch b/5000-fix-memory-leak.patch deleted file mode 100644 index 36efaac86c451a3b48459f03a51763c9efc9396e..0000000000000000000000000000000000000000 --- a/5000-fix-memory-leak.patch +++ /dev/null @@ -1,38 +0,0 @@ -From ddacb22dac891332c759293ab6297090216b121b Mon Sep 17 00:00:00 2001 -From: binlingyu -Date: Mon, 20 May 2024 16:24:12 +0800 -Subject: [PATCH] fix-memory-leak - ---- - hostname.c | 9 +++++++-- - 1 file changed, 7 insertions(+), 2 deletions(-) - -diff --git a/hostname.c b/hostname.c -index 5be268e..63200be 100644 ---- a/hostname.c -+++ b/hostname.c -@@ -262,15 +262,20 @@ show_name(enum type_t type) - switch(type) - { - case DEFAULT: -- printf("%s\n", localhost()); -+ p=localhost(); -+ printf("%s\n", p); -+ free(p); - break; - case SHORT: - p = localhost(); - *(strchrnul(p, '.')) = '\0'; - printf("%s\n", p); -+ free(p); - break; - case NIS: -- printf("%s\n", localdomain()); -+ p=localdomain(); -+ printf("%s\n", p); -+ free(p); - break; - case NIS_DEF: - printf("%s\n", localnisdomain()); --- -2.20.1 \ No newline at end of file diff --git a/hostname.spec b/hostname.spec index e133beb1d8db51c99d01700c4adc03e51a1222a3..f7b12d92016d56a3ff9a77f0bb5cae23add3e4f8 100644 --- a/hostname.spec +++ b/hostname.spec @@ -1,7 +1,7 @@ Summary: Utility to set/show the host name or domain name Name: hostname -Version: 3.23 -Release: 2 +Version: 3.25 +Release: 1 License: GPLv2+ URL: http://packages.qa.debian.org/h/hostname.html Source0: http://ftp.de.debian.org/debian/pool/main/h/hostname/hostname_%{version}.tar.gz @@ -9,7 +9,6 @@ Source1: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt Source2: nis-domainname Source3: nis-domainname.service Patch1: hostname-rh.patch -Patch2: 5000-fix-memory-leak.patch BuildRequires: gcc @@ -51,6 +50,12 @@ fi %{_libexecdir}/%{name}/* %changelog +* Tue Dec 10 2024 liyunqing - 3.25-1 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:update hostname version to 3.25 + * Mon May 20 2024 binlingyu - 3.23-2 - Type:requirement - ID:NA diff --git a/hostname_3.23.tar.gz b/hostname_3.23.tar.gz deleted file mode 100644 index 6981de976c43e7256a635f36dbb51f88318a565d..0000000000000000000000000000000000000000 Binary files a/hostname_3.23.tar.gz and /dev/null differ diff --git a/hostname_3.25.tar.gz b/hostname_3.25.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..181fd90b53f5aab5dc50734487149919d8cf3b18 Binary files /dev/null and b/hostname_3.25.tar.gz differ