From: Craig Small Date: Wed, 17 Oct 2001 22:48:43 +0000 (+0000) Subject: added patch #455932 from SF X-Git-Tag: psmisc-21~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b0e84392ae5d18d2ef032ba5fe892b29b9e6ec1;p=psmisc added patch #455932 from SF --- 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); }