grep -x broken

2014-11-16 Thread John Spencer
busybox grep (1.20.2) $ echo libevent | grep -Fx libev libevent $ gnu grep $ echo libevent | grep -Fx libev $ ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH] ash: perform autocompletion on builtin commands

2014-10-24 Thread John Spencer
Matteo Croce wrote: Refactor read_line_input to accept a list of strings which are added byt the autocompletion suggestions. Let ash pass the builtin command list to read_line_input to enable completion of builtin commands as echo, printf, history, exec, etc. nice. could this mechanism be used

Re: [PATCH] ash: perform autocompletion on builtin commands

2014-10-24 Thread John Spencer
$ ./uTAB does. would be nice if this could be enabled using some trick. ash will pick it up and use it in the same way as bash. Have never had any problem with this. Works like a charm. Brgds /S-G On 10/24/2014 05:20 PM, John Spencer wrote: Matteo Croce wrote: Refactor read_line_input to accept

Re: [PATCH] fdisk: fix sector_t for multi-terabyte disks

2014-05-16 Thread John Spencer
ping John Spencer wrote: From 8290bae43ae7a7fc71c0228d18b77db24faea764 Mon Sep 17 00:00:00 2001 From: John Spencer maillist-busy...@barfooze.de Date: Thu, 21 Nov 2013 21:38:10 +0100 Subject: [PATCH] fdisk: fix sector_t for multi-terabyte disks before: Disk /dev/sdb: 4294967295 sectors, 4095M

handling of CRLF in telnet

2014-03-17 Thread John Spencer
when using busybox telnet to manually connect to some service like SMTP, it doesnt change the \n it receives into an \r\n sequence before it sends the line over the wire. is there some workaround to make this possible ? the gnu telnet program seems to automatically perform this transformation.

Re: [PATCH 1/1] su: Add a delay if the password is incorrect

2014-03-13 Thread John Spencer
Rich Felker wrote: On Thu, Mar 13, 2014 at 12:15:45AM +0100, John Spencer wrote: Romain Naour wrote: Hi, Le 04/03/2014 22:27, Romain Naour a écrit : Signed-off-by: Romain Naour romain.na...@openwide.fr --- loginutils/su.c | 1 + 1 file changed, 1 insertion(+) diff --git a/loginutils/su.c b

[PATCH] ifplugd: move linux header inclusion after userspace

2014-01-27 Thread John Spencer
2001 From: John Spencer maillist-busy...@barfooze.de Date: Mon, 27 Jan 2014 23:20:01 +0100 Subject: [PATCH] ifplugd: move linux header inclusion after userspace headers this allows linux' new libc-compat.h to kick in, which prevents redefinition of some structs that both userspace and kernel headers

Re: [PATCH] ping: try SOCK_DGRAM if no root privileges

2014-01-09 Thread John Spencer
Denys Vlasenko wrote: On Mon, Jan 6, 2014 at 5:03 PM, John Spencer maillist-busy...@barfooze.de wrote: i've been able to get the SOCK_DGRAM stuff to work with a little help of Vasily, author of the kernel patch. see attached proof-of-concept patch. i'm aware that it doesnt use xbind

Re: [PATCH] ping: try SOCK_DGRAM if no root privileges

2014-01-09 Thread John Spencer
Denys Vlasenko wrote: On Thu, Jan 9, 2014 at 1:35 PM, John Spencer maillist-busy...@barfooze.de wrote: This seems to lead to a significantly larger code. Making ping suid wasn't such a big problem before, so why should we have all these complications now? making ping suid in the context

[Fwd: Fwd: [PATCH] ntpd not adjusting clock after a step backward in time]

2014-01-08 Thread John Spencer
forwarding this on behalf of Maxim Naumov who registered to the ML but is unable to send anything to the list despite having received the welcome mail. denys, maybe you can find out what's wrong with his registration ? -- Forwarded message -- From: Maxim Naumov

Re: [PATCH] ping: try SOCK_DGRAM if no root privileges

2014-01-06 Thread John Spencer
sends one packet and displays whether it was successful or not, without further info). note that the iputils patch is not upstream yet, so if busybox merges it, it's the first official ping implementation that supports SOCK_DGRAM. --JS John Spencer wrote: Denys Vlasenko wrote: Applied, thanks

WANTED: busybox debugging guide

