Re: [PATCH] brctl: Added support for showmacs command

2019-09-15 Thread Bernhard Reutner-Fischer
On 15 September 2019 18:04:49 CEST, Martin Lewis wrote: >Signed-off-by: Martin Lewis >--- >networking/brctl.c | 119 >- > 1 file changed, 100 insertions(+), 19 deletions(-) > >diff --git a/networking/brctl.c b/networking/brctl.c >index 586ca9b..

[PATCH] replace: count_strstr - Handle an edge case where sub is empty

2019-09-15 Thread Martin Lewis
If sub is empty, avoids an infinite loop. Signed-off-by: Martin Lewis --- libbb/replace.c | 4 1 file changed, 4 insertions(+) diff --git a/libbb/replace.c b/libbb/replace.c index a661d96..6183d3e 100644 --- a/libbb/replace.c +++ b/libbb/replace.c @@ -11,14 +11,18 @@ #include "libbb.h"

[PATCH] libbb: Converted safe_read to safe_write format

2019-09-15 Thread Martin Lewis
Changed safe_read to be symmetrical to safe_write, it shall never return EINTR because it calls read multiple times, the error is considered transient. Also, as seen in gnu coreutils, handle an edge case where count is bigger than INT_MAX by truncating it in order to avoid bugs on various linux pl

Re: [PATCH] libbb: Converted safe_read to safe_write format

2019-09-15 Thread Martin Lewis
Noticed just now the problematic indentation. I'll fix it in a second, sorry for the inconvenience. ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

[PATCH] libbb: Converted safe_read to safe_write format

2019-09-15 Thread Martin Lewis
Changed safe_read to be symmetrical to safe_write, it shall never return EINTR because it calls read multiple times, the error is considered transient. Also, as seen in gnu coreutils, handle an edge case where count is bigger than INT_MAX by truncating it in order to avoid bugs on various linux pl

[PATCH] brctl: Added support for showmacs command

2019-09-15 Thread Martin Lewis
Signed-off-by: Martin Lewis --- networking/brctl.c | 119 - 1 file changed, 100 insertions(+), 19 deletions(-) diff --git a/networking/brctl.c b/networking/brctl.c index 586ca9b..35771a5 100644 --- a/networking/brctl.c +++ b/networking/brctl.c