rpms/psmisc/F-8 psmisc-22.6-pstree-overflow.patch, NONE, 1.1 psmisc.spec, 1.41, 1.42

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Mon Apr 14 12:00:20 UTC 2008


Author: tsmetana

Update of /cvs/pkgs/rpms/psmisc/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25870

Modified Files:
	psmisc.spec 
Added Files:
	psmisc-22.6-pstree-overflow.patch 
Log Message:
* Mon Apr 14 2008 Tomas Smetana <tsmetana at redhat.com> 22.6-2.1
- fix #441871 - pstree fails to show most processes;
  patch by Emil Jerabek


psmisc-22.6-pstree-overflow.patch:

--- NEW FILE psmisc-22.6-pstree-overflow.patch ---
diff -up psmisc-22.6/src/pstree.c.overflow psmisc-22.6/src/pstree.c
--- psmisc-22.6/src/pstree.c.overflow	2008-04-14 12:53:07.000000000 +0200
+++ psmisc-22.6/src/pstree.c	2008-04-14 13:05:51.000000000 +0200
@@ -608,6 +608,7 @@ read_proc (void)
 		perror (path);
 		exit (1);
 	      }
+            memset(readbuf, '\0', BUFSIZ + 1);
             fread(readbuf, BUFSIZ, 1, file) ;
             if (ferror(file) == 0) 
             {


Index: psmisc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/psmisc/F-8/psmisc.spec,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- psmisc.spec	10 Dec 2007 13:24:08 -0000	1.41
+++ psmisc.spec	14 Apr 2008 11:59:40 -0000	1.42
@@ -1,7 +1,7 @@
 Summary: Utilities for managing processes on your system
 Name: psmisc
 Version: 22.6
-Release: 2%{?dist}
+Release: 2.1%{?dist}
 License: BSD/GPLv2+
 Group: Applications/System
 Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -9,6 +9,7 @@
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch0: psmisc-22.6-peekfd64.patch
+Patch1: psmisc-22.6-pstree-overflow.patch
 
 BuildRequires: libselinux-devel
 BuildRequires: gettext
@@ -26,6 +27,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
@@ -66,6 +68,10 @@
 %endif
 
 %changelog
+* Mon Apr 14 2008 Tomas Smetana <tsmetana at redhat.com> 22.6-2.1
+- fix #441871 - pstree fails to show most processes;
+  patch by Emil Jerabek
+
 * Mon Dec 10 2007 Tomas Smetana <tsmetana at redhat.com> 22.6-2
 - fix #417801 - exclude peekfd on secondary architectures
 




More information about the fedora-extras-commits mailing list