ls -l on Android device
Mike Frysinger
vapier at gentoo.org
Fri Jan 8 05:48:14 UTC 2010
On Friday 08 January 2010 00:19:39 Tom Spear wrote:
> On Thu, Jan 7, 2010 at 11:11 PM, Mike Frysinger wrote:
> > On Thursday 07 January 2010 23:24:14 Tom Spear wrote:
> >> more importantly, no /etc, so there is no passwd file for performing uid
> >> to user name mappings etc.
> >
> > busybox doesnt query any /etc/ file directly so it doesnt care (ignoring
> > the loginutils that manage the files). that is up to the C library to
> > manage.
>
> Unless I'm missing something, this comment in procps/ps.c says it does
> care about passwd:
>
> /* TODO: get_cached_username() returns numeric string if
> * user has no passwd record, we will display it
> * left-justified here; too long usernames are shown
> * as _right-justified_ IDs. Is it worth fixing? */
>
> What did I miss?
a "passwd record" does not mean it needs /etc/passwd. read the busybox code
and you'll see that it does not parse /etc/passwd directly in any way -- it's
using the standard functions C library functions to get records. if you dig
far enough, you end up at libbb/bb_pwd.c.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100108/545608da/attachment.pgp>
More information about the busybox
mailing list