2014-01-04 Thread John Spencer
how to get a well debuggable busybox binary ? whenever i try to debug busybox, gdb (7.6.2) is completely clueless, especially upon entering applet_main. for example in ping.c, after breaking on ping_main, gdb lists the BSD copyright header at the end of the file as the actual sourceline.

fdisk: GiB vs GB

2013-11-21 Thread John Spencer
util-linux's fdisk displays harddisk size with the definition of GB used by HDD vendors, that is 1000*1000*1000, whereas busybox' fdisk displays them as GiB, i.e. 1024*1024*1024. i'm fine with either, however for consistency we should probably use the definition used by util-linux or at

[PATCH] fdisk: fix sector_t for multi-terabyte disks

2013-11-21 Thread John Spencer
From 8290bae43ae7a7fc71c0228d18b77db24faea764 Mon Sep 17 00:00:00 2001 From: John Spencer maillist-busy...@barfooze.de Date: Thu, 21 Nov 2013 21:38:10 +0100 Subject: [PATCH] fdisk: fix sector_t for multi-terabyte disks before: Disk /dev/sdb: 4294967295 sectors, 4095M after: Disk /dev/sdb

fdisk: mismatch between information printed for GPT and MBR disks

2013-11-21 Thread John Spencer
Disk /dev/sda: 128.0 GB, 128035676160 bytes Disk /dev/sdb: 5860533168 sectors, 2794G 1) mbr prints bytes, gpt sectors 2) the order of the size field is reversed 3) mbr disk prints xx.x GB while gpt disk prints xxG ___ busybox mailing list

Re: Question about the installation directory of programs

2013-11-07 Thread John Spencer
Laurent Bercot wrote: Nowadays, the only systems that actually make a real distinction between / and /usr are, ironically, the BSDs, where /bin binaries are statically linked to provide a failsafe recovery system. GNU certainly can't do that. Alternative libc Linux users could, but AFAIK

Re: Unit tests for busybox

2013-11-04 Thread John Spencer
Bartosz Gołaszewski wrote: Hi! While working on my small free-time project - a compact message bus for embedded systems (think small dbus) a good idea. it already exists though: http://unixbus.org/ubus/ just FYI. --JS ___ busybox mailing list

Re: awk: empty function becomes undefined function

2013-10-09 Thread John Spencer
On 10/09/2013 07:36 PM, Jody Lee Bruchon wrote: Apologies if this is already fixed; I can't check against trunk right now and don't see references to this problem online. yes, it's already fixed in git (author: bernhard reutner-fischner) and iirc also in latest busybox release While

Re: [PATCH 0/3] Build/warning fixes for the musl C library

2013-10-05 Thread John Spencer
On 10/05/2013 04:16 PM, Thomas Petazzoni wrote: Hello, The musl C library, available from www.musl-libc.org is an alternative C library. The following three patches fix some warnings or build failures when building Busybox against the musl C library. Best regards, Thomas Thomas Petazzoni

ash-builtin ulimit command lacks usage text

2013-09-24 Thread John Spencer
ulimit --help doesn't work, and all usages of ulimit with invalid stuff added just silently exits. root:/$ ulimit foobar echo success success so there's no way to find out how to use it correctly without googling around or looking the syntax up on a box with gnu coreutils. to see which of

fix support for tar J (xz compressor)

2013-09-20 Thread John Spencer
From 0bc9113dc8fa6c3f631094dd1caa44c2874984b0 Mon Sep 17 00:00:00 2001 From: John Spencer maillist-busy...@barfooze.de Date: Fri, 20 Sep 2013 19:28:29 +0200 Subject: [PATCH] tar: support xz compression as well the previous patch by Boris Reisig, dfc2473b9ed88039697ac89ee2a4301cdaefcf84 , while

Re: dumpkmap/loadkmap misses handling of K_ALLOCATED and K_NOSUCHMAP

