Re: Pending patches

2008-11-10 Thread Denys Vlasenko
On Monday 10 November 2008 15:24, Vladimir Dronnikov wrote: Denys, do we mean break and not continue right before return (SIGHUP == bb_got_signal) ? 111 : EXIT_SUCCESS; at the end of runsvdir.c? Yes: switch (bb_got_signal) { ... default: /* SIGTERM (or SIGUSRn

Re: Pending patches

2008-11-10 Thread Denys Vlasenko
On Monday 10 November 2008 13:11, Vladimir Dronnikov wrote: reboot -f echo Kernel has been instructed to reboot while true; do sleep ; done because otherwise, if script exits, runsvdir will loop back and restart services, and this is definitely what you dont want to happen!

Re: outstanding telnetd bug fix, and two new features

2008-11-10 Thread Denys Vlasenko
On Tuesday 11 November 2008 00:59, Cathey, Jim wrote: Patch deletes this [FIXME] comment without ever explaining why, or including a fix. Do we handle sending of 0xff, or not? If not, why do you delete the comment? The patch deletes the FIXME comment, because the patch fixes the problem!

Re: Pending patches

2008-11-11 Thread Denys Vlasenko
On Tuesday 11 November 2008 07:04, Vladimir Dronnikov wrote: break breaks from switch(), not from for(). Right. I just rarely saw break in switch default branch. If we'd revert the condition... Is it better this way? if (bb_got_signal == SIGHUP) {

Re: bb-1.13 modutils-24.c

2008-11-11 Thread Denys Vlasenko
On Tuesday 11 November 2008 23:25, Harald Küthe wrote: Hello list, it looks like we need this patch again but now for modutils-24.c: http://busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/modutils/insmod.c?rev=23277r1=23271r2=23277 Applied to svn and placed in fixes dir:

Re: outstanding telnetd bug fix, and two new features

2008-11-11 Thread Denys Vlasenko
On Wednesday 12 November 2008 01:00, Cathey, Jim wrote: OK, I have tried out a new version of telnetd.c that contains all the patches we've used before (including the one you don't like), and also adds an add_iacs() function to take care of escaping literal 0xFF characters going the other

Re: telnetd fails to compile for !standalone

2008-11-12 Thread Denys Vlasenko
On Wednesday 12 November 2008 14:20, Bernhard Reutner-Fischer wrote: Hi, CC networking/telnetd.o networking/telnetd.c: In function ‘make_new_session’: networking/telnetd.c:259: error: ‘sock’ undeclared (first use in this function) Fixed in svn, thanks. -- vda

Re: svn commit: trunk/busybox: coreutils include

2008-11-12 Thread Denys Vlasenko
On Wednesday 12 November 2008 14:22, [EMAIL PROTECTED] wrote: Author: aldot Date: 2008-11-12 05:22:24 -0800 (Wed, 12 Nov 2008) New Revision: 24017 Log: - add support for seq -s separator FIRST, INCREMENT default to 1\n \ \nArguments: \ - \n -w Pad to last

Re: outstanding telnetd bug fix, and two new features

2008-11-12 Thread Denys Vlasenko
On Wednesday 12 November 2008 20:35, Cathey, Jim wrote: Both approaches seem to work just fine. The add_iacs() patch I did is smaller, and I believe fits better into the existing structure of telnetd, such as it is: $ size networking/telnetd.o textdata bss dec hex

Re: Pending patches

2008-11-12 Thread Denys Vlasenko
On Tuesday 11 November 2008 12:28, Vladimir Dronnikov wrote: A couple of notes/questions: * An interesting feature of the hook script could be a confirmation dialog (or read -t 5 AREYOUSURE) for reboot/shutdown. Why? If admin said to reboot, we can presume he knows what he is doing. * Is

Re: bb-1.13 modutils-24.c

2008-11-12 Thread Denys Vlasenko
On Wednesday 12 November 2008 23:14, Harald Küthe wrote: / Hello list, // // it looks like we need this patch again but now for modutils-24.c: // http://busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/modutils/insmod.c?rev=23277r1=23271r2=23277

Re: Pending patches

2008-11-13 Thread Denys Vlasenko
On Thursday 13 November 2008 15:14, Vladimir Dronnikov wrote: Do killall5 -KILL first. If it persists... It does :( init locks /dev (console), /proc (self/exe). I thought you do umount -r Try to remount devices as read-only if mount is busy thing. From reboot POV, RO filesystems are as

Re: SVN, stat broken

2008-11-13 Thread Denys Vlasenko
On Thursday 13 November 2008 17:46, Vladimir Dronnikov wrote: Hello, Denys! I get the following --- coreutils/lib.a(stat.o): In function `do_statfs': stat.c:(.text.do_statfs+0x4a): undefined reference to `get_f_fsid' collect2: ld returned 1 exit status --- while compiling current SVN BB.

Re: Pending patches

2008-11-13 Thread Denys Vlasenko
On Thursday 13 November 2008 23:23, Vladimir Dronnikov wrote: I thought you do umount -r Try to remount devices as read-only if mount is busy thing. From reboot POV, RO filesystems are as safe as umounted ones. Does it work? Seems it does. Though I get a storm of runsv complains

Re: inotifyd problems

2008-11-14 Thread Denys Vlasenko
On Friday 14 November 2008 21:58, Vladimir Dronnikov wrote: 1. Every time my agent script runs, a new zombie process is left behind. The same script runs cleanly with a cron program. (this is not the busybox cron). A zombie is a terminated process which is not wait()ed by its parent.

Re: inotifyd problems

2008-11-14 Thread Denys Vlasenko
On Friday 14 November 2008 23:04, Vladimir Dronnikov wrote: You must dispose of your own zombies, or set SIGCHLD to SIG_IGN. the second is a semi-official Linux extension I'm concerned primarily to Linux. Setting SIGCHLD to SIG_IGN would make inotifyd to fire-and-forget the

Re: inotifyd problems

2008-11-14 Thread Denys Vlasenko
On Friday 14 November 2008 23:02, Piotr Grudzinski wrote: No change. Still no M. Works for me: # ./busybox inotifyd echo TODO_config_nommu M TODO_config_nommu (I did mv TODO_config_nommu TODO_config_nommu.x) -- vda ___ busybox mailing list

Re: 1.13.0 coreutils/id.c calls libc getgrouplist()

2008-11-15 Thread Denys Vlasenko
Hi, i'm the culprit!! ;-) As the checks for the missing of getgrouplist in uClibc were in the code...I would dare to say uglyfied the code and due to the fact that i did an integral rewrite of id.c I removed them. The main reason that made me decide to remove the ifdefs was that: 1)

Re: 1.13.0 coreutils/id.c calls libc getgrouplist()

2008-11-16 Thread Denys Vlasenko
On Sunday 16 November 2008 09:18, Tito wrote: On Sunday 16 November 2008 04:21:10 Denys Vlasenko wrote: Maybe we can add some warning like: #if defined (__UCLIBC__) \ (__UCLIBC_MAJOR__ == 0 __UCLIBC_MINOR__ 9) \ || (__UCLIBC_MINOR__ == 9 __UCLIBC_SUBLEVEL__ 30) #warning Sorry, you

Re: Fwd: [patch] busybox unnecessary memmove

2008-11-16 Thread Denys Vlasenko
On Sunday 16 November 2008 22:46, Rob Landley wrote: I was asked forward this optimization patch. I'm not familiar with the part of the code it applies to... Looks safe. Applied, thanks. Saved ~65 bytes. -- vda ___ busybox mailing list

Re: 1.13.0 coreutils/id.c calls libc getgrouplist()

2008-11-16 Thread Denys Vlasenko
On Sunday 16 November 2008 07:02, Rob Landley wrote: Even _current_ versions of uClibc still have nasty bugs. Build busybox tar against uClibc and then try to do tar xvjfC filename.tbz dirname and notice that it complains it can't find file C. That bug's been there in uClibc getopt for

Re: 1.13.0 coreutils/id.c calls libc getgrouplist()

2008-11-16 Thread Denys Vlasenko
On Monday 17 November 2008 00:51, Hamish Moffatt wrote: On Sun, Nov 16, 2008 at 04:04:06PM +0100, Denys Vlasenko wrote: On Sunday 16 November 2008 09:18, Tito wrote: On Sunday 16 November 2008 04:21:10 Denys Vlasenko wrote: Maybe we can add some warning like: #if defined

Re: 1.13.0 coreutils/id.c calls libc getgrouplist()

2008-11-16 Thread Denys Vlasenko
On Monday 17 November 2008 01:23, Hamish Moffatt wrote: On Mon, Nov 17, 2008 at 01:12:35AM +0100, Denys Vlasenko wrote: Fixed, thanks for noticing. Thanks, will you update the patch for 1.13.0? Done. -- vda ___ busybox mailing list busybox

Re: inotifyd problems

2008-11-17 Thread Denys Vlasenko
On Monday 17 November 2008 18:18, Piotr Grudzinski wrote: Will try it later. But, with this solution, it seems that my handler is left waiting for events after it was told not to expect any anymore. You can specify file:MD in order to catch Delete event. I just checked: if I do mv other_file

Re: klogd broken in 1.13.0?

2008-11-18 Thread Denys Vlasenko
On Wednesday 19 November 2008 05:17, Hamish Moffatt wrote: I just switched from busybox 1.11.2 to 1.13.0 for a project and now kernel message logging seems a bit busted. It starts ok but then goes wrong. Application logging seems to work ok still (see the last 5 lines of this example). I

Re: old vi bug still alive ...

2008-11-19 Thread Denys Vlasenko
On Tue, Nov 18, 2008 at 7:48 PM, walter harms [EMAIL PROTECTED] wrote: hi list, i was trying the lasted vi and found the old bug i found in this summer still alive. how to reproduce *compile vi with ENABLE_FEATURE_VI_SETOPTS *start vi *choose insert mode *type tabanycharCR use clippaste

Re: klogd broken in 1.13.0?

2008-11-19 Thread Denys Vlasenko
On Thursday 20 November 2008 00:41, Hamish Moffatt wrote: On Wed, Nov 19, 2008 at 08:45:53AM +0100, Denys Vlasenko wrote: Does it help if you just add this one line? /* 2 -- Read from the log. */ n = klogctl(2, log_buffer + used, KLOGD_LOGBUF_SIZE-1

Re: dpkg version comparison bug

2008-11-19 Thread Denys Vlasenko
On Wednesday 19 November 2008 22:54, Eugene T. Bordenkircher wrote: Hello all, Below, you'll find a patch against the current SVN head to fix a couple of bugs in the version comparison code for dpkg. As a brief explanation: (1) the old code did not handle epochs that were greater than a

Re: inotifyd problems

2008-11-19 Thread Denys Vlasenko
On Tuesday 18 November 2008 18:33, Vladimir Dronnikov wrote: So we should implicitly add IN_IGNORED to the watching mask regardless the user specified it on not. Then, after we have wait()ed for the agent, we should check whether IN_IGNORED is in received event mask, and exit if it is.

Re: [PATCH] wget: add timeout parameter

2008-11-19 Thread Denys Vlasenko
On Tuesday 18 November 2008 13:56, Matthias Kaehlcke wrote: Thanks for the updated patch, i'll test and apply it soon (unless somebody beats me to it). If you experience size-increase with using quiet instead of looking at opt (i didn't try), then please follow-up. here is a new version

Re: diff -Naur

2008-11-19 Thread Denys Vlasenko
On Tuesday 18 November 2008 13:24, Vladimir Dronnikov wrote: Hello, Denys! Using the subj from current SVN I get the patches which do not substitute /dev/null for missing or being deleted files. Is it intended? Are you saying that older versions were doing this, and now it broke? I just

Re: cleanup:networking/interface.c

2008-11-19 Thread Denys Vlasenko
On Tuesday 18 November 2008 16:08, walter harms wrote: this is a cleanup patch that does not change code only rearrange it. the whole idea is to have better readable code. all size changes are due to the compiler. NTL it would be nice if someone who used IPV6 could confirm that is still

Re: dpkg version comparison bug

2008-11-20 Thread Denys Vlasenko
On Wednesday 19 November 2008 22:54, Eugene T. Bordenkircher wrote: Hello all, Below, you'll find a patch against the current SVN head to fix a couple of bugs in the version comparison code for dpkg. As a brief explanation: (1) the old code did not handle epochs that were greater than a

Re: mysterious segfault with busybox 1.13.0 ash

2008-11-21 Thread Denys Vlasenko
On Fri, Nov 21, 2008 at 10:08 AM, Natanael Copa [EMAIL PROTECTED] wrote: On Fri, 2008-11-21 at 10:54 +0200, Timo Teräs wrote: Looks like ash was broken in commit r23583 where the node type defines were changed, but related arrays were not updated. Especially the node size table which affects

Re: old vi bug still alive ...

2008-11-21 Thread Denys Vlasenko
On Thu, Nov 20, 2008 at 5:39 PM, walter harms [EMAIL PROTECTED] wrote: hi Denys, the patch seems to work, i was unable to replicate the bug. i had the feeling that vi is solower now, but i may be wrong since i crashed early most times. Yes. For example, again, when you press Enter autoindent

Re: mysterious segfault with busybox 1.13.0 ash

2008-11-21 Thread Denys Vlasenko
On Friday 21 November 2008 18:33, Cristian Ionescu-Idbohrn wrote: This patch should be added to fixes 1.13.0 http://busybox.net/downloads/fixes-1.13.0/busybox-1.13.0-ash.patch CC shell/ash.o shell/ash.c:7578: error: 'NTO2' undeclared here (not in a function) shell/ash.c:7578:

Re: busybox output to lcd display

2008-11-22 Thread Denys Vlasenko
On Saturday 22 November 2008 18:15, Sudipta GHOSH wrote: I am unable to see the busybox output in the lcd display. output from busybox is going to the serial port. but I can see the boot logo in the lcd display and all printk output is displayed in the lcd. I use console=tty0 in the

Re: bb-1.13 modutils-24.c

2008-11-22 Thread Denys Vlasenko
On Friday 21 November 2008 14:51, Timo Teräs wrote: Bernhard Reutner-Fischer wrote: On Fri, Nov 21, 2008 at 02:11:05PM +0100, Natanael Copa wrote: On Fri, 2008-11-21 at 14:34 +0200, Timo Teräs wrote: Ok, this is what I came up with so far. I originally wrote the modutils replacement

Re: chop down long menulists

2008-11-22 Thread Denys Vlasenko
On Thursday 20 November 2008 18:03, walter harms wrote: hi list, i had some trouble finding some specific item in the bb menu structure. the problem was simply the last entries where outside my terminal. that means they are way to long. I do not understand. Where exactly were you trying to

Re: cleanup:networking/interface.c

2008-11-22 Thread Denys Vlasenko
On Thursday 20 November 2008 09:08, walter harms wrote: On Tuesday 18 November 2008 16:08, walter harms wrote: this is a cleanup patch that does not change code only rearrange it. the whole idea is to have better readable code. all size changes are due to the compiler. NTL it would be

Re: [Fwd: [alpine-devel] fdisk segmentation fault]

2008-11-22 Thread Denys Vlasenko
On Wednesday 19 November 2008 09:32, Natanael Copa wrote: I'm forwarding this. He has busybox-1.12.1 and as far i can see there are no fixes for fdisk for 1.12.1 or 1.12.2 the following config options might be of interest: CONFIG_LFS=y CONFIG_FDISK=y CONFIG_FDISK_SUPPORT_LARGE_DISKS=y

Re: bb-1.13 modutils-24.c

2008-11-22 Thread Denys Vlasenko
On Wednesday 12 November 2008 23:14, Harald Küthe wrote: / Hello list, // // it looks like we need this patch again but now for modutils-24.c: // http://busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/modutils/insmod.c?rev=23277r1=23271r2=23277

Re: Console/terminal mixup with bb-1.13

2008-11-23 Thread Denys Vlasenko
On Wednesday 12 November 2008 23:14, Harald Küthe wrote: The console output / terminal seems to get mixed up, I never noticed this before. init started: BusyBox v1.13.0 (2008-11-12 20:52:59 CET Please press Enter to activate th BusyBox

Re: busybox output to lcd display

2008-11-23 Thread Denys Vlasenko
On Saturday 22 November 2008 19:56, Sudipta GHOSH wrote: What I am missing or any info you want? In my development board, I use uboot as boot loader. busybox files are in flash. when I boot , I can see the boot logo (peguin) in the lcd display and all printk output. But I am unable to

Re: diff -Naur

2008-11-23 Thread Denys Vlasenko
On Saturday 22 November 2008 19:14, Vladimir Dronnikov wrote: a diff that compares /dev/null Denys, please apply http://drvv.ru/busybox/diff.patch which seems to solve the issue. # make HOSTCC applets/usage GEN include/usage_compressed.h CC applets/applets.o LD

Re: [PATCH] strings: size reduction

2008-11-23 Thread Denys Vlasenko
On Saturday 22 November 2008 15:43, Tito wrote: Hi. this patch removes one not needed var from strings.c and saves a little size. strings_main 393 371 -22 It also adds the year to the copyright statement. Applied, thanks! -- vda

Re: mount -a remounts tmpfs entries: bug or feature?

2008-11-23 Thread Denys Vlasenko
On Friday 07 November 2008 03:01, [EMAIL PROTECTED] wrote: busybox's implementation of mount differs from the standalone version in not refusing to mount entries on top of each other. With tmpfs entries where it's actually possible to do this, it succeeds. That is, if you have a tmpfs entry

Re: patch:vi.c use xstrndup() instead of private copy

2008-11-23 Thread Denys Vlasenko
On Sunday 23 November 2008 18:14, walter harms wrote: do not use private copy of strndup() Applied, thanks! -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: patch: remove copy loop that makes vi crawl with longer lines

2008-11-23 Thread Denys Vlasenko
On Sunday 23 November 2008 17:46, walter harms wrote: remove copy loop that makes vi crawl with longer lines. Applied, thanks! -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: Booting linux in a board sam9_l9260 from olimex

2008-11-23 Thread Denys Vlasenko
On Sunday 23 November 2008 15:48, Paulo Silva(OpenSoftware) wrote: I have a strange problem, when a try to boot linux in this board. I am using: CPU AT91SAM9260. 64MBytes of ram, Bootstrap from Atmel. compiled with GCC arm-elf-gcc version 3.4.3 U-Boot version - 1.3.4. compiled with GCC

Re: How does udhcpc determine dhcp timeout?

2008-11-24 Thread Denys Vlasenko
On Monday 24 November 2008 19:32, Donovan Jay-MGIA2023 wrote: Greetings, I need to understand the timeout algorithm for udhcpc when no dhcp server is available. Is there a description somewhere in the archives? Is there a searchable archive somewhere for future questions? Can this pass as

Re: svn: Malformed network data

2008-11-24 Thread Denys Vlasenko
On Monday 24 November 2008 16:23, Gilles Espinasse wrote: Looking to update local svn repository, svn up fail with svn: Malformed network data In fact, that repository was on 11_stable tree. I remove it and try again with svn co svn://busybox.net/branches/busybox_1_12_stable svn: Malformed

Re: busybox-1.12.1=1.12.2 ash regression

2008-11-24 Thread Denys Vlasenko
On Monday 24 November 2008 15:55, Gilles Espinasse wrote: Just upgrading to busybox1.12.2 our installer, the first newt screen has some border characters instead of the usual lines. Second or later screens have normal appearance. tty1 and other tty configuration is made in inittab with

Re: mount -a remounts tmpfs entries: bug or feature?

2008-11-24 Thread Denys Vlasenko
On Monday 24 November 2008 14:59, Rob Landley wrote: On Sunday 23 November 2008 09:01:35 Denys Vlasenko wrote: On Friday 07 November 2008 03:01, [EMAIL PROTECTED] wrote: busybox's implementation of mount differs from the standalone version Back in the 1.1 timeframe I rewrote it more

Re: Bug in ampersand handling in 1.13.0's ash

2008-11-24 Thread Denys Vlasenko
On Monday 24 November 2008 23:53, Wilmer van der Gaast wrote: After lots of experimenting, I finally found the bug that was bothering me for ages: I'm replacing components of a Netgear router root filesystem with newer stuff (adding IPv6 support, upgrading to a newer BusyBox with more applets,

Re: Console/terminal mixup with bb-1.13

2008-11-24 Thread Denys Vlasenko
On Monday 24 November 2008 09:32, Roy Marples wrote: On Sun, 2008-11-23 at 20:46 +0100, Harald Küthe wrote: /* Make sure init can't be blocked by writing to stderr */ fcntl(STDERR_FILENO, F_SETFL, fcntl(STDERR_FILENO, F_GETFL) | O_NONBLOCK); Can you confirm that just

Re: mount -a remounts tmpfs entries: bug or feature?

2008-11-25 Thread Denys Vlasenko
On Tuesday 25 November 2008 08:16, Roy Marples wrote: On Tue, 2008-11-25 at 03:04 +0100, Denys Vlasenko wrote: On Monday 24 November 2008 10:21, Ralf Friedl wrote: Vladimir Dronnikov wrote: run 'mount -a' over and over you get stacking mounts Personally, I'd like

Re: Booting linux in a board sam9_l9260 from olimex

2008-11-25 Thread Denys Vlasenko
On Tuesday 25 November 2008 04:55, Paulo Silva(OpenSoftware) wrote: Denys Vlasenko escreveu: Try to build your own toolchain using Rob's Firmware Linux: http://landley.net/code/firmware/ I downloaded the firmware-0.9.0 and build the cross-compiler, after then, compiled the busybox

Re: date and ISO-8601

2008-11-25 Thread Denys Vlasenko
On Thursday 25 September 2008 19:09, Piotr Grudzinski wrote: Here are some problems with the date applet and ISO-8601 as of BB 1.12.1 1. Colon separator - use it (extended format) or not (basic format). BB seems to mix both: # date -Iseconds 2008-11-25T12:46:43-0500 There is a missing

Re: inotifyd problems

2008-11-25 Thread Denys Vlasenko
On Tuesday 25 November 2008 19:13, Vladimir Dronnikov wrote: Would it be too much of a trouble to have inotify_rm_watch() for each inotify_add_watch() call and a close() matching inotify_init()? Not at all. But the final close() is performed by the system at exit(), I believe.

Re: mount -o bind ... returns invalid argument

2008-11-25 Thread Denys Vlasenko
On Tuesday 25 November 2008 16:41, Christian Pössinger wrote: In addition to the following bug http://busybox.net/bugs/view.php?id=3074 and message http://www.busybox.net/lists/busybox-cvs/2008-April/012703.html I want to state a comment: Vda is right by saying that it's working on his

Re: Antw: Re: udhcpc (1.12.1) - Problem with usb ?!

2008-11-25 Thread Denys Vlasenko
On Tuesday 25 November 2008 14:03, Manuel Sahm wrote: I have an Atmel AT91SAM9260 with an usb-host and usb device port. I plug in my usb wlan stick in the usb host port. Then I establish a connection to a router. The ifplugd recognizes a connection. Then i start the udhcpc ( udhcpc

Re: passwd from stdin

2008-11-26 Thread Denys Vlasenko
On Wednesday 26 November 2008 14:34, Matthew Hiles wrote: Perhaps I am missing something, but why can't you recompile busybox and just replace the busybox binary? The only thing you would have to do then is add a symlink to chpasswd. Sorry if I missed the requirement, I realize how

Re: diff -Naur

2008-11-26 Thread Denys Vlasenko
On Saturday 22 November 2008 19:14, Vladimir Dronnikov wrote: a diff that compares /dev/null Denys, please apply http://drvv.ru/busybox/diff.patch which seems to solve the issue. Applied. Thanks. -- vda ___ busybox mailing list

Re: busybox-1.12.1=1.12.2 gzip regression (was ash regression)

2008-11-27 Thread Denys Vlasenko
On Thursday 27 November 2008 17:59, Gilles Espinasse wrote: Can you try just replacing while (*envp) putenv(*envp++); with environ = envp; Does this work? First I find a very different issue that may explain the problem encountered. We will see

Re: Bug in ampersand handling in 1.13.0's ash

2008-11-27 Thread Denys Vlasenko
On Tuesday 25 November 2008 23:22, Wilmer van der Gaast wrote: Hey Denys! 2008/11/25 Denys Vlasenko [EMAIL PROTECTED]: Try attached patch Done. The problem's partially fixed: /tmp # ./ash -c 'echo 1' 1 However, the is still not detected. This can be tested using: /tmp # ./ash

Re: here document bug in 1.13.0

2008-11-27 Thread Denys Vlasenko
On Wednesday 26 November 2008 03:40, Aras Vaichas wrote: I just upgraded from 1.12.0 to 1.13.0 and noticed that many of my shell scripts seg faulted. I traced the problem to here documents inside nested functions. Here is an test example: --- SNIP --- #!/bin/sh function1() { echo

Re: 'kill 0' from cron script kills crond

2008-12-02 Thread Denys Vlasenko
On Tuesday 02 December 2008 17:40, Jeroen van der Vegt wrote: Hello, We're using Busybox on an embedded ARM platform. We'd like to have a script running from cron every minute. To terminate any remaining child processes, we'd like to perform the 'kill 0' command at the end of the script.

Re: [PATCH RESEND] clean up bb_pwd.c

2008-12-02 Thread Denys Vlasenko
On Monday 24 November 2008 14:48, Tito wrote: Hi Denys, Just a remainder, is there any interest in these patches or should i drop them. In passwd_main(): /* Will complain and die if username not found */ - myname = xstrdup(bb_getpwuid(NULL, -1, myuid)); + myname =

Re: [PATCH RESEND] clean up bb_pwd.c

2008-12-03 Thread Denys Vlasenko
On Wednesday 03 December 2008 09:02, Tito wrote: On Wednesday 03 December 2008 08:50:11 Tito wrote: On Tuesday 02 December 2008 23:57:34 you wrote: On Monday 24 November 2008 14:48, Tito wrote: Hi Denys, just out of curiosity, I noticed you changed /* Parse any options */

Re: 'kill 0' from cron script kills crond

2008-12-03 Thread Denys Vlasenko
On Wednesday 03 December 2008 09:24, Bernhard Reutner-Fischer wrote: This means that standard cron puts each child into new process group. (BTW, this standard crond - what --version and/or --help says?) Please try this patch, does it fix the problem? please use bb_setpgrp (see platform.h).

Re: svn commit: trunk/busybox/networking/libiproute

2008-12-04 Thread Denys Vlasenko
On Wednesday 03 December 2008 22:12, Bernhard Reutner-Fischer wrote: On Wed, Dec 03, 2008 at 12:16:12PM -0800, [EMAIL PROTECTED] wrote: Author: vda Date: 2008-12-03 12:16:11 -0800 (Wed, 03 Dec 2008) New Revision: 24253 Log: iptunnel: fix problems with including linux/ip_tunnel.h on some

Re: [PATCH] xgetgrnam + addgroup race patch

2008-12-05 Thread Denys Vlasenko
On Wednesday 03 December 2008 23:59, Tito wrote: Hi Denys, this patch adds xgetgrnam to bb_pwd.c and fixes a race you noticed in addgroup.c Bloat-o-meter says: function old new delta xgetgrnam -

Re: udhcp client -how to negotiate mtu ?

2008-12-08 Thread Denys Vlasenko
On Monday 08 December 2008 04:56, Akhila A wrote: Hi, I am trying to use udhcp client on my Ethernet connection. How to request for particular MTU value ? Is there any option to make client to negotiate a particular MTU value ? # udhcpc --help BusyBox v1.14.0.svn (2008-11-30 19:48:45

Re: Lost last character in messages(init.c)

2008-12-09 Thread Denys Vlasenko
On Tuesday 09 December 2008 18:54, Aleksei Makhaloff wrote: Trouble: lost the lastest character in messages(init.c) Log example: Low memory, forcing swapo cannot run 'mount': Invalid argumen The system is going down NOW Sending SIGTERM to all processe Sending SIGKILL to all processe

Re: syslogd remote logging regression

2008-12-09 Thread Denys Vlasenko
On Tuesday 09 December 2008 13:09, Alexander Griesser wrote: Hi all, Today I was trying to set up remote logging on my thinclients using the syslogd applet in 1.13.1. Out of the box, it didn't work, I used the following command to start syslogd: syslogd -L -R logserver.local So,

Re: udhcpd returns SO_BINDTODEVICE

2008-12-10 Thread Denys Vlasenko
On Monday 08 December 2008 11:03, Darius wrote: Hi All, I want to launch udhcpd for my usb0 interface. But it returns udhcpd: SO_BINDTODEVICE: No such device I have DHCP support in my kernel config enabled. There below is udhcpd config file: start 192.168.90.20 end

Re: Lost last character in messages(init.c)

2008-12-10 Thread Denys Vlasenko
On Wednesday 10 December 2008 10:10, walter harms wrote: diff -urN busybox-1.13.0.old/init/init.c busybox-1.13.0.new/init/init.c --- busybox-1.13.0.old/init/init.c 2008-12-09 20:30:31.0 +0300 +++ busybox-1.13.0.new/init/init.c 2008-12-09 20:20:22.0 +0300 @@ -118,7

Re: printf without any argument exits ash

2008-12-10 Thread Denys Vlasenko
On Wednesday 10 December 2008 11:51, Alexander Griesser wrote: Another strange problem I encountered today and I'm not sure if it's my fault: When running busybox on my desktop system (or on my thinclients, doesn't matter) I encountered a strange problem with the printf applet today

Re: mount -a remounts tmpfs entries: bug or feature?

2008-12-10 Thread Denys Vlasenko
On Tuesday 25 November 2008 13:30, Rob Landley wrote: Other that NFS code - what places you don't like Rob? An #ifdef for _dietlibc_, If someone sends me a patch for this, I conclude they do build it against dietlibc. Why not help them? special casing rootfs, special casing shared subtree

Re: udhcpd returns SO_BINDTODEVICE

2008-12-10 Thread Denys Vlasenko
On Wednesday 10 December 2008 13:08, Alexander Griesser wrote: Denys Vlasenko wrote: start 192.168.90.20 end192.168.90.254 interface usb0 opt dns 10.10.10.10 option subnet 255.255.255.0 opt router 10.10.10.10 option domain local

Re: mount -a remounts tmpfs entries: bug or feature?

2008-12-10 Thread Denys Vlasenko
On Wednesday 10 December 2008 21:16, Cathey, Jim wrote: The big advantage of if (FOO) instead of #if FOO is that you always get to compile test all configurations (even if the code it later eliminated by the compiled). That's a pretty big deal as the number of configuration settings go up.

Re: AW: Busybox, symlinks, and ls behavior

2008-12-11 Thread Denys Vlasenko
On Thursday 11 December 2008 23:32, alexander.gries...@lkh-vil.or.at wrote: Why does busybox ls test_sym output not place the correct output into the output file? Cannot reproduce that with 1.13.1, so if a bug like this was in, it has been fixed in the current Stable version. Yes, I

Re: Let tar extract files 8G

2008-12-11 Thread Denys Vlasenko
Hi Ian! On Thursday 11 December 2008 22:04, Ian Wienand wrote: The 12 octal digits for size give each file a maximum size 8G. GNU tar encodes sizes larger than this with a base-256 encoding, and marks the top bit of the size set to indicate this. I thought tar uses pax extensions for

Re: patch: miscutils/watchdoc.c

2008-12-14 Thread Denys Vlasenko
On Saturday 13 December 2008 16:58, walter harms wrote: the introduction of WDIOC_SETTIMEOUT add some problems for 2.4 kernels. 1. linux/watchdog.h does not include linux/types.h 2. WDIOC_SETTIMEOUT may not be defined the patch make it compile again. +#ifdef WDIOC_SETTIMEOUT

Re: df k,m and h options don't do anything in 1.13.1

2008-12-14 Thread Denys Vlasenko
On Monday 15 December 2008 06:36, Aras Vaichas wrote: I'm running 1.13.1 with all hot-fixes. I just noticed that the k, m and h options don't work anymore. Please send your .config. Work for me (my .config is attached): # ./busybox df Filesystem 1K-blocks Used Available Use%

Re: ash and cyrillic letters

2008-12-14 Thread Denys Vlasenko
On Sunday 14 December 2008 17:41, Vladimir Dronnikov wrote: ash started to dislike cyrillic letters again: echo Видны ли русские буквы? causes Syntax error. Unterminated quoted string I recall my ancient report on this issue. AFAIK the problem was in typecasting, when chars = 0x80 were

Re: compilation problem , missing libraries

2008-12-16 Thread Denys Vlasenko
On Tuesday 16 December 2008 08:34, Mr frÿffe9dÿffe9ric pouchal wrote: LINKbusybox_unstripped Trying libraries: crypt m Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group Output of: gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused

Re: printf without any argument exits ash

2008-12-16 Thread Denys Vlasenko
On Tuesday 16 December 2008 10:55, Michael Abbott wrote: On Wed, 10 Dec 2008, Denys Vlasenko wrote: But, when I run printf without any argument, it simply kills the shell http://busybox.net/downloads/fixes-1.13.1/busybox-1.13.1-printf.patch A couple of thoughts: 1. This patch needs

Re: SUSv3 who for Busybox

2008-12-17 Thread Denys Vlasenko
On Wednesday 10 December 2008 18:31, walter harms wrote: hi list, i have merged the latest suggestions into i did some clean up (removed #if 0), merged printf statements and removed the double checked option someone may want to make better use of opt_complementary i am not sure who to

Re: SUSv3 who for Busybox

2008-12-18 Thread Denys Vlasenko
if (option_mask32 OPT_m) { name = ttyname(STDIN_FILENO); if (!name) fprintf(stderr, stdin not a tty\n); else /* skip leading dev */ if (!strncmp(name, /dev/, 5))

Re: still trying to figure out how telnetd can change the search PATH

2008-12-23 Thread Denys Vlasenko
On Tuesday 23 December 2008 20:09, Robert P. J. Day wrote: On Tue, 23 Dec 2008, Vladimir Dronnikov wrote: Again, telnetd spawn /bin/login or whatever you specify with -l option; thus telnetd has nothing to do with $PATH on its own. Have you checked your login helper, Robert? i

Re: patch: sysctl

2008-12-23 Thread Denys Vlasenko
On Monday 22 December 2008 19:33, xm...@email.cz wrote: Hi Denis, this patch extends the functionality of sysctl. example: xm...@debian:~/BusyBox/busybox-1.13.0$ ./busybox sysctl fs.mqueue fs.mqueue.queues_max = 256 fs.mqueue.msg_max = 10 fs.mqueue.msgsize_max = 8192 Applied,

Re: still trying to figure out how telnetd can change the search PATH

2008-12-24 Thread Denys Vlasenko
On Wednesday 24 December 2008 10:03, Alexander Kriegisch wrote: Unlike bash, ash does not have anything like ~/.bashrc, which could be useful here. My BusyBox version is 1.9.0 and in it Ash supports ~/.profile as well as /etc/profile. So unless this has been refactored out of BB, it should

Re: still trying to figure out how telnetd can change the search PATH

2008-12-24 Thread Denys Vlasenko
On Wednesday 24 December 2008 00:29, Denys Vlasenko wrote: On Tuesday 23 December 2008 20:09, Robert P. J. Day wrote: On Tue, 23 Dec 2008, Vladimir Dronnikov wrote: Again, telnetd spawn /bin/login or whatever you specify with -l option; thus telnetd has nothing to do with $PATH on its

Re: [PATCH] Grammatical oops in usage.h: an user - a user

2008-12-24 Thread Denys Vlasenko
On Wednesday 24 December 2008 21:02, Robert P. J. Day wrote: Signed-off-by: Robert P. J. Day rpj...@crashcourse.ca --- Index: include/usage.h === --- include/usage.h (revision 24532) +++ include/usage.h (working copy)

Re: what's the proper format for include/usage.h to not mangle output?

2008-12-25 Thread Denys Vlasenko
On Thursday 25 December 2008 11:36, Robert P. J. Day wrote: i've been refreshing my memory on the usage of a number of BB applets, and it's obvious that the format of the usage.h file lends itself to some mangled output in terms of HTML. as i read it, defining the trivial usage of an

Re: [PATCH] Remove vestiges of obsolete TOPDIR.

2008-12-25 Thread Denys Vlasenko
On Wednesday 24 December 2008 20:33, Robert P. J. Day wrote: Since the only remaining references to TOPDIR are in shell/ash_test/run-all and that's a fully self-contained script, there is no further need to hang on to the few remaining references to TOPDIR. Entire build system has TONS of

Re: sysctl

2008-12-28 Thread Denys Vlasenko
On Sunday 28 December 2008 20:46, Vladimir Dronnikov wrote: Hello! Attached is a fix for sysctl to compile cleanly when CONFIG_WERROR is on. Please, consider applying. Applied. Use char *value = value; in order to not generate useless code. -- vda

Re: my print not coming in dhcp client code

2008-12-29 Thread Denys Vlasenko
On Monday 29 December 2008 17:05, Vasant wrote: I added one print inside for loop in dhcpc.c file to see what was the state, first time I get that print, after that onwards print doesnot come on console, looklike timeout issue, does anybody have this issue?. Show your code. -- vda

<    7   8   9   10   11   12   13   14   15   16   >