AW: Re busybox tar hidden filename exploit

2024-07-02 Thread Walter Harms
erstag, 27. Juni 2024 20:31:24 An: Walter Harms; busybox@busybox.net Betreff: Re: Re busybox tar hidden filename exploit Looking at header_list() and header_verbose_list(). Fixing it _properly_ would include some awareness of the current charset and terminal type I think. At the very least I gu

AW: Re busybox tar hidden filename exploit

2024-06-24 Thread Walter Harms
Hi Ian, thx for the report. yes, i did not notice (and yes i check tars with -vt before installing). what do you expect now ? Do you have patch ? Do you want to start a discussion about possible solution ? (I use a strict ASCII-only policy in my projects to catch other traps also). What does gnut

AW: Changing HOME ENV-Variable

2024-05-06 Thread Walter Harms
Hello, i am not sure that i understand what problem you want to solve but HOME is usualy set with login and depends on /etc/passwd. NTL it is a "normal" env-var and can be overwritten before you start the install. (if that is your problem.) hope that helps ___

AW: [PATCH v2 8/9] loop:refactor: extract subfunction set_loop_dev()

2022-11-18 Thread Walter Harms
i am wondering, maybe question for the maintainer. would it hurt to open it O_RDONLY in the first place ? cm2c Von: busybox im Auftrag von Xiaoming Ni Gesendet: Freitag, 18. November 2022 13:14:47 An: busybox@busybox.net; vda.li...@googlemail.com; c...@

AW: [PATCH v2 7/9] loop:refactor: Extract subfunction do_stat_and_mknod()

2022-11-18 Thread Walter Harms
again try to safe indent level if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) return 0; jm2c Von: busybox im Auftrag von Xiaoming Ni Gesendet: Freitag, 18. November 2022 13:14:46 An: busybox@busybox.net; vda.li...@googlemail.com; c...@gmx

AW: [PATCH v2 5/9] loop:refactor: extract subfunction set_loop_configure()

2022-11-18 Thread Walter Harms
A little tweak make it more readable (i hope) putting if (rc) direkt behind rc = ioctl(lfd, BB_LOOP_SET_STATUS, &loopinfo); if (rc == 0) return lfd; // no need to check rc again if ( (loopinfo.lo_flags & BB_LO_FLAGS_AUTOCLEAR)) { // try again without BB_LO_FLAGS_AUTOCLEAR // does

AW: [PATCH v2 4/9] loop:refactor: extract subfunction set_loop_info()

2022-11-18 Thread Walter Harms
on other minor if (rc && errno == ENXIO) turn it on its head safes one indent level if ( !rc || errno != ENXIO ) return -1; // failed to get loopinfo jm2c Von: busybox im Auftrag von Xiaoming Ni Gesendet: Freitag, 18. November 2022 13:14:43 An:

AW: [PATCH 2/9] loop:refactor: extract subfunction get_next_free_loop()

2022-11-18 Thread Walter Harms
hi, just a minor comment. do not use i as name for return value, most ppl use it as loop counter, triggers the wrong circuits in the brain. (rule of least surprise). just name it err or what you like, and please untangle the if() if (err>=0) return if (err==-2) return return -1 just my 2

AW: BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM

2021-07-08 Thread Walter Harms
Hi, you are sending to the wrong list, please send to buildroot. re, wh Von: busybox im Auftrag von Ivan Riabtsov Gesendet: Donnerstag, 8. Juli 2021 13:55:21 An: busybox@busybox.net Betreff: BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM WARNUNG: Diese E-Mail k

AW: [git commit] taskset: implement -a

2021-06-20 Thread Walter Harms
Would using xasprintf() an option here ? I did not try, but the dn[]+sprintf combo requires that both strings are always the same ... jm2c, re, wh ___ Von: busybox im Auftrag von Bernhard Reutner-Fischer Gesendet: Sonntag, 20. Juni 2021 10:18 An: busybox@b

AW: Cannot build busybox for Android (Android ndk (x86-64))

2021-03-23 Thread Walter Harms
the version 2.24 seems old, there are several comparable bug reports. Current version seems 2.35 http://metadata.ftp-master.debian.org/changelogs/main/b/binutils/unstable_changelog Von: busybox im Auftrag von Xabier Oneca -- xOneca Gesendet: Dienstag, 2

AW: [PATCH 1/1] libbb: fix parse_duration_str with LOCALE_SUPPORT

2021-03-22 Thread Walter Harms
hi, does setlocale("") reset to the last used locale ? I would expect something like: old=getlocale() setlocale("C") strtod() setlocale(old); note: i had the same problems years ago and used strtod_l() with a static stored locale_t. re, wh Von: busybo

AW: [PATCH 1/2] libbb: add xopen_fd() helper