2013-09-20 Thread John Spencer
On 09/19/2013 05:55 PM, Denys Vlasenko wrote: Maybe just a comment will do? /* * Note: table[idx:0] can contain special value * K_ALLOCATED (marks allocated tables in kernel). * dumpkmap

Re: fix support for tar J (xz compressor)

2013-09-20 Thread John Spencer
On 09/20/2013 09:46 PM, Sedat Dilek wrote: Is ENABLE_FEATURE_SEAMLESS_GZ missing here? no, because 1) the function will only be called/compiled if at least one compressor is enabled 2) if gzip is disabled, it's array index (enum value) doesnt change because of that, so the first array must

[PATCHv2] Re: fix support for tar J (xz compressor)

2013-09-20 Thread John Spencer
it occured to me that it's more efficient to pass around the string itself instead of an enum, so here's patch v2. On 09/20/2013 08:28 PM, John Spencer wrote: ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo

[PATCH] Codeshrink: dumpkmod

2013-09-16 Thread John Spencer
saves 9 bytes. Signed-off-by: John Spencer maillist-busy...@barfooze.de function old new delta .rodata 23672383 +16 static.flags - 13 +13

[RFC][PATCH] loadkmap/dumpkmap: remove endianess dependency

2013-09-16 Thread John Spencer
currently dumpkmap stores the keymap in the host endian format. that makes it impossible to create portable kmaps for usage on different archs. however, i'm not sure if (apart from the endian differences) the kernel keymaps differ between archs, so this may be unnecessary anyway. ---

Re: [PATCH] Codeshrink: dumpkmod

2013-09-16 Thread John Spencer
On 09/17/2013 02:18 AM, Denys Vlasenko wrote: On Monday 16 September 2013 14:22, John Spencer wrote: saves 9 bytes. Signed-off-by: John Spencermaillist-busy...@barfooze.de How about this? function old new delta dumpkmap_main

Re: [RFC][PATCH] loadkmap/dumpkmap: remove endianess dependency

2013-09-16 Thread John Spencer
On 09/17/2013 02:38 AM, Denys Vlasenko wrote: On Monday 16 September 2013 14:38, John Spencer wrote: currently dumpkmap stores the keymap in the host endian format. that makes it impossible to create portable kmaps for usage on different archs. however, i'm not sure if (apart from the endian

dumpkmap/loadkmap misses handling of K_ALLOCATED and K_NOSUCHMAP

2013-09-16 Thread John Spencer
using this debug patch --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c @@ -67,7 +67,10 @@ int loadkmap_main(int argc UNUSED_PARAM, char **argv) ke.kb_index = j; ke.kb_table = i;

[PATCH] remove unused header inclusion which breaks build with musl libc

2013-08-15 Thread John Spencer
networking/libiproute/iplink.c includes net/if_packet.h, which (on GLIBC) only defines struct sockaddr_pkt. this struct is not used anywhere in the code, and removing the #include makes compilation succeed with musl libc. Signed-off-by: John Spencer maillist-busy...@barfooze.de diff --git

udhcpc is disrespecting --retries, unless -n is passed as well

2013-08-06 Thread John Spencer
udhpc is looping forever witout respecting the number of retries given. only passing -n makes it exit after the max number of retries. this is pretty counterintuitive. took me about 2 hours to track down this bug because all the funky CFLAGS and LDFLAGS used by BB even when doing a debug build

[PATCH] fix build error with musl libc due to if_slip.h

2013-08-05 Thread John Spencer
this is a kernel header, but apparently it's also supplied on glibc and uclibc in net/. since we need kernel headers anyway, we can as well just change it. diff -aur busybox-1.19.2.orig/networking/ifconfig.c busybox-1.19.2/networking/ifconfig.c --- busybox-1.19.2.orig/networking/ifconfig.c

Fwd: [PATCH] man: use less as default pager and parse DEFINE lines defining pager

2013-07-15 Thread John Spencer
ping Original Message From: - Sun Jun 2 13:23:00 2013 man.config can define lines such as DEFINE pager less -s this patch parses them, additionally it always sets pager to less instead of more. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox

Fwd: [PATCH] man: find posix man pages

2013-07-15 Thread John Spencer
ping Original Message the posix manpages ( http://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2003-a.tar.xz ) are placed in man0p man1p and man3p. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c

Fwd: [PATCH] man: find posix man pages

2013-06-30 Thread John Spencer
ping --- original mess age the posix manpages ( http://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2003-a.tar.xz ) are placed in man0p man1p and man3p. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c 2013-06-02 10

Fwd: [PATCH] man: use less as default pager and parse DEFINE lines defining pager

2013-06-30 Thread John Spencer
ping Original Message man.config can define lines such as DEFINE pager less -s this patch parses them, additionally it always sets pager to less instead of more. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c 2013

Fwd: [PATCH] man: find posix man pages

2013-06-30 Thread John Spencer
ping Original Message the posix manpages ( http://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2003-a.tar.xz ) are placed in man0p man1p and man3p. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c

Fwd: [PATCH] man: use less as default pager and parse DEFINE lines defining pager

2013-06-30 Thread John Spencer
ping Original Message man.config can define lines such as DEFINE pager less -s this patch parses them, additionally it always sets pager to less instead of more. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c 2013

[PATCH] man: find posix man pages

2013-06-02 Thread John Spencer
the posix manpages ( http://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2003-a.tar.xz ) are placed in man0p man1p and man3p. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c 2013-06-02 10:12:54.25103 +

[PATCH] man: use less as default pager and parse DEFINE lines defining pager

2013-06-02 Thread John Spencer
man.config can define lines such as DEFINE pager less -s this patch parses them, additionally it always sets pager to less instead of more. Signed-off-by: John Spencer maillist-busy...@barfooze.de --- busybox-1.20.2.org/miscutils/man.c 2013-06-02 10:12:54.25103 +

Re: [PATCH] man: use less as default pager and parse DEFINE lines defining pager

2013-06-02 Thread John Spencer
On 06/02/2013 01:48 PM, Tito wrote: On Sunday 02 June 2013 12:51:21 John Spencer wrote: man.config can define lines such as DEFINE pager less -s this patch parses them, additionally it always sets pager to less instead of more. Signed-off-by: John Spencermaillist-busy...@barfooze.de

Re: [PATCH] man: use less as default pager and parse DEFINE lines defining pager

2013-06-02 Thread John Spencer
On 06/02/2013 12:51 PM, John Spencer wrote: man.config can define lines such as DEFINE pager less -s this patch parses them, additionally it always sets pager to less instead of more. Signed-off-by: John Spencer maillist-busy...@barfooze.de ++const char* env_pager = getenv(MANPAGER

Re: [BUG] multiline select behaviour of busybox shell in xterm

2013-02-28 Thread John Spencer
On 02/28/2013 04:10 PM, Denys Vlasenko wrote: On Fri, Feb 1, 2013 at 7:25 PM, John Spencer maillist-busy...@barfooze.de wrote: everytime i chroot into a busybox environment, i notice a weird behaviour in xterm: 1) selecting text that spans over more than one line using a double-click

Re: XZ embedded bug unpacking linux-3.8.tar.xz

2013-02-26 Thread John Spencer
On 02/26/2013 07:43 AM, Michael Tokarev wrote: 26.02.2013 03:21, John Spencer wrote: [ quoting the full mail of lasse since it didnt make its way into the bb maillist yet ] Additionally there has been a discussion and attempts to cook up a patch in Debian, see http://bugs.debian.org/686502

Re: XZ embedded bug unpacking linux-3.8.tar.xz

2013-02-25 Thread John Spencer
[ quoting the full mail of lasse since it didnt make its way into the bb maillist yet ] On 02/25/2013 12:05 PM, Lasse Collin wrote: On 2013-02-25 Denys Vlasenko wrote: On Sunday 24 February 2013 22:37, John Spencer wrote: http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.8.tar.xz using

Re: tar: short read on linux-3.8.tar.xz

2013-02-24 Thread John Spencer
On 02/24/2013 09:14 PM, John Spencer wrote: http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.8.tar.xz using busybox 1.20.2 and xz 5.0.3 or xz 5.0.4: $ tar xf linux-3.8.tar.xz i get: short read and exit status 1. however the data seems to be there (at least partial). the culprit

[BUG] multiline select behaviour of busybox shell in xterm

2013-02-01 Thread John Spencer
everytime i chroot into a busybox environment, i notice a weird behaviour in xterm: 1) selecting text that spans over more than one line using a double-click will only select the half of the text that is in the currently selected line for example, if the terminal width is 10 chars: 12345678

Re: unzip applet not working ?

2012-12-20 Thread John Spencer
On 06/15/2012 04:44 PM, Denys Vlasenko wrote: This should help: commit c5b01016e622f01dfa9c8c542c0968fe37d4a5f2 Author: Denys Vlasenkovda.li...@googlemail.com Date: Fri Jun 15 16:43:26 2012 +0200 unzip: make options parsing more robust on getopt w/o gnu extensions After it, only -x

[PATCH] blowfish support

2012-11-09 Thread John Spencer
i added this patch a while ago, maybe someone else can use it as well. this adds only the C interface, one needed to add an option for the Makefile configuration as well. From 2227a5969bbf83d05cc6b738670e38d0b56cd437 Mon Sep 17 00:00:00 2001 From: John Spencer maillist-busy...@barfooze.de Date

stand-alone, but static linked applets

2012-11-09 Thread John Spencer
i noticed that the busybox binary is quite big, and i think you have to actually use *a lot* of applets at the same time to accomodate its memory usage. another advantage of separate binaries is that you can set suid root on only the few that actually need it. in the busybox menuconfig, i

[BUG] vi does not recognize changed permissions on read only files

2012-10-10 Thread John Spencer
i edited less-444/configure, and when i wanted to :wq vi claimed: file is read-only. so i changed the perms in another shell to 755. retrying :wq yielded the same error again. after closing vi with :q! and opening it again, i was able to save it. i had to redo all previous changes of

Re: [BUG] vi does not recognize changed permissions on read only files

2012-10-10 Thread John Spencer
On 10/10/2012 11:29 PM, Manuel Zerpies wrote: hej john, i edited less-444/configure, and when i wanted to :wq vi claimed: file is read-only. so i changed the perms in another shell to 755. retrying :wq yielded the same error again. after closing vi with :q! and opening it again, i was able

man applet can't display posix manpages (3p)

2012-06-26 Thread John Spencer
hello, the current man implementation will iterate over this list sec_list = xstrdup(1:2:3:4:5:6:7:8:9); this prevents man 3p, 1p, etc manpages to be displayed. prominent candidates that can't be used are posix programmer manual:

Re: wget: --no-cache option (noop) wanted

2012-06-14 Thread John Spencer
On 06/13/2012 05:32 PM, Denys Vlasenko wrote: On Thu, Jun 7, 2012 at 3:30 PM, John Spencer maillist-busy...@barfooze.de wrote: in gnu wget, it is not important if you place --options before or after the url, but bb wget fails. Are you sure? root:/src/build$ busybox wget http://l.yimg.com

Re: unzip applet not working ?

2012-06-14 Thread John Spencer
On 06/14/2012 09:50 PM, Dan Fandrich wrote: On Wed, Jun 13, 2012 at 07:37:13PM +0200, John Spencer wrote: I could trace it back to /* '-' makes getopt return 1 for non-options */ while ((opt = getopt(argc, argv, -d:lnopqxv)) != -1) this returns *not* 1 with musl. according to Rich

