[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

[Toybox] (no subject)

2013-09-15 Thread hhm
Found 2 bugs in `od`, not very familiar with the code so just reporting them: 1. -t integer-type0 does not work correctly (loops infinitely while printing 0) 2. -J does not seem to have an effect (although it looks like there is some code which does reference/use it)

Re: [Toybox] two bugs in od

2013-09-15 Thread hhm
For 1:, I meant that it should error, not work with zero-width unicode joiner characters or something similar :-). For 2:, yes, I meant -j. On 9/15/13, Isaac ibid...@gmail.com wrote: On Sun, Sep 15, 2013 at 05:23:09AM -0400, hhm wrote: Found 2 bugs in `od`, not very familiar with the code so

[Toybox] [PATCH] add pid namespaces flag to unshare

2013-08-27 Thread hhm
this patch adds the ability to work with PID namespaces with the unshare utility. Following, for reference... http://man7.org/linux/man-pages/man1/unshare.1.html http://man7.org/linux/man-pages/man2/clone.2.html http://man7.org/linux/man-pages/man2/unshare.2.html P.S. Another useful tool is

Re: [Toybox] [PATCH] add pid namespaces flag to unshare

2013-08-27 Thread hhm
User namespaces too. Should have just put this all into one patch... sorry :-) By the way; should any non- CLONE_NEW* unshare(2) http://man7.org/linux/man-pages/man2/unshare.2.html flags be added too? util-linux does not add them, but they could be useful, if I understand properly, however I am

Re: [Toybox] [PATCH] fallocate

2013-08-11 Thread hhm
/13, Felix Janda felix.ja...@posteo.de wrote: hhm wrote: Here is a request for a new toy: fallocate This would be similar to the readlink toy; a wrapper for a syscall. A similar effect can be procured by making a sparse file using truncate or a zeroed file by using dd and /dev/zero as input