packages: procps/procps.spec, procps/proc-err.patch (NEW) - patch for prope...
zbyniu
zbyniu at pld-linux.org
Fri Oct 16 22:42:30 CEST 2009
Author: zbyniu Date: Fri Oct 16 20:42:30 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- patch for proper handle errors openning /proc in libproc
- apps should do it but most don't
---- Files affected:
packages/procps:
procps.spec (1.130 -> 1.131) , proc-err.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/procps/procps.spec
diff -u packages/procps/procps.spec:1.130 packages/procps/procps.spec:1.131
--- packages/procps/procps.spec:1.130 Mon May 11 08:55:54 2009
+++ packages/procps/procps.spec Fri Oct 16 22:42:25 2009
@@ -24,6 +24,7 @@
Patch2: %{name}-FILLBUG_backport.patch
# http://www.nsa.gov/selinux/patches/procps-selinux.patch.gz
Patch3: %{name}-selinux.patch
+Patch4: proc-err.patch
URL: http://procps.sourceforge.net/
BuildRequires: ncurses-devel >= 5.1
BuildRequires: rpmbuild(macros) >= 1.402
@@ -125,6 +126,7 @@
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
%{__make} proc/libproc.a \
@@ -211,6 +213,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.131 2009/10/16 20:42:25 zbyniu
+- patch for proper handle errors openning /proc in libproc
+- apps should do it but most don't
+
Revision 1.130 2009/05/11 06:55:54 paszczus
- updated to 3.2.8
================================================================
Index: packages/procps/proc-err.patch
diff -u /dev/null packages/procps/proc-err.patch:1.1
--- /dev/null Fri Oct 16 22:42:30 2009
+++ packages/procps/proc-err.patch Fri Oct 16 22:42:25 2009
@@ -0,0 +1,14 @@
+--- procps-3.2.8/proc/readproc.c~ 2006-06-16 10:18:13.000000000 +0200
++++ procps-3.2.8/proc/readproc.c 2009-10-16 20:32:50.373587035 +0200
+@@ -859,7 +859,10 @@
+ PT->finder = listed_nextpid;
+ }else{
+ PT->procfs = opendir("/proc");
+- if(!PT->procfs) return NULL;
++ if(!PT->procfs) {
++ perror("/proc");
++ exit(1);
++ }
+ PT->finder = simple_nextpid;
+ }
+ PT->flags = flags;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/procps/procps.spec?r1=1.130&r2=1.131&f=u
More information about the pld-cvs-commit
mailing list