2021-03-01 Thread Walter Harms
nice observation, but IMHO the name is a bit misleading, i6 should be more generic like: xopen_as() ym2c, re, wh Von: busybox im Auftrag von Rasmus Villemoes Gesendet: Montag, 1. März 2021 17:03:56 An: busybox@busybox.net Betreff: [PATCH 1/2] libbb: ad

AW: AW: Cyrillic support in busybox-ash

2021-02-08 Thread Walter Harms
, wh Von: Björn Bidar Gesendet: Montag, 8. Februar 2021 14:27:04 An: busybox@busybox.net; Walter Harms Cc: Simonas Leleiva Betreff: Re: AW: Cyrillic support in busybox-ash Hey Walter, >it is a question of the output device. >How do you access ? via

AW: Question on udhcpc script

2021-02-06 Thread Walter Harms
aeh, yes ... important question: did someone fix (and tested) this issue ? re, wh Von: Bernhard Reutner-Fischer Gesendet: Samstag, 6. Februar 2021 11:26:42 An: busybox@busybox.net; Walter Harms; Bhattiprolu RaviKumar; busybox@busybox.net Betreff: Re

AW: Cyrillic support in busybox-ash

2021-02-01 Thread Walter Harms
hi Björn, it is a question of the output device. How do you access ? via xterm+ssh or do you have vt100 attached via serial ? Von: busybox im Auftrag von Björn Bidar Gesendet: Montag, 1. Februar 2021 13:51:21 An: busybox@busybox.net Cc: Simonas Leleiva Be

AW: Question on udhcpc script

2021-02-01 Thread Walter Harms
hello, indeed that looks wrong: it would be easy to invert but i have no setup to test. can you do that ? just change: if [ -z "$(ip -6 route list | grep default)" ]; then into if ! [ -z "$(ip -6 route list | grep default)" ]; then (note the ! here) re, wh

AW: AW: Why doesn't "cat a b > foo" work?

2021-01-20 Thread Walter Harms
oo" work? On 2021-01-20, Walter Harms wrote: > can you give a hint what kernel version is problematic? NB: prior to 2.6.33, sendfile() could only be used with a socket as the destination. I'm seeing the failure with 2.6.33.7 In 2.6.33.7, when used with a normal file as the output,

AW: Why doesn't "cat a b > foo" work?

2021-01-20 Thread Walter Harms
can you give a hint what kernel version is problematic ? Von: busybox im Auftrag von Grant Edwards Gesendet: Mittwoch, 20. Januar 2021 15:43:38 An: busybox@busybox.net Betreff: Re: Why doesn't "cat a b > foo" work? On 2021-01-20, Christophe Leroy wrote:

AW: Why doesn't "cat a b > foo" work?

2021-01-20 Thread Walter Harms
i have test with BusyBox v1.31.1 $cat test.sh echo abcdefghijk > a echo 12345 > b cat a b cat a b > bar cat bar /bin/ash test.sh abcdefghijk 12345 abcdefghijk 12345 same when done manually, hope that helps Von: busybox im Auftrag von Christophe Leroy

AW: [bug] dd piped input truncates ~1% of values to %4096 on multi-core systems

2020-11-30 Thread Walter Harms
start (and easy done). re, wh Von: John Thomson Gesendet: Montag, 30. November 2020 10:00 An: Walter Harms; busybox@busybox.net Betreff: Re: [bug] dd piped input truncates ~1% of values to %4096 on multi-core systems On Mon, 30 Nov 2020, at 08:39, Walter H

AW: [bug] dd piped input truncates ~1% of values to %4096 on multi-core systems

2020-11-30 Thread Walter Harms
Hi, did you play with the buffering (man stdbuf) ? I suspect the kernel has a more aggressive buffering these days. In one project i had to add fflush() to make sure that i really get all data. I never found a good explanation. Von: busybox im Auftrag von

AW: [PATCH 7/8] mdev: add SIGHUP handler to reload configuration

2020-11-23 Thread Walter Harms
Maybe it is bloat, NTL it es expected behavior as other unix daemons do it this way. IMHO this could be a made into an optional feature. Von: busybox im Auftrag von Denys Vlasenko Gesendet: Sonntag, 22. November 2020 16:24:38 An: Jan Klötzke Cc: busybox

AW: [PATCH] ash: Load $ENV file also if $SSH_CLIENT/SSH2_CLIENT is preset in env, reformat

2020-11-02 Thread Walter Harms
i am sorry i am not an expert in bash booting behavior. Would you mind to drop a few words what bash does in such cases ? Von: busybox im Auftrag von Björn Bidar Gesendet: Montag, 2. November 2020 11:16:32 An: busybox@busybox.net Betreff: [PATCH] ash: Loa

AW: Enableing Debug symbols in busybox

2020-10-30 Thread Walter Harms
i do not think that this is intended. Last time i used it i had to remove -Os to make it debugable. Mixing Optimization and debugging is generally a bad idea. Von: busybox im Auftrag von Björn Bidar Gesendet: Donnerstag, 29. Oktober 2020 14:58:32 An: b

