Re: [PATCH] find: implement -empty

2019-09-12 Thread walter harms
Am 11.09.2019 17:25, schrieb Aaro Koskinen: > Hi, > > On Wed, Sep 11, 2019 at 09:46:45AM +0200, walter harms wrote: >> is seems possible to simply that a bit (untested version): >> >> if ( ! S_ISDIR(statbuf->st_mode)) >>return S_ISREG(statbuf->st_mode) && !statbuf->st_size; >> >> DIR *d

Re: [PATCH] find: implement -empty

2019-09-12 Thread Denys Vlasenko
On Tue, Sep 10, 2019 at 10:06 PM Aaro Koskinen wrote: > Implement -empty. > > Signed-off-by: Aaro Koskinen > --- > findutils/find.c | 45 + > 1 file changed, 45 insertions(+) > > diff --git a/findutils/find.c b/findutils/find.c > index d6679bd08..3e4ae

Re: [PATCH] find: implement -empty

2019-09-12 Thread Denys Vlasenko
Applied, thanks On Tue, Sep 10, 2019 at 10:06 PM Aaro Koskinen wrote: > > Implement -empty. > > Signed-off-by: Aaro Koskinen > --- > findutils/find.c | 45 + > 1 file changed, 45 insertions(+) > > diff --git a/findutils/find.c b/findutils/find.c > ind

Re: [PATCH] examples/udhcp/simple.script: print the filename actually changed

2019-09-12 Thread Denys Vlasenko
Applied, thanks On Tue, Aug 13, 2019 at 5:42 PM Rolf Eike Beer wrote: > > Signed-off-by: Rolf Eike Beer > --- > examples/udhcp/simple.script | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script > index 53974e6d6..61

Re: [PATCH] wget: increase redirections limit

2019-09-12 Thread Denys Vlasenko
Applied, thanks On Thu, Aug 29, 2019 at 2:04 PM David Demelier wrote: > > Some hosting services like sourceforge perform a lot of relocations > before actually serving the file. Example of current limitation: > > busybox wget > http://sourceforge.net/projects/fluxbox/files/fluxbox/1.3.7/flux

Re: [PATCH] bc: Add 'U' suffix in UINT_MAX preprocessor check

2019-09-12 Thread Denys Vlasenko
Applied, thanks On Thu, Sep 5, 2019 at 5:40 PM Kang-Che Sung wrote: > > Without the 'U' unsigned suffix, gcc will throw a "integer constant is > so large that it is unsigned" warning. > --- > miscutils/bc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/miscutils/bc

SIGPIPE and tee

2019-09-12 Thread Sam Liddicott
In https://git.busybox.net/busybox/tree/coreutils/tee.c we read: /* gnu tee ignores SIGPIPE in case one of the output files is a pipe * that doesn't consume all its input. Good idea... */ signal(SIGPIPE, SIG_IGN); Sadly, this breaks POSIX SIGPIPE behaviour with respect to q