Accepting request 22149 from home:a_jaeger:branches:openSUSE:Factory

Copy from home:a_jaeger:branches:openSUSE:Factory/psmisc via accept of submit request 22149 revision 4.

OBS-URL: https://build.opensuse.org/request/show/22149
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=8
This commit is contained in:
Dr. Werner Fink 2009-10-09 09:33:52 +00:00 committed by Git OBS Bridge
parent 67dc0dbdb8
commit 9a71c7230c
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- src/pstree.c.orig 2008-12-16 11:13:35.000000000 +0100
+++ src/pstree.c 2009-10-08 19:37:59.000000000 +0200
@@ -749,6 +749,9 @@
exit (1);
}
(void) close (fd);
+ /* If we have read the maximum screen length of args, bring it back by one to stop overflow */
+ if (size >= buffer_size)
+ size--;
if (size)
buffer[size++] = 0;
#ifdef WITH_SELINUX

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 9 08:20:29 UTC 2009 - aj@suse.de
- fix pstree -a crash (bnc#545265) with patch backported from 22.8
by Björn Voigt <bjoern@cs.tu-berlin.de>.
-------------------------------------------------------------------
Thu Sep 10 10:21:09 CEST 2009 - werner@suse.de

View File

@ -39,6 +39,7 @@ Patch4: %name-22.7-writeonly.patch
Patch5: %name-22.6-fdleak.patch
Patch6: %name-22.6-tigetstr.patch
Patch7: %name-22.7-memleaks.patch
Patch8: %name-22.8-to-22.7-backport.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define nopeek s390 s390x ia64 %arm
@ -66,6 +67,7 @@ Authors:
%patch6 -p0 -b .tigetstr
%patch7 -p0 -b .memleaks
%patch0 -p0
%patch8 -p0
%build
autoreconf -fi