AW: [PATCHv2] hwclock: use settimeofday syscall directly

2020-08-31 Thread Walter Harms
maybe its a bit late but ... doing syscall() is always last resort, IMHO it would be better to separate this into a bb_set_tod() and put all the strings here ... and replace it when the libc guys have a single standard. jm2c, re, wh Von: busybox [busybox

AW: [PATCH 2/4] httpd: Don't add Date header to response

2020-08-31 Thread Walter Harms
> Why wasn't ntp available for them? How often does this happen in the wild? this can happen when you have a remote station with temporally no reception. E.G. our station have a sanity check for the time and will not start if the date is not set manually. jm2c ___

AW: BusyBox 1.30.1 fstrim did not take effect

2020-06-09 Thread Walter Harms
fstrim check first with mount (or df or ..) what the mountpoints in your system are. Von: busybox im Auftrag von Tang Jiye Gesendet: Dienstag, 9. Juni 2020 04:40:24 An: busybox@busybox.net Betreff: BusyBox 1.30.1 fstrim did not take effect Hi, I am us

AW: How to use function lbb_main of the libbusybox.so to a C program

2020-05-17 Thread Walter Harms
Hello, i am not sure that i understand your idea. you think to use libbusybox as a kind of compiler ? note: under normal condition this is not very effective as it is cheaper to write a simple c programm that does exactly what you want. Von: busybox im Auf

AW: GPL exemption for container images

2020-05-15 Thread Walter Harms
for my understanding busybox is GPL V2 https://busybox.net/license.html there are no execeptions mentioned on the page. re, wh Von: busybox im Auftrag von Florian Weimer Gesendet: Donnerstag, 14. Mai 2020 17:02:10 An: busybox@busybox.net Betreff: GPL e

AW: Set time from gpsd

2020-04-23 Thread Walter Harms
Sorry i did not notice nobody answered: according to my notebook: ntp.conf server 127.127.28.0 minpoll 4 fudge 127.127.28.0 time1 0.183 refid NMEA server 127.127.28.1 minpoll 4 prefer fudge 127.127.28.1 refid PPS ntpq -p remote refid st t when poll reach delay offset jit

AW: [PATCH 4/7] udhcpc: Store hardware address length and type

2020-04-17 Thread Walter Harms
hi Daniel, nice,work. I was just looking at the change an this caught my attention: would it be possible just to use *client_config instead of sending the all the elements individually ? IMHO that would reduce the stress for the stack and improve readability. if (udhcp_read_interface(client

AW: How to know if a package requires any of busybox binaries during run-time

2020-03-10 Thread Walter Harms
Hello Kartik Thaore, this is the busybox mailing list and we can tell you that busybox should not depend on anything else than libc/libm. the other way around is not possible since we can not know who is using busybox, you need to ask the supplier of you system. re, wh _

AW: [PATCH] nc_bloaty: Code shrink in findline, use memchr instead.

2020-02-04 Thread Walter Harms
Von: busybox im Auftrag von Martin Lewis Gesendet: Dienstag, 4. Februar 2020 00:52 An: busybox@busybox.net Betreff: [PATCH] nc_bloaty: Code shrink in findline, use memchr instead. Signed-off-by: Martin Lewis --- networking/nc_bloaty.c | 21 --

Re: [PATCH] Remove stime() function calls

2019-11-06 Thread walter harms
Your are right but so far i understand the idea here is to have a replacement when a programm demands stime(). YM2C. re, wh Am 06.11.2019 00:25, schrieb Alistair Francis: > stime() has been deprecated in glibc 2.31 and replaced with > clock_settime(). Let's replace the stime() function calls wi

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->s

Re: [PATCH] find: implement -empty

2019-09-11 Thread walter harms
Am 10.09.2019 22:06, schrieb Aaro Koskinen: > 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..3e4ae3266 1

Re: find options -empty and -delete

2019-09-11 Thread walter harms
Am 10.09.2019 21:47, schrieb Tim Tassonis: > On 9/10/19 7:30 PM, walter harms wrote: >> >> >> Am 10.09.2019 18:29, schrieb Tim Tassonis: >>> Hi all >>> >>> I just found out about a terribly convenient way to recursively delete >>>

Re: find options -empty and -delete

2019-09-10 Thread walter harms
Am 10.09.2019 18:29, schrieb Tim Tassonis: > Hi all > > I just found out about a terribly convenient way to recursively delete > empty directories with find, using the options -empty and -delete > > It seems current busybox does not support these, are there any plans to > add them? > > sen

Re: 1.30.1 [ntpd] - not able to query

2019-07-03 Thread walter harms
Am 03.07.2019 12:42, schrieb vto...@googlemail.com: > On 03/07/2019 12:26, Denys Vlasenko wrote: >> On Wed, Jul 3, 2019 at 12:02 PM wrote: >>> On 03/07/2019 11:55, Denys Vlasenko wrote: On Tue, Jul 2, 2019 at 3:20 PM wrote: > On 02/07/2019 15:07, Denys Vlasenko wrote: >>> Or won't

Re: [PATCH 1/1] pidof - add option -q (quiet)

2019-06-20 Thread walter harms
20.06.2019 15:33, schrieb Denys Vlasenko: > Not compatible with procps-ng 3.3.15 > > Which version of pidof has this option? > > On Tue, Jun 18, 2019 at 7:03 PM walter harms wrote: >> >> when used in a script no output is needed. The latest version >> of pidof supports

[PATCH 1/1] pidof - add option -q (quiet)

2019-06-18 Thread walter harms
when used in a script no output is needed. The latest version of pidof supports the -q option to make thinks more easy. Signed-off-by: walter --- I did not manage to have a usage() , can someone add this ? --- procps/pidof.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --gi

[PATCH 1/1] Add option -T for timestamp

2019-06-18 Thread walter harms
dmesg timestamps are beginning at system start. This is not really helpful when you try to correlate with external sources. Signed-off-by: walter --- util-linux/dmesg.c | 80 +- 1 file changed, 67 insertions(+), 13 deletions(-) diff --git a

Re: dc's stack breaks when doing modulo-0

2019-05-09 Thread walter harms
Am 08.05.2019 19:31, schrieb Markus Gothe: > > dc -e '4 0 % p' mess up the stack so bad that my MIPS kernel traps it and > reboots. > > I think we should, like the regular dc, check for 0 as a divider when doing > modulo. > Did you forward this to the mips kernel mailing list ? user space

Re: How to manually configure ethernet from Busybox

2019-04-24 Thread walter harms
Hello Vesta, Bad news: this is the wrong ML for this question, There is no busybox bug. Good news: i use things like: ifconfig eth0 192.168.15.1 netmask 255.255.255.0 this is a working way. Hint: you may check the connection using tcpdump. re, wh Am 20.04.2019 18:13, schrieb Vesta: > Hi,

re [PATCH v3] ash: add process substitution in bash-compatibility mode

2019-01-28 Thread Walter Harms
subtype = 0; goto dostr; +#if !BASH_PROCESS_SUBST case CTLBACKQ: str = "$(...)"; goto dostr; +#else + case CTLBACKQ: + c = '$'; +

Re: [PATCH 2/2] findutils/grep.c: Short-circuit -v to bail out on first match

2019-01-28 Thread Walter Harms
Betreff: Re: [PATCH 2/2] findutils/grep.c: Short-circuit -v to bail out on first match To:Ari Sundholm Cc: Bcc: -=-=-=-=-=-=-=-=-=# Diese Zeile unbedingt stehen lassen - unterhalb beginnen Sie Ihren Mailtext #=-=-=-=-=-=-=-=-=- Am 28.01.2019 16:11, schrieb Ari Sundholm:

Re: [PATCH] Add a 'busybox --list name' option to display script content

2018-11-25 Thread Walter Harms
Am 09.11.2018 19:10, schrieb Ron Yorston: > Add an option to allow the content of embedded scripts to be > displayed. > > @@ -865,6 +877,22 @@ int busybox_main(int argc UNUSED_PARAM, char **argv) > # else > const char *a = applet_names; > # endif > + > + if (LIST_

Re: find printf

2018-08-25 Thread Walter Harms
> Ethan Sommer hat am 25. August 2018 um 05:28 > geschrieben: > > > Busybox find does not support a -printf flag, are there any plans to add > this? We would be happy to accept your patch. re, wh ___ busybox mailing list busybox@busybox.net http

Re: [PATCH] smemcap: keep outputting by ignoring transient processes

2018-08-24 Thread Walter Harms
I am sorry i missed the point, this patch solves what probelm ? re, wh Am 23.08.2018 23:44, schrieb Andre Goddard Rosa: > Signed-off-by: Andre Goddard Rosa > --- > procps/smemcap.c | 12 ++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/procps/smemcap.c b/pr

ntpd "STEP storm" with small offset

2018-07-25 Thread Walter Harms
Am 25.07.2018 00:46, schrieb Ward WIllats: > Hello. > Hello, could it be that internal cristal is a bit off (temperature ?). That would cause the internal clock to speed up/slow down. That could be fix with "adjusttimex" more easy that patching. re, wh > I've got several thousand boxes in the

Re: Question: Finding libraries that are required for busybox??

2018-06-26 Thread Walter Harms
Am 25.06.2018 22:40, schrieb Eli Schwartz: > On 06/25/2018 04:30 PM, Michael D. Setzer II wrote: >> Thanks for all the quick reponses. Tried the options, but am just seeing a >> link >> to libc.so.6 and no other libraries?? > > So your busybox binary is not statically linked. That doesn't really

vi adding characters by value

2018-06-22 Thread Walter Harms
Hi Ryan, busybox is about value per byte, if you want a feature please provide a patch so we can see how large the change is. https://busybox.net/FAQ.html you can use "make bloatcheck" (make baseline) to get an easy impression about the size change. hope that helps, re, wh __

re:[PATCH 2/6] udhcpc6: Add DHCPv6 env helper

2018-05-08 Thread Walter Harms
Add string_option_to_env() to easily generate environment variables for known simple options. Signed-off-by: Samuel Mendoza-Jonas --- networking/udhcp/d6_dhcpc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6

re:Make busybox more portable

2018-03-04 Thread Walter Harms
looking that missing_syscalls.c and seeing this; #if defined(ANDROID) || defined(__ANDROID__) I am not sure if that is needed. (After asking a searchengine i would say no). Is there still a differenz between ANDROID and __ANDROID__ ? re, wh ___ busybo

Re: [PATCH 0/4] Add SCHED_BATCH and SCHED_IDLE support to chrt

2018-01-29 Thread walter harms
Am 28.01.2018 19:23, schrieb Denys Vlasenko: > On Sun, Jan 28, 2018 at 11:10 AM, walter harms wrote: >>> On Wed, Jan 24, 2018 at 1:28 AM, Povilas Kanapickas >>> wrote: >>>>>> The following patches add SCHED_BATCH and SCHED_IDLE support to chrt. >>

Re: [PATCH 0/4] Add SCHED_BATCH and SCHED_IDLE support to chrt

2018-01-28 Thread walter harms
Am 27.01.2018 19:37, schrieb Denys Vlasenko: > On Wed, Jan 24, 2018 at 1:28 AM, Povilas Kanapickas wrote: The following patches add SCHED_BATCH and SCHED_IDLE support to chrt. The priority limits are fixed to follow the specification. The last patch avoids hardcoding the values of

Re: [PATCH 3/4] chrt: fix incorrect maximum priority on SCHED_{OTHER, BATCH, IDLE}

2018-01-14 Thread walter harms
Am 13.01.2018 22:29, schrieb Povilas Kanapickas: > --- > util-linux/chrt.c | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/util-linux/chrt.c b/util-linux/chrt.c > index bbd6e2deb..5c5513aeb 100644 > --- a/util-linux/chrt.c > +++ b/util-linux/chrt.c > @@

Re: [PATCH 1/2] fix O_CLOEXEC related build problems with kernel versions < 2.6.23

2017-10-18 Thread walter harms
Am 18.10.2017 18:23, schrieb Eugene Rudoy: > Hi Xabier, > > On Wed, Oct 18, 2017 at 8:52 AM, Xabier Oneca -- xOneca > wrote: >> >> Doesn't xopen always guarantee output_fd will be valid? If so, there's >> no need for this 'if'. > you're right, s. [1]. Didn't know that before, thanks for pointin

Re: [PATCH 2/2] iproute/iprule: restore support for kernel versions < 2.6.19

2017-10-18 Thread walter harms
Am 17.10.2017 23:33, schrieb Eugene Rudoy: > broken in b42107f21538e39d9a344376372f8261aed589b2 > > Signed-off-by: Eugene Rudoy > --- > networking/libiproute/iproute.c | 9 + > networking/libiproute/iprule.c | 12 +++- > 2 files changed, 20 insertions(+), 1 deletion(-) > > d

Re: [PATCH 1/1] xargs: support -P (parallel execution)

2017-08-25 Thread walter harms
Am 24.08.2017 13:19, schrieb Denys Vlasenko: > On Wed, Aug 23, 2017 at 5:25 PM, Johannes Schindelin > wrote: >> The GNU variant of xargs supports a special, non-POSIX extension to run >> processes in parallel, triggered by the -P option. >> >> This feature comes in handy e.g. when running Git's

Re: [PATCH] ps: fix build failure if FEATURE_PS_TIME is disabled

2017-08-25 Thread walter harms
Am 22.08.2017 12:21, schrieb Ron Yorston: > The global seconds_since_boot is only defined if FEATURE_PS_TIME > is enabled. > > Signed-off-by: Ron Yorston > --- > procps/ps.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/procps/ps.c b/procps/ps.c > index 7edf6dbd1

Re: About the approximate applet sizes in menuconfig

2017-07-20 Thread walter harms
Am 20.07.2017 12:17, schrieb Denys Vlasenko: > On Wed, Jul 19, 2017 at 6:38 PM, Kang-Che Sung wrote: >> (https://git.busybox.net/busybox/commit/?id=4eed2c6c5092ed95b8ee6d994106c54a9fc6ed3e) >> >> I don't like this. I don't like these size info to be put on the titles >> of config options. A few

Re: [PATCH 1/1] makedevs: set path size to match linux

2017-06-27 Thread walter harms
Am 27.06.2017 05:31, schrieb Baruch Siach: > Hi Matthew, > > On Mon, Jun 26, 2017 at 08:45:42PM -0500, Matthew Weber wrote: >> On Mon, Jun 26, 2017 at 7:36 PM, Emmanuel Deloget wrote: >>> On Mon, Jun 26, 2017 at 11:23 PM, Matthew Weber >>> wrote: On Mon, Jun 26, 2017 at 3:55 PM, Baruch Si

Re: [PATCH 0/2] new applet (setpriv) + unshare typo fix

2017-05-13 Thread walter harms
General remark: busybox is about size so its a good idea the post how large the increase is. When adding a new item it is also good idea to give one or more use cases not everyone knows every command in util-linux. just my 2 cents, re, wh Am 13.05.2017 05:25, schrieb Assaf Gordon: > Hello, >

Re: [PATCH] sysklogd: add -Z option to adjust message timezones

2017-05-09 Thread walter harms
Since this is a musl (only ?) feature i would suggest to make that selectable. re, wh Am 08.05.2017 23:45, schrieb Shiz: > Some syslog() implementations like musl's[1] always send timestamps in UTC. > This change adds a new option to syslogd, -Z, to assume incoming timestamps > are always UTC an

Re: busybox unzip fails with empty zip arhcive

2017-05-02 Thread walter harms
Am 02.05.2017 18:16, schrieb Grant Edwards: > On 2017-05-02, Denys Vlasenko wrote: >> On Mon, May 1, 2017 at 10:40 PM, Grant Edwards >> wrote: >>> The Busybox 'unzip' utility returns a failure status and prints an >>> error message when it's given an properly formatted (but empty) zip >>> archi

Re: [PATCH] add paste implementation

2017-03-15 Thread walter harms
Am 15.03.2017 10:29, schrieb Bernhard Reutner-Fischer: > On 10 March 2017 19:07:12 CET, Maxime Coste wrote: >> Hello, >> >> here is my stab at an implementation of patch, I hope this is the >> proper >> patch format and the code is in a good enough shape. > > I'm just curious if anybody (or an

Re: [PATCH] add paste implementation

2017-03-11 Thread walter harms
Am 10.03.2017 19:07, schrieb Maxime Coste: > Hello, > > here is my stab at an implementation of patch, I hope this is the proper > patch format and the code is in a good enough shape. > > --- > AUTHORS| 3 + > coreutils/paste.c | 160 > ++

Re: mounting errors

2017-02-22 Thread walter harms
Am 22.02.2017 14:43, schrieb David Henderson: > couldn't mount as ext3 due to feature incompatibilities did you find this: ? https://forums.gentoo.org/viewtopic-t-905312-start-0.html ___ busybox mailing list busybox@busybox.net http://lists.busybox.ne

Re: [PATCH 2/2] vi: don't touch file with :x when modified_count == 0

2017-02-22 Thread walter harms
Am 22.02.2017 14:11, schrieb Yousong Zhou: > Along with it, there are other changes > > - Check for uppercase X is removed as the expression will be always false and >:X itself is another totally different command in standard vim > - The status line will show number of written lines instea

Re: timeout setting for login

2017-02-06 Thread walter harms
Am 28.01.2017 02:46, schrieb Patrick Pief: > Hello, > > As noted in http://unix.stackexchange.com/q/340333/117599 BBox's login has no > way for setting LOGIN_TIMEOUT, it's always there and hardcoded to 60 seconds. > > What would you think if there was support for it but not through a setting in

Re: [PATCH] ntpd: improve postponed hostname resolution

2017-01-19 Thread walter harms
Am 06.01.2017 12:13, schrieb Natanael Copa: > Run the namelookup from the main loop so a misspelled first ntp server > name does not block everything forever. > > This fixes the following situation which would block forever: > $ sudo ./busybox ntpd -dn -p foobar -p pool.ntp.org > ntpd: bad

Re: Weird behavior of 'ash' with "remove prefix/suffix pattern" in parameter expansion

2016-11-24 Thread walter harms
Am 24.11.2016 10:29, schrieb Denys Vlasenko: > On Thu, Nov 24, 2016 at 12:38 AM, Denys Vlasenko > wrote: >> On Tue, Nov 22, 2016 at 6:17 PM, walter harms wrote: >>> busybox 1.25.0 >>> $ TEST="[ \t\r]" >>> $ echo ${TEST%]} >>> [ \t\r

Re: Weird behavior of 'ash' with "remove prefix/suffix pattern" in parameter expansion

2016-11-24 Thread walter harms
Am 24.11.2016 09:28, schrieb Denys Vlasenko: > ./busybox ash -c 'TEST="" ; echo "${TEST#[}"' wired ... ./busybox ash -c 'TEST="" ; echo "${TEST#[}"' ./busybox --help BusyBox v1.25.0 (2016-11-22 18:02:23 CET) multi-call binary. BusyBox is copyrighted by many authors between 1998-20

Re: Weird behavior of 'ash' with "remove prefix/suffix pattern" in parameter expansion

2016-11-24 Thread walter harms
Am 24.11.2016 00:38, schrieb Denys Vlasenko: > On Tue, Nov 22, 2016 at 6:17 PM, walter harms wrote: >> busybox 1.25.0 >> $ TEST="[ \t\r]" >> $ echo ${TEST%]} >> [ \t\r >> $ echo ${TEST#[} >> [ \t\r] >> >> GNU bash, version 3.2.39 &g

Re: Weird behavior of 'ash' with "remove prefix/suffix pattern" in parameter expansion

2016-11-22 Thread walter harms
busybox 1.25.0 $ TEST="[ \t\r]" $ echo ${TEST%]} [ \t\r $ echo ${TEST#[} [ \t\r] GNU bash, version 3.2.39 $ TEST="[ \t\r]" echo ${TEST%]} [ \t\r echo "${TEST#[}" \t\r] It seems that ${#} does not eat [: TEST="" ; echo "${TEST#[}" TEST="" ; echo "${TEST#[}" [[[ re, wh Am 22.11.201

Re: [PATCH] Re: Possible Vulnerability in httpd.c

2016-11-21 Thread walter harms
Nice, but i have an other question, based to the comments in the code: * The arguments are combined and sent as one write operation. Note that * IE will puke big-time if the headers are not sent in one packet and the * second packet is delayed for any reason. the only reason we need to buf

Re: [PATCH] makedevs: make special node creation idempotent

2016-11-05 Thread walter harms
Am 05.11.2016 14:37, schrieb Arnout Vandecappelle (Essensium/Mind): > When makedevs is called for a second time with the same device file, it > will fail because the files already exist and mknod() gives -EEXISTS. > > To avoid this, check if the file already exists and if so, if it is of > the r

Re: Busybox Syslogd Format

2016-10-05 Thread walter harms
Am 05.10.2016 18:41, schrieb Kevin Houlberg: > Hello, > > Is it possible to change the date and time format of the syslog messages when > using syslogd? > > Current format:Jan 01 02:04:40 user.info fpgaIOService[1391]: > Ethernet port 1 is down > > Desired format:

Re: BusyBox for OSX

2016-09-07 Thread walter harms
Am 06.09.2016 22:01, schrieb casey: > > BusyBox for OSX > Martijn Dekker martijn at inlv.org > Mon Sep 5 03:22:48 UTC 2016 > > Previous message: Altscreens for less and more > Next message: BusyBox for OSX > Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > > beginarticle > Op

Re: [PATCH] examples: allow to reuse environment variables in android-build

2016-09-06 Thread walter harms
Am 05.09.2016 23:33, schrieb Denys Vlasenko: > Can you give some context? What were you trying to do? > how current script wasn't good enough? etc > > On Mon, Sep 5, 2016 at 7:41 AM, Petr Vorel wrote: >> + rename them to not clash with non intended environment variables >> >> Signed-off-by: Pet

Re: BusyBox for OSX

2016-09-05 Thread walter harms
Am 05.09.2016 05:22, schrieb Martijn Dekker: > Op 31-08-16 om 11:59 schreef casey: >> REM’d out that build option in /configs/osx_defconfig: > [...] >> #CONFIG_EXTRA_CFLAGS=‘-arch x86_64 -mmacosx-version-min=10.5' > > Your problem here were the curly (non-ASCII) single quotes (‘’). Shells > don'

Re: BusyBox for OSX

2016-08-30 Thread walter harms
Am 30.08.2016 17:21, schrieb casey: > Hi, > OS X Version 10.9.5 does NOT compile: > > https://github.com/daliworks/busybox-osx > > # brew install gnu-sed > # cp configs/osx_defconfig .config && make > > CC util-linux/scriptreplay.o > clang: warning: argument unused during compilation:

Re: [question] how to set the date using busybox

2016-08-15 Thread walter harms
Does it work for you if you do not use the epoch but the "normal" date format MMDDhhmmCCYY ? re, wh Am 15.08.2016 11:22, schrieb piotr.lewicki: > Hello, > I'm using busybox v1.24.1 and I have a problem with setting the date > using date command. > Normally it should work with: > > date -s @'12

Re: [PATCH] wget: add TLS SNI support via openssl s_client

2016-07-21 Thread walter harms
Am 21.07.2016 04:38, schrieb Jeremy Chadwick: > On Wed, Jul 20, 2016 at 02:56:40PM -0700, Jeremy Chadwick wrote: >> +static int is_ip_address(const char *string) >> ... >> +if (ENABLE_FEATURE_IPV6 && result != 0) { > > Minor issue: the "result != 0" comparison is wrong (inverted). It > coul

Re: [PATCH] Bug 9076 - Whois using a non working host for queries by default

2016-07-05 Thread walter harms
Am 05.07.2016 10:38, schrieb Vito Mulè: > Now using strndup and removed the sizeof(char) thanks: > > Signed-off-by: Vito Mule' > --- > networking/whois.c | 50 +++--- > 1 file changed, 43 insertions(+), 7 deletions(-) > > diff --git a/networking/who

Re: whois doesn't work

2016-07-04 Thread walter harms
Am 04.07.2016 17:34, schrieb walter harms: > > > Am 04.07.2016 17:22, schrieb Jody Bruchon: >> On 2016-07-04 11:18, Vito Mulè wrote: >>> Can you strace it and post the output? >> >> I can confirm this problem has been going on for a while; one day it >&

Re: whois doesn't work

2016-07-04 Thread walter harms
Am 04.07.2016 17:22, schrieb Jody Bruchon: > On 2016-07-04 11:18, Vito Mulè wrote: >> Can you strace it and post the output? > > I can confirm this problem has been going on for a while; one day it > just stopped working. Here's an strace: > > $ strace busybox whois www.google.com > execve("/bi

comment on getrandom (was getrandom: new applet)

2016-07-03 Thread walter harms
Am 03.07.2016 18:46, schrieb Denys Vlasenko: > On Tue, Jun 28, 2016 at 7:47 PM, walter harms wrote: >> perhaps a better aim ist to improve the $RANDOM in ash ? > > > $RAMDOM generator in my tests passed all "dieharder -g 200 -a" tests. > How much better than thi

Re: kbuild overwrites $CC

2016-07-02 Thread walter harms
Am 01.07.2016 18:16, schrieb Martin Kaiser: > Dear all, > > I'm trying to compile busysbox with a toolchain created from > yoctoproject. This toolchain comes with a setup script to set $CC and > cross-compiler related environment variables. If the toolchain is > installed to a non-standard path,

Re: inotifyd

2016-06-29 Thread walter harms
Am 24.06.2016 17:17, schrieb Walter Harms: > hi list, > i have an older system and for a test i needed a current version of busybox. > I download 1.25 as tar.bz2 and compiled out of the box. > > > > CC miscutils/inotifyd.o > In file included from /u

Re: [PATCH] getrandom: new applet

2016-06-28 Thread walter harms
perhaps a better aim ist to improve the $RANDOM in ash ? re, wh Am 28.06.2016 18:56, schrieb Etienne CHAMPETIER: > first user of this applet will be LEDE (OpenWrt) to save an urandom seed > using getrandom() (so we are sure /dev/urandom pool is initialized) > > function

Re: Bug in ash alias handing ?

2016-06-25 Thread Walter Harms
On Fri, 24 Jun 2016, Walter Harms wrote: > > > > i tried to make this little gem grep -o -E '\$Id:[^\$]+.' into an alias > > for ash in the latest busybox version. > > > > alias idt="grep -o -E '\$Id:[^\$]+.'" > > > > but t

Bug in ash alias handing ?

2016-06-24 Thread Walter Harms
hi list, i tried to make this little gem grep -o -E '\$Id:[^\$]+.' into an alias for ash in the latest busybox version. alias idt="grep -o -E '\$Id:[^\$]+.'" but the result was always a non working alias I tried various escapes but nothing worked. does someone has a solution ? re, wh _

inotifyd

2016-06-24 Thread Walter Harms
hi list, i have an older system and for a test i needed a current version of busybox. I download 1.25 as tar.bz2 and compiled out of the box. CC miscutils/inotifyd.o In file included from /usr/include/asm/fcntl.h:1, from /usr/include/linux/fcntl.h:4, from

Re: Compile Error while Building BusyBox 1.24.2

2016-06-15 Thread walter harms
Am 15.06.2016 10:51, schrieb ANIRUDH AGARWAL: > Hello, > > I am trying to use busybox with linux kernel 4.1.1.7. > > I am in the process of compiling busybox with static build option. I have > installed default gcc compiler and the riscv-toolchain. > > However while building busybox using comm

Re: [PATCH v2] networking: ping: Avoid zero checksum in simple ping

2016-06-15 Thread walter harms
Am 15.06.2016 09:12, schrieb Jonas Danielsson: > The ICMP RFC says that identifier and sequence number may be zero. > Having them zero for a Echo message, along with a data of zero:s > as well will result in a Echo reply message with only zero:s. > > Some NAT implementations seem to get the chec

Re: dollar handling in here document

2016-04-03 Thread walter harms
I guess it is a bug. I tried with "$" that works for me. Adding \ in front of $ makes it work again. note about the here document: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_07_04 It does not mention the single quotes directly. re, wh Am 03.04.2016 18:54, s

Re: Ftpd server authentication problem

2016-03-15 Thread walter harms
The busybox ftpd can be anonymous or auth based. re, wh Am 15.03.2016 20:51, schrieb devil...@hotmail.it: > > > > > > > > Hi I have a problem with the ftpd command busybox. When I create the socket > from ftpd server (tcpsvd -vE 0.0.0.0 21 ftpd / files / to / serve) the server > is

  1   2   3   4   5   6   7   8   >