Dr. Werner Fink 2011-12-20 11:08:06 +00:00 committed by Git OBS Bridge
parent e030ff7236
commit 5b76cf02a4
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- procps-3.2.8/top.c
+++ procps-3.2.8/top.c 2011-12-20 10:49:54.000000000 +0000
@@ -1147,6 +1147,11 @@ static proc_t **procs_refresh (proc_t **
else
PT = openproc(flags);
+ if (PT==NULL) {
+ std_err(strerror(errno));
+ exit(1);
+ }
+
// i) Allocated Chunks: *Existing* table; refresh + reuse
if (!(CHKw(Curwin, Show_THREADS))) {
while (curmax < savmax) {

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 20 10:51:18 UTC 2011 - werner@suse.de
- Avoid segfault with top when /proc is not readable (bnc#733753)
-------------------------------------------------------------------
Tue Nov 22 16:57:06 UTC 2011 - werner@suse.de

View File

@ -79,6 +79,7 @@ Patch40: procps-3.2.8-read-sysctls-also-from-boot-sysctl.conf-kernelversi
Patch41: procps-3.2.7-petabytes.patch
Patch42: procps-3.2.7-large_pcpu.patch
Patch43: procps-3.2.8-tinfo.dif
Patch44: procps-3.2.8-procfs-no-perm.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -150,6 +151,7 @@ Authors:
%patch41 -p1
%patch42 -p1
%patch43
%patch44 -p1
%build
make %{?_smp_mflags} CFLAGS="-Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS -pipe" \