Re: unzip applet not working ?

2012-06-13 Thread John Spencer
On 06/13/2012 01:39 PM, Denys Vlasenko wrote: On Tue, Jun 12, 2012 at 11:22 PM, John Spencer maillist-busy...@barfooze.de wrote: whatever option i pass to unzip, it only shows me the usage... Cannot reproduce: I removed CONFIG_EXTRA_CFLAGS=-D__musl__ -static from your .config, build 1.20.1

unzip applet not working ?

2012-06-12 Thread John Spencer
whatever option i pass to unzip, it only shows me the usage... root:/src/build/cyassl-cyassl-02079a2$ unzip cyassl-2.2.0.zip BusyBox v1.20.1 (2012-06-08 13:15:44 UTC) multi-call binary. Usage: unzip [-opts[modifiers]] FILE[.zip] [LIST] [-x XLIST] [-d DIR] Extract files from ZIP archives

Re: [BUG] vi misbehaves on pasted text

2012-06-10 Thread John Spencer
On 06/11/2012 01:53 AM, Denys Vlasenko wrote: On Saturday 09 June 2012 22:54, John Spencer wrote: somehow the leading whitespace seem to confuse vi or maybe it's trying to auto-indent... :set noai turns it off. I am making it the default... thanks, much appreciated. another annoyance

