Accepting request 86251 from Base:System
- Fix segfault in pstree, patch by Tetsuo Handa (bnc#718915). (forwarded request 86232 from michal-m) OBS-URL: https://build.opensuse.org/request/show/86251 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/psmisc?expand=0&rev=41
This commit is contained in:
commit
a984b78f26
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 3 10:56:19 UTC 2011 - mmarek@suse.cz
|
||||||
|
|
||||||
|
- Fix segfault in pstree, patch by Tetsuo Handa (bnc#718915).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 28 10:43:03 UTC 2011 - coolo@suse.com
|
Wed Sep 28 10:43:03 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ Source: http://sourceforge.net/projects/psmisc/files/psmisc/%{name}-%{ve
|
|||||||
Patch0: %name-22.14.dif
|
Patch0: %name-22.14.dif
|
||||||
Patch1: %name-22.12-tigetstr.patch
|
Patch1: %name-22.12-tigetstr.patch
|
||||||
Patch2: %name-22.12-pstree.patch
|
Patch2: %name-22.12-pstree.patch
|
||||||
|
Patch3: pstree-segfault.patch
|
||||||
Patch42: %name-22.14-22.15.patch
|
Patch42: %name-22.14-22.15.patch
|
||||||
Patch43: %name-22.15-timeout.patch
|
Patch43: %name-22.15-timeout.patch
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ processes that are using specified files or filesystems.
|
|||||||
%patch1 -p0 -b .tigetstr
|
%patch1 -p0 -b .tigetstr
|
||||||
%patch2 -p0 -b .pstree
|
%patch2 -p0 -b .pstree
|
||||||
%patch0 -p0 -b .0
|
%patch0 -p0 -b .0
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
19
pstree-segfault.patch
Normal file
19
pstree-segfault.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
From: Tetsuo Handa <from-suse@I-love.SAKURA.ne.jp>
|
||||||
|
|
||||||
|
See bnc#718915#c1
|
||||||
|
|
||||||
|
---
|
||||||
|
src/pstree.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- psmisc-22.14.orig/src/pstree.c
|
||||||
|
+++ psmisc-22.14/src/pstree.c
|
||||||
|
@@ -70,7 +70,7 @@ extern const char *__progname;
|
||||||
|
#define VT_HD "w"
|
||||||
|
|
||||||
|
typedef struct _proc {
|
||||||
|
- char comm[COMM_LEN + 1];
|
||||||
|
+ char comm[COMM_LEN + 2 + 1]; /* add another 2 for thread brackets */
|
||||||
|
char **argv; /* only used : argv[0] is 1st arg; undef if argc < 1 */
|
||||||
|
int argc; /* with -a : number of arguments, -1 if swapped */
|
||||||
|
pid_t pid;
|
Loading…
Reference in New Issue
Block a user