From 1b0e84392ae5d18d2ef032ba5fe892b29b9e6ec1 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Wed, 17 Oct 2001 22:48:43 +0000 Subject: [PATCH] added patch #455932 from SF --- ChangeLog | 1 + src/pstree.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f97cc4..d1fd292 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ Changes in 20.2 (18-OCT-2001) - fuser no longer assume st_dev is 0 for sockets, needed for kernel 2.4.12 and above, Thanks to Alexander Viro for the patch. - Search both IPv4 and IPv6 namespaces. + - Added patch for pstree -u (SF Patch: #455932 ) Changes in 20.1 (31-MAR-2001) ============================= diff --git a/src/pstree.c b/src/pstree.c index b5a427c..a349f94 100644 --- a/src/pstree.c +++ b/src/pstree.c @@ -508,8 +508,9 @@ read_proc (void) if ((file = fopen (path, "r")) != NULL) { empty = 0; - if (fstat (fileno (file), &st) < 0) - { + sprintf (path, "%s/%d", PROC_BASE, pid); + if (stat (path, &st) < 0) + { perror (path); exit (1); } -- 2.40.0