[Toybox] [PATCH] pending/useradd: unbreak build

2014-06-09 Thread Isaac Dunham
When useradd started using xfork(), the conditional in else if (pid > 0) became unnecessary, since else means pid is nonzero and xfork makes it non-negative. However, the "if" was not deleted. -- Thanks, Isaac Dunham diff --git a/toys/pending/useradd.c b/toys/pending/useradd.c index 99e2530..0a79

Re: [Toybox] compiling toybox

2014-06-09 Thread Isaac Dunham
On Mon, Jun 09, 2014 at 08:35:35PM -0400, stephen Turner wrote: > Im using a current arch linux which I will get you the versions for > tomorrow when I have access to the system again. I had problems compiling OK, GCC 4.8.?/4.9, latest bash, latest GNU sed, etc... The problem would seem to be tha

Re: [Toybox] compiling toybox

2014-06-09 Thread Rob Landley
On 06/09/14 19:35, stephen Turner wrote: > Im using a current arch linux which I will get you the versions for > tomorrow when I have access to the system again. I had problems > compiling it with glibc so I decided to try a musl cross compile. > Grabbed the current stable 1.1.4? I will double chec

Re: [Toybox] compiling toybox

2014-06-09 Thread Rob Landley
On 06/09/14 15:42, stephen Turner wrote: > I was compiling toybox using musl and received some errors that i > believe are related to the code of toybox? I'm not sure if this is > something you want to address right now but just in case it is here is > the output i receive. please let me know if t

Re: [Toybox] compiling toybox

2014-06-09 Thread stephen Turner
Im using a current arch linux which I will get you the versions for tomorrow when I have access to the system again. I had problems compiling it with glibc so I decided to try a musl cross compile. Grabbed the current stable 1.1.4? I will double check that, and compiled and installed. After which I

Re: [Toybox] compiling toybox

2014-06-09 Thread Isaac Dunham
On Mon, Jun 09, 2014 at 04:42:03PM -0400, stephen Turner wrote: > I was compiling toybox using musl and received some errors that i believe > are related to the code of toybox? I'm not sure if this is something you > want to address right now but just in case it is here is the output i > receive.

[Toybox] compiling toybox

2014-06-09 Thread stephen Turner
I was compiling toybox using musl and received some errors that i believe are related to the code of toybox? I'm not sure if this is something you want to address right now but just in case it is here is the output i receive. please let me know if there is anything you need/want outside of this er

Re: [Toybox] features

2014-06-09 Thread Daniel Cegiełka
2014-06-09 14:57 GMT+02:00 Rob Landley : > On 06/08/14 20:16, Isaac Dunham wrote: >> Yes. It's >> http://wiki.musl-libc.org/wiki/Alternative_libraries#Crypto >> (and axtls is mentioned there). > wiki: "dropbear replacement for OpenSSH. does not implement ECDSA yet." ??? https://secure.ucc.asn.a

Re: [Toybox] features

2014-06-09 Thread Rob Landley
On 06/08/14 20:16, Isaac Dunham wrote: > On Sun, Jun 08, 2014 at 11:51:04AM -0500, Rob Landley wrote: >> I've dug into libtomcrypt and find it incomprehensible, but it's really >> the libtommath part I'm having problems with. I need to write my own big >> math library for bc, and the darn spec says

[Toybox] internationalization with sprintf("%.123s")

2014-06-09 Thread Rob Landley
So this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=6530 Brought to my attention the fact that %s length limiters are _characters_, not bytes. The default locale is C so it's equivalent up until you call setlocale(), and then suddenly there's heap and stack overflow possibilities all ove