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..
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"
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
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
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
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