]> git.pld-linux.org Git - packages/procps.git/commitdiff
- patch for proper handle errors openning /proc in libproc auto/th/procps-3_2_8-1
authorzbyniu <zbyniu@pld-linux.org>
Fri, 16 Oct 2009 20:42:25 +0000 (20:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- apps should do it but most don't

Changed files:
    proc-err.patch -> 1.1
    procps.spec -> 1.131

proc-err.patch [new file with mode: 0644]
procps.spec

diff --git a/proc-err.patch b/proc-err.patch
new file mode 100644 (file)
index 0000000..895513d
--- /dev/null
@@ -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;
index 7b9f325222aae8e21ef150709e115d9123ecac66..8c1dd00a00db4b68390ead236e8ddf2dd7b35055 100644 (file)
@@ -23,6 +23,7 @@ Patch1:               %{name}-global.patch
 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
@@ -124,6 +125,7 @@ Statyczna wersja biblioteki libproc.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__make} proc/libproc.a \
This page took 0.067661 seconds and 4 git commands to generate.