Bug in ps -f

Paul De Bra debra at alice.UUCP
Fri Oct 21 05:51:39 AEST 1988


In article <533 at levels.sait.edu.au> ccdn at levels.sait.edu.au (DAVID NEWALL) writes:
>I have discovered a bug in System V Unixes.  Under certain circumstances,
>ps -f displays "junk" in the login name field.  This bug exists on our NCR
>...
>        $ ps -f
>            UID   PID  PPID  C           TTY  TIME COMMAND
>        user1234Auser2345Buser3456 14165     1  2 15:54:52   05  0:03 sh
>        user1234Auser2345Buser3456 14166 14165  0 15:54:57   05  0:00 ps -f
>

As far as I know this bug extremely old. The reason some programs show this
bug is that the internal representation of user names is done with an
8-character array. This means that usernames consisting of 8 characters are
not 0-terminated.

We worked around the problem by not allowing login names of more than 7
characters on any of our systems.

Paul.
-- 
-------------------------------------------------------------------------
|debra at research.att.com   | uunet!research!debra     | att!grumpy!debra |
-------------------------------------------------------------------------



More information about the Comp.bugs.sys5 mailing list