Re: ps shows wrong command line

Hermelito Go (lito@calitan.msuiit.edu.ph)
Thu, 28 Sep 1995 14:51:49 +0800 (GMT+0800)


On Wed, 27 Sep 1995, Marc Lehmann wrote:

>
> Kernel 1.3.27, 28, 29 (and possibly others)
>
> Sometimes a "ps" gives me output similar to this
> PID TTY STAT TIME COMMAND
> 59 v06 SW 0:00 (agetty)
> 61 s03 SW 0:00 (agetty)ogin)
> 83 pp0 SW 0:01 (bash)
> 97 pp1 S 0:00 -bash
> 170 pp2 SW 0:00 (bash)
> 1907 pp0 S 0:00 (mkall)ger)
> 1908 pp0 S 0:00 (mkall)
> 2158 pp1 D 0:01 du -s elf
> 2177 pp3 R 0:00 ps
>
> i.e. some commands (swapped out ones) show up as
> "(agetty)ogin)" instead of the correct "(agetty)" probably somewhere
> the trailing \0 is lost... YES, its a security risk (grin)..
> no, but its very unpleasant.
>

I also get it with my 1.3.0. kernel.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Hermelito O. Go <mailto:lito@msuiit.edu.ph> ~
~ Computer Center InnovaTe ~
~ MSU-Iligan Institute of Technology or ~
~ Tibanga, 9200 Iligan City, Philippines perish! ~
~ Tel.(63) 516-151, 881-4050 loc. 101 FAX 881-4060 ~
~~~~~~~~~~~~~~~~~~~~| http://www.msuiit.edu.ph/~lito |~~~~~~~~~~~~~~~~~~~