[Toybox] [PATCH] SIGHUP to init.c triggers inittab reload

2020-09-01 Thread Chris Sarra via Toybox
--- toys/pending/init.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/toys/pending/init.c b/toys/pending/init.c index 64b61481..b147911f 100644 --- a/toys/pending/init.c +++ b/toys/pending/init.c @@ -188,6 +188,25 @@ static void

Re: [Toybox] [PATCH] logger.c was failing to properly log local0-local6 facilities, due to a string parsing error. This patch enables proper local facility handling.

2020-09-09 Thread Chris Sarra via Toybox
Just ran it through a short suite of tests on my end and all looks good here. Thanks for the cleanup! +Chris On Wed, Sep 9, 2020 at 12:57 AM Rob Landley wrote: > > > On 9/9/20 12:30 AM, Rob Landley wrote: > > On 9/8/20 2:16 PM, Chris Sarra via Toybox wrote: > >> --- &

[Toybox] [PATCH] Add ipv6 support to wget.c

2020-09-09 Thread Chris Sarra via Toybox
--- toys/pending/wget.c | 48 + 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/toys/pending/wget.c b/toys/pending/wget.c index 75fad3f4..5c85889a 100644 --- a/toys/pending/wget.c +++ b/toys/pending/wget.c @@ -25,11 +25,11 @@ GLOBALS(

Re: [Toybox] [PATCH] SIGHUP to init.c triggers inittab reload

2020-09-08 Thread Chris Sarra via Toybox
Thanks Rob, and no worries- I've been able to use the init.c for a few months now, with only that patch. So hopefully cleanup won't be so bad! :) +Chris On Tue, Sep 1, 2020 at 11:16 PM Rob Landley wrote: > On 9/1/20 9:22 PM, Chris Sarra via Toybox wrote: > > --- > > toys/pend

[Toybox] [PATCH] logger.c was failing to properly log local0-local6 facilities, due to a string parsing error. This patch enables proper local facility handling.

2020-09-08 Thread Chris Sarra via Toybox
--- toys/posix/logger.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toys/posix/logger.c b/toys/posix/logger.c index 3bcfb174..d1cc7291 100644 --- a/toys/posix/logger.c +++ b/toys/posix/logger.c @@ -64,9 +64,10 @@ void logger_main(void) else { *s1++ = len

[Toybox] [PATCH] Add fflush to lib/password; remove print from stty

2020-09-15 Thread Chris Sarra via Toybox
toybox logins were displaying the "password:" prompt after the user entered a password. This patch fixes the issue so the password prompt shows *before* password is entered. --- lib/password.c | 1 + toys/pending/stty.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Toybox] [PATCH] Add ftruncate logic to handle non-regular files

2020-09-15 Thread Chris Sarra via Toybox
ftruncate was failing on device files, leading to whole dd.c failures. This patch allows us to dump device files. --- toys/pending/dd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toys/pending/dd.c b/toys/pending/dd.c index 7de91825..a7b7f5fd 100644 ---

[Toybox] [PATCH] Introducing toys/pending/watchdog.c

2020-08-22 Thread Chris Sarra via Toybox
This patch introduces a simple watchdog implementation for toybox. We send the appropriate ioctls to set the relevant timeouts, and intercept signals to safely shut down if required. --- toys/pending/watchdog.c | 128 1 file changed, 128 insertions(+)

[Toybox] Patch memory leak in tar.c

2020-08-19 Thread Chris Sarra via Toybox
Hi Rob and toybox Users, I'm a newcomer to this email list, so if I'm using incorrect patch formats or should be emailing in a different way, please let me know. In looking at tar.c, I noticed that, while parsing files, for the symlink case there are two calls to xreadlink(). Both calls allocate

Re: [Toybox] [PATCH] Introducing toys/pending/watchdog.c

2020-08-24 Thread Chris Sarra via Toybox
+Chris On Mon, Aug 24, 2020 at 9:56 AM enh wrote: > > > On Sun, Aug 23, 2020 at 11:59 PM Rob Landley wrote: > >> On 8/22/20 3:05 PM, enh via Toybox wrote: >> > On Sat, Aug 22, 2020 at 11:22 AM Chris Sarra via Toybox >> > mailto:toybox@lists.landley.n

Re: [Toybox] [PATCH] Add ftruncate logic to handle non-regular files

2020-09-23 Thread Chris Sarra via Toybox
, Sep 23, 2020 at 4:38 AM Rob Landley wrote: > On 9/15/20 12:10 PM, Chris Sarra via Toybox wrote: > > -if (trunc && ftruncate(TT.out.fd, bs)) perror_exit("ftruncate"); > > +if (trunc && ftruncate(TT.out.fd, bs)) { > > + struct stat st; &

Re: [Toybox] [PATCH] Add fflush to lib/password; remove print from stty

2020-09-16 Thread Chris Sarra via Toybox
Hey Rob, I removed that xprintf in stty from our copy a long time ago to get rid of a log we didn't really need, but that change can be ignored if others find it useful. Thanks, +Chris On Wed, Sep 16, 2020 at 1:27 AM Rob Landley wrote: > > > On 9/15/20 11:39 AM, Chris Sarra via Toy