lkml.org 
[lkml]   [1996]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectpatch for ps -t segfault
For all those who responded saying "me too." to the question about ps -t 
(from procps-0.99a) causing a segfault. Thanks.

Here is a patch that seems to fix this on my system.

--- ps.c.orig Wed Mar 20 12:24:11 1996
+++ ps.c Wed Mar 20 12:21:15 1996
@@ -244,7 +244,7 @@
fprintf(stderr, "the name `%s' is not a tty\n", CL_ctty);
exit(1);
}
- pflags = (pflags | PROC_TTY) & ~PROC_ANYTTY;
+ pflags = (pflags | PROC_TTY) & ~PROC_ANYTTY & ~PROC_UID;
args = tty;
}
show_procs(cmdspc, do_header, pflags, args, N);
___
William E. Roadcap mailto://roadcapw@cfw.com
TITUS Software ftp://titus.cfw.com/pub
Waynesboro, Va (USA) http://www.cfw.com/~roadcapw





\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.039 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site