Re: [PATCH 7/7] libbb.h: Handle missing HOST_NAME_MAX; ensure MAXFOOLEN agrees with FOO_MAX

2017-10-07 Thread Kang-Che Sung
On Sun, Oct 8, 2017 at 1:53 AM, James Clarke wrote: > Signed-off-by: James Clarke > --- > include/libbb.h | 19 ++- > 1 file changed, 18 insertions(+), 1 deletion(-) > > diff --git a/include/libbb.h b/include/libbb.h > index

Re: [PATCH 4/7] xfuncs: Handle missing non-POSIX termios constants

2017-10-07 Thread Kang-Che Sung
On Sun, Oct 8, 2017 at 1:53 AM, James Clarke wrote: > diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c > index 9cbfb2836..95dac656a 100644 > --- a/libbb/xfuncs.c > +++ b/libbb/xfuncs.c > @@ -22,6 +22,16 @@ > */ > #include "libbb.h" > > +#ifndef IMAXBEL > +# define IMAXBEL 0 >

Fwd: lists.debian.org: kill debian-ports mailing list

2017-10-07 Thread Héctor Orón Martínez
JFYI Hopefully this is latest spam we get through this pseudo mailing list, please follow-up on #877951 if you support the idea. Best regards -- Forwarded message -- From: Héctor Orón Martínez Date: 2017-10-07 23:15 GMT+02:00 Subject: lists.debian.org: kill

[PATCH 7/7] libbb.h: Handle missing HOST_NAME_MAX; ensure MAXFOOLEN agrees with FOO_MAX

2017-10-07 Thread James Clarke
Signed-off-by: James Clarke --- include/libbb.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/libbb.h b/include/libbb.h index daccf154a..56f4f4cb3 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -181,7 +181,24 @@ extern

[PATCH 0/7] Hurd and GNU/kFreeBSD portability fixes

2017-10-07 Thread James Clarke
Hi, With this patch series, busybox once again builds on the Hurd and GNU/kFreeBSD, and it also fixes one bug with "grep -cr" and symlinks to directories found as a result of FreeBSD's handling of reading from directories: $ ls -lR grep.testdir grep.testdir: total 4 drwxr-xr-x 2

[PATCH 1/7] blkdiscard: Only build on Linux

2017-10-07 Thread James Clarke
Signed-off-by: James Clarke --- util-linux/blkdiscard.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util-linux/blkdiscard.c b/util-linux/blkdiscard.c index 5863f0aab..e4902e5b5 100644 --- a/util-linux/blkdiscard.c +++ b/util-linux/blkdiscard.c @@ -8,6 +8,7 @@

[PATCH 4/7] xfuncs: Handle missing non-POSIX termios constants

2017-10-07 Thread James Clarke
Signed-off-by: James Clarke --- libbb/xfuncs.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 9cbfb2836..95dac656a 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -22,6 +22,16 @@ */ #include "libbb.h" +#ifndef

[PATCH 6/7] grep: Skip grepping symlinks to directories

2017-10-07 Thread James Clarke
When grep is passed -r, recursive_action will treat any symlinks to directories not in the root as normal files, since it lstat's them and is therefore told they are not directories. However, file_action_grep will still try to fopen and read from them to see whether they match, which varies in

[PATCH 5/7] {udp_io,traceroute}: Standardise IPv6 PKTINFO handling to be portable

2017-10-07 Thread James Clarke
The current standard (RFC 3542) is for IPV6_RECVPKTINFO to be given to setsockopt, and IPV6_PKTINFO to be used as the packet type. Previously, RFC 2292 required IPV6_PKTINFO to be used for both, but RFC 3542 re-purposed IPV6_PKTINFO when given to setsockopt. The special Linux-specific

[PATCH 3/7] networking: Fall back on IPPROTO_RAW when SOL_RAW is not defined

2017-10-07 Thread James Clarke
Signed-off-by: James Clarke --- networking/ping.c | 8 networking/traceroute.c | 8 2 files changed, 16 insertions(+) diff --git a/networking/ping.c b/networking/ping.c index 774f8f3e0..d1d59d545 100644 --- a/networking/ping.c +++ b/networking/ping.c

[PATCH 2/7] df: Use statvfs instead of non-standard statfs

2017-10-07 Thread James Clarke
Platforms differ on what their implementations of statfs include. Importantly, FreeBSD's does not include a f_frsize member inside struct statfs. However, statvfs is specified by POSIX and includes everything we need, so we can just use that instead. Signed-off-by: James Clarke