[BUG] vi misbehaves on pasted text

2012-06-09 Thread John Spencer
when i select the following 4 lines of text in one xterm: check_opts() { while [ ! -z $1 ] ; do case $1 in --clear-builds) and paste it into another xterm window (using middle mouse button) that has busybox vi open, the following gets pasted:

Re: Bug in busybox sed - this one is real

2012-06-08 Thread John Spencer
On 06/08/2012 10:26 AM, Denys Vlasenko wrote: I had to d/l apr-1.4.6 source to get non-mangled sed command of yours. Fixed in git, please try it... very nice, thanks. i can now build the entirety of sabotage linux only using bb sed, except: psmisc 22.13 i attach the log (search for XXX,

Re: wget: --no-cache option (noop) wanted

2012-06-07 Thread John Spencer
On 06/07/2012 03:03 PM, Vladimir Dronnikov wrote: Hi! Recent luarocks (package manager for Lua) use `wget --no-cache ...` to fetch data. Wonder whether it's feasible if I provide a patch for busybox to take and ignore --no-cache long option? TIA, --Vladimir

Re: Bug in busybox sed - this one is real

2012-06-07 Thread John Spencer
On 06/07/2012 05:28 PM, Rich Felker wrote: Thanks, seems much better now! I think this finally makes busybox sed a viable replacement for GNU sed for general-purpose use (including for a system that can rebuild itself). Rich here's another buggy one (from apr 1.4.6) : sed 1s/[

Re: Bug in busybox sed - this one is real

2012-06-05 Thread John Spencer
On 06/06/2012 02:24 AM, Rich Felker wrote: On Mon, Jun 04, 2012 at 02:56:15PM +0200, Denys Vlasenko wrote: On Sun, Jun 3, 2012 at 3:54 PM, Rich Felkerdal...@aerifal.cx wrote: Ping. Anybody looked at this? I filed it as bug # 5246. fixed in git: commit

[BUG?] busybox sed fails to process ncurses scripts

2012-05-06 Thread John Spencer
when compiling ncurses 5.9 with busybox sed, it'll produce invalid C files ../ncurses/lib_gen.c:27:3: error: expected identifier or '(' before 'int' the file contains: /* DO NOT EDIT THIS FILE BY HAND! * It is generated by ./base/MKlib_gen.sh generated. */ the line that errs is * int

comm applet is broken

2012-04-25 Thread John Spencer
it only works if input is pre-sorted and/or same lines happens to be on the same linenumber in both files root:/src$ comm BusyBox v1.19.4 (2012-04-25 16:09:00 UTC) multi-call binary. Usage: comm [-123] FILE1 FILE2 Compare FILE1 with FILE2 -1 Suppress lines unique to FILE1

Re: comm applet is broken

2012-04-25 Thread John Spencer
On 04/25/2012 07:04 PM, John Spencer wrote: it only works if input is pre-sorted and/or same lines happens to be on the same linenumber in both files never mind, according to the spec the input must be pre-sorted. a hint about that in the comm usage text couldn't hurt though... --JS

Re: [1.20.0] 'sed' segfaults while trying to match wildcards (fwd)

2012-04-24 Thread John Spencer
On 04/24/2012 10:01 AM, Tomasz Czapiewski wrote: Problem is caused by commit: d29ae7e071a11c51436922654c2de73a8ac36333 ('sed: fix possible case of signed char bug; expand debugging printouts') After reverting this commit problem gets solved. heh, fixing possible bug by adding a real one.

One manpage per tool?

2012-04-20 Thread John Spencer
is there an option to create a single manpage per tool ? for example, if you want to look at man 1 cp, it's quite awkward to search for the right section inside busybox.1 (which could be dynlinked to cp.1) --JS ___ busybox mailing list

Re: [BUG] patch fails for porper path resolution

2012-04-13 Thread John Spencer
/20/2011 03:39 PM, John Spencer wrote: the attached patch fails to generate the proper pathname with -p1 with -p1 it translates libssh-0.5.0//include/libssh/libssh.h to //include/libssh/libssh.h and libssh-0.5.0/include/libssh/libssh.h to /include/libssh/libssh.h both should obviously translate

Dangerous behaviour of mktemp when unknown flags are used

2012-04-09 Thread John Spencer
(this is busybox 1.19.2) /src/build/zlib-1.2.6/Makefile:tempfile := $(shell mktemp -u __XX) mktemp: illegal option: u BusyBox v1.19.2 (2012-04-08 20:17:39 GMT) multi-call binary. Usage: mktemp [-dt] [-p DIR] [TEMPLATE] zlibs Makefile uses mktemp -u without testing if it returns a

[BUG] patch fails for porper path resolution

2011-07-20 Thread John Spencer
the attached patch fails to generate the proper pathname with -p1 with -p1 it translates libssh-0.5.0//include/libssh/libssh.h to //include/libssh/libssh.h and libssh-0.5.0/include/libssh/libssh.h to /include/libssh/libssh.h both should obviously translate to include/libssh/libssh.h without