Related: #158405 - drop coreutils-overflow.patch no longer needed

The bug was fixed by the following upstream commit 13 years ago:

http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=COREUTILS-5_2_1-705-g5bca9fb
This commit is contained in:
Kamil Dudka 2017-05-03 15:42:49 +02:00
parent 34aa759415
commit fde94e2609
2 changed files with 4 additions and 16 deletions

View File

@ -1,13 +0,0 @@
diff --git a/src/who.c b/src/who.c
index 55733b4..3ad4774 100644
--- a/src/who.c
+++ b/src/who.c
@@ -81,7 +81,7 @@
# define UT_TYPE_NEW_TIME(U) false
#endif
-#define IDLESTR_LEN 6
+#define IDLESTR_LEN 10
#if HAVE_STRUCT_XTMP_UT_PID
# define PIDSTR_DECL_AND_INIT(Var, Utmp_ent) \

View File

@ -1,7 +1,7 @@
Summary: A set of basic GNU tools commonly used in shell scripts Summary: A set of basic GNU tools commonly used in shell scripts
Name: coreutils Name: coreutils
Version: 8.27 Version: 8.27
Release: 7%{?dist} Release: 8%{?dist}
License: GPLv3+ License: GPLv3+
Group: System Environment/Base Group: System Environment/Base
Url: https://www.gnu.org/software/coreutils/ Url: https://www.gnu.org/software/coreutils/
@ -60,8 +60,6 @@ Patch808: coreutils-i18n-fold-newline.patch
#getgrouplist() patch from Ulrich Drepper. #getgrouplist() patch from Ulrich Drepper.
Patch908: coreutils-getgrouplist.patch Patch908: coreutils-getgrouplist.patch
#Prevent buffer overflow in who(1) (bug #158405).
Patch912: coreutils-overflow.patch
#SELINUX Patch - implements Redhat changes #SELINUX Patch - implements Redhat changes
#(upstream did some SELinux implementation unlike with RedHat patch) #(upstream did some SELinux implementation unlike with RedHat patch)
@ -287,6 +285,9 @@ fi
%license COPYING %license COPYING
%changelog %changelog
* Wed May 03 2017 Kamil Dudka <kdudka@redhat.com> - 8.27-8
- drop coreutils-overflow.patch no longer needed (#158405)
* Wed May 03 2017 Kamil Dudka <kdudka@redhat.com> - 8.27-7 * Wed May 03 2017 Kamil Dudka <kdudka@redhat.com> - 8.27-7
- drop workaround for already fixed rpm-build bug (#1306559) - drop workaround for already fixed rpm-build bug (#1306559)