ps and username size

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Wed Jan 9 12:01:44 PST 2008


On Tue, 8 Jan 2008, Cristian Ionescu-Idbohrn wrote:

> > > The current svn chops of long usernames to 8 chars.  That may create
> > > confusion if the output from ps is in any way used to identify
> > > process owners.  Users:
> > >
> > >   'longnameA' and 'longnameB' will both be displayed as 'longname'.
> > >
> > > Please consider replacing usernames longer than 8 chars with the
> > > corresponding uids.  That will make them unique in the ps list.
> >
> > Good idea.
>
> Super.  I made an attempt in a previous sent patch to do just that.
> It probably just passed unnoticed :(

Alright.  Let me try again.
Please find attached an idea of a patch that will do just that.
There might be smarter ways to achieve that, but this seems to work too.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ps.c.patch
Type: text/x-diff
Size: 562 bytes
Desc: 
Url : http://busybox.net/lists/busybox/attachments/20080109/633a39ec/attachment.bin 


More information about the busybox mailing list