Re: [Toybox] [PATCH] id can work without /etc/{passwd,groups}

2015-03-19 Thread enh
i'm guessing you didn't build this against bionic? bionic never reads /etc/passwd because there isn't one on Android. try again with bionic! On Thu, Mar 19, 2015 at 10:40 PM, hhm heehoo...@gmail.com wrote: dunno :-S I tested this on a nexus 5 with android 5.1. It errors out with id: bad uid

Re: [Toybox] Did I mention the release?

2015-03-19 Thread enh
On Thu, Mar 19, 2015 at 6:52 PM, Rob Landley r...@landley.net wrote: On 03/15/2015 08:47 PM, enh wrote: this is _slightly_ misleading. you really want to look at the second list in that file. the first list tells you what's built into our toybox binary. the second list tells you what gets

Re: [Toybox] Did I mention the release?

2015-03-19 Thread David Seikel
On Thu, 19 Mar 2015 20:52:46 -0500 Rob Landley r...@landley.net wrote: The other thing is that top does terminal control similar to less. And watch should do the same, and ps does a _little_ of the same. (They query the terminal size and truncate output at screen width and screen height.) So

[Toybox] [PATCH] id help username parameter

2015-03-19 Thread hhm
--- a/toys/posix/id.c +++ b/toys/posix/id.c @@ -15,7 +15,7 @@ config ID bool id default y help -usage: id [-nGgru] +usage: id [-nGgru] [user] Print user and group ID.

[Toybox] [PATCH] id can work without /etc/{passwd,groups}

2015-03-19 Thread hhm
The toybox implementation of `id` shouldn't error out when no /etc/passwd or /etc/group is present (other implementations, for example busybox, didn't error when tested). Currently, doing `id -u` (or `id -g` etc.) will error out, even though no data from the above files is necessary; all the

Re: [Toybox] [PATCH] id can work without /etc/{passwd,groups}

2015-03-19 Thread enh
the version of toybox checked in to AOSP works just fine already: $ adb shell toybox id -u 0 $ adb shell toybox id -g 0 $ adb unroot restarting adbd as non root $ adb shell toybox id -u 2000 $ adb shell toybox id -g 2000 $ On Thu, Mar 19, 2015 at 7:08 PM, hhm heehoo...@gmail.com wrote: The

Re: [Toybox] [PATCH] id help username parameter

2015-03-19 Thread enh
+1, though i think the style is: diff --git a/toys/posix/id.c b/toys/posix/id.c index 353aa04..2dfc91d 100644 --- a/toys/posix/id.c +++ b/toys/posix/id.c @@ -15,9 +15,9 @@ config ID bool id default y help -usage: id [-nGgru] +usage: id [-nGgru] [USER] -Print user and group

Re: [Toybox] [PATCH] head -X

2015-03-19 Thread Rob Landley
On 03/17/2015 02:54 PM, Isaac Dunham wrote: On Mon, Mar 16, 2015 at 09:16:00PM -0700, enh wrote: Allow head -X as well as head -n X. diff --git a/toys/posix/head.c b/toys/posix/head.c index e8517d4..608b93a 100644 --- a/toys/posix/head.c +++ b/toys/posix/head.c @@ -4,7 +4,7 @@ * *

[Toybox] [PATCH] fix top --help

2015-03-19 Thread enh
Looks like you can't have a blank line between help and the start of the help text. Hopefully this won't cause Rob to disappear while he rewrites the scripts again, but even if it does, this makes top --help work until then :-) index 700baba..49c1f68 100644 --- a/toys/pending/top.c +++

Re: [Toybox] PATCH telnetd

2015-03-19 Thread Rob Landley
On 03/18/2015 08:32 PM, 김혜진 wrote: Hi. My real situation is like this : 1. running telnetd on embedded board. 2. running client on windows/linux 3. client works something on connection such as getting big file with tftp or testing system with automated script for a long time. 4. client