ls -l on Android device

Denys Vlasenko vda.linux at googlemail.com
Fri Jan 8 07:28:14 UTC 2010


On Fri, Jan 8, 2010 at 6:48 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> 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

Well, if you selected

CONFIG_USE_BB_PWD_GRP=y
CONFIG_USE_BB_SHADOW=y

in your .config, then bbox will use internal version of getpwnam() and such.
So, try switching that off.

And anyway, can you post exact command you run, its output, and how it differs
from "standard" command's output?
--
vda


More information about the busybox mailing list