Re: Command line editing give a wrong result for me on hush shell 1.9.1

2008-02-18 Thread Denys Vlasenko
On Tuesday 19 February 2008 01:58, Martinb_ARM_NOMMU_KISSDVD wrote: Its hard to believe but that's just the point if I leave your comments its working if I do ./hush 2/dev/null it ok but if I remove the comments and recompile its NOT ok I don't get this ? the code is: if

Re: [patch] FEATURE_CHAT_* depends on CHAT

2008-02-19 Thread Denys Vlasenko
On Tuesday 19 February 2008 11:15, Cristian Ionescu-Idbohrn wrote: Trivial. Applied. -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: [patch] - bbsplash applet

2008-02-19 Thread Denys Vlasenko
On Tuesday 19 February 2008 11:35, Michele Sanges wrote: +static inline void fb_open(void) Drop inline everywhere. gcc will inline as appropriate itself. Done. Yes, I know about gcc but... Il giorno ven, 08/02/2008 alle 14.28 +0100, Bernhard Fischer ha scritto: + //

Re: [patch] util-linux/mount.c

2008-02-19 Thread Denys Vlasenko
On Tuesday 19 February 2008 11:55, Cristian Ionescu-Idbohrn wrote: Trivial fix for build error when ENABLE_FEATURE_MOUNT_LABEL is undefined. Both patches are applied, thanks. -- vda ___ busybox mailing list busybox@busybox.net

Re: ash r21030 broken?

2008-02-19 Thread Denys Vlasenko
On Tuesday 19 February 2008 13:57, Cristian Ionescu-Idbohrn wrote: This kills the shell too: # echo $RUNLEVEL 3 # for file in /etc/rc$RUNLEVEL.d/S??*; do echo $file;done sh (pid 82) segfaults for page address 20188000 at pc 355a06a6 But this line: for file in

Re: busybox tar supporting -p option (preserving permissions)

2008-02-19 Thread Denys Vlasenko
On Tuesday 19 February 2008 20:12, Aizer Danny-BDA023 wrote: Hi Denys, You are right - this is related to fact that the tar command is executed in a post-install scriptlet of an RPM package: From rpm.spec: ... %post ... tar -zxvf patch.tar.gz ... The rpm command (rpm --install

Re: ash r21030 broken?

2008-02-19 Thread Denys Vlasenko
On Tuesday 19 February 2008 22:12, Cristian Ionescu-Idbohrn wrote: On Tue, 19 Feb 2008, Denys Vlasenko wrote: Is this on x86 with .config I sent? No. It's my config. Comes in an attachment. I can reproduce it. But when I flip # CONFIG_ASH_MAIL is not set to Y, it disappears. Does

Re: ash r21030 broken?

2008-02-20 Thread Denys Vlasenko
On Wednesday 20 February 2008 17:37, Denys Vlasenko wrote: On Wednesday 20 February 2008 11:46, Cristian Ionescu-Idbohrn wrote: Yes. We were using uninitialized data on stack. Right. Fix is attached. Please test. Looks much better. I'll test on my embedded systems too

Re: msh stdin, fcntl nonblock on stdin by child of child

2008-02-20 Thread Denys Vlasenko
On Wednesday 20 February 2008 17:39, Jate Sujjavanich wrote: I run a script in the background which starts dropbear client. Dropbear sets stdin to non-blocking. This causes my msh shell in the foreground to print infinite prompts because lineedit is expecting a blocking read (in safe_read).

Re: msh stdin, fcntl nonblock on stdin by child of child

2008-02-20 Thread Denys Vlasenko
On Wednesday 20 February 2008 20:48, Denys Vlasenko wrote: On Wednesday 20 February 2008 17:39, Jate Sujjavanich wrote: I run a script in the background which starts dropbear client. Dropbear sets stdin to non-blocking. This causes my msh shell in the foreground to print infinite prompts

Re: msh stdin, fcntl nonblock on stdin by child of child

2008-02-20 Thread Denys Vlasenko
On Wednesday 20 February 2008 17:39, Jate Sujjavanich wrote: I run a script in the background which starts dropbear client. Dropbear sets stdin to non-blocking. This causes my msh shell in the foreground to print infinite prompts because lineedit is expecting a blocking read (in safe_read).

Re: ash.c: monitor()

2008-02-21 Thread Denys Vlasenko
On Thursday 21 February 2008 15:14, walter harms wrote: Hi list, i have enabled PROFILE in ash.c now he is missing a call called monitor(). did i miss something or can we remove the PROFILE stuff ? I don't know how PROFILE is supposed to work, I only suspect it's some kind of support for

Re: PATCH: new applet lpq,lpr (next round)

2008-02-22 Thread Denys Vlasenko
On Monday 18 February 2008 13:35, walter harms wrote: hi list, i have incorporated a bunch of improvement (thanks to vda). -lpr still has a verbose mode what can be used to locate trouble spots -lpr still generates a controlfile in the localdir (will be fixed soon) Was going to reply with

Re: patch: applet_tables.c

2008-02-22 Thread Denys Vlasenko
On Friday 22 February 2008 19:08, walter harms wrote: code cleanup Applet_tables should make use of the ARRAY_SIZE macro. --- applets/applet_tables.c.org 2008-02-22 19:06:25.0 +0100 +++ applets/applet_tables.c 2008-02-22 19:05:53.0 +0100 @@ -32,7 +32,7 @@ /* Define

Re: SERIAL CONSOLE.

2008-02-22 Thread Denys Vlasenko
On Saturday 23 February 2008 00:02, Denys Vlasenko wrote: On Friday 22 February 2008 00:50, Ezequiel Larrarte wrote: I 'm trying to build a very simple system using: static kernel+initramfs+busybox+uclibc+serial console: Which version of busybox? 1 - compile a static kernel - /boot

Re: Ответ: LPR: code cleanup++

2008-02-22 Thread Denys Vlasenko
On Thursday 21 February 2008 16:47, Vladimir Dronnikov wrote: That IMHO IS the question: is typical BB lpr application is, say, automated printing to the usually available printer (say, cheque printer) and in this case pdq's approach rules, or to print interactively to a lpd queue? Well, this

Re: rewrite: watch.c next round

2008-02-24 Thread Denys Vlasenko
On Saturday 23 February 2008 17:43, walter harms wrote: hi list, tito pointed out some small improvements also i moved char *header into the if-block i was also playing with a reversed color header to improve readability but dropped that idea again. please apply Applied with small

Re: new applet: script

2008-02-24 Thread Denys Vlasenko
On Sunday 24 February 2008 00:56, Pascal Bellard wrote: Hello, Please find attached a patch to add script feature in busybox. May be usefull to log boot output, report bugs... static FILE *fscript; You seem to ever use it only for fwrite(), not fprintf. Just use low-level fd-based I/O

Re: LPR applet

2008-02-24 Thread Denys Vlasenko
On Sunday 24 February 2008 13:14, [EMAIL PROTECTED] wrote: Hi! Try this, plz! 1352 vs. 1933 bytes. Wow, what compiler do you use? I am getting over 1400 for both with gcc 4.1.2: # size busybox.t5/printutils/*.o textdata bss dec hex filename 392 0 0

Re: xgethostname()

2008-02-24 Thread Denys Vlasenko
On Saturday 23 February 2008 18:16, walter harms wrote: I don't see any obvious reason why this is segfaulting, *ptr_to_globals seems to have reasonable contents. I'm using uClibc-0.9.28.2 and I haven't had problems with gethostname() before. 'hostname -f' also calls gethostname() and it

Re: xgethostname()

2008-02-24 Thread Denys Vlasenko
On Sunday 24 February 2008 15:03, Tito wrote: are you sure about HOST_NAME_MAX ? according to my includes sizeof(uname.nodename) = _UTSNAME_NODENAME_LENGTH = _UTSNAME_LENGTH = 65 and MAXHOSTNAMELEN= 64 while _POSIX_HOST_NAME_MAX = 255 HOST_NAME_MAX= 64 the

Re: shrinking miscutils/less.c a bit

2008-02-24 Thread Denys Vlasenko
On Sunday 24 February 2008 16:03, Nico Erfurth wrote: Reordering opp_bracket in less.c helped in shrinking it a bit. Applied, thanks. -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: LPD applet

2008-02-24 Thread Denys Vlasenko
On Sunday 24 February 2008 22:24, [EMAIL PROTECTED] wrote: Hi! Cosmetic changes to lpr. - if (bb_copyfd_size(fd, STDOUT_FILENO, st.st_size) != st.st_size) { - // We're screwed. We sent less bytes than we advertised. -

Re: LPD applet

2008-02-24 Thread Denys Vlasenko
On Sunday 24 February 2008 22:24, [EMAIL PROTECTED] wrote: Hi! Cosmetic changes to lpr. New applet: tiny lpd. Seems to be working with lp[rq] applets :) Needs to be tested on real printing device and I do not have any... mixing stdio and fd I/O on same source doesn't work. Fixed. See svn.

Re: Open HTML File

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 10:34, Bastien DEBLAIS wrote: Hi, I'm new with BusyBox (that I use with Asterisk telephony server, BusyBox V1.0). I want to make a command line to open a HTML file; how can I do It? /I tried 'wget' (wget -q http://admin:[EMAIL

Re: [PATCH] safe_gethostname

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 00:46, Tito wrote: Hi, this is a preliminary patch that adds the new libbb function safe_gethostname and converts all occurrences of gethostname to it. +char *safe_gethostname(void) +{ + struct utsname uts; + /* The length of the arrays in a struct

Re: LPD applet: another approach

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 21:18, [EMAIL PROTECTED] wrote: The design is improved: IMHO it is better to use flexible scripts instead of rigid logic of appending data files to printer device or dump files. The job file now is created as follows: the content of control file, then single

Re: new applet: script

2008-02-25 Thread Denys Vlasenko
On Sunday 24 February 2008 23:58, Pascal Bellard wrote: Here is the updated patch. static void finish(int sig) How about less cryptic one ? Maybe I'm wrong, but I want to catch all pending signals. I mean: other people will read your code. Many of them are less talented than you.

Re: busybox 1.9.1 syslogd segfaults on startup

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 22:17, Clem Taylor wrote: On Sat, Feb 23, 2008 at 2:58 AM, Tito [EMAIL PROTECTED] wrote: /* Store away localhost's name before the fork */ if (gethostname(G.localHostName, 64 -1) != 0) bb_error_msg_and_die(gethostname); /* It is

Re: busybox 1.9.1 syslogd segfaults on startup

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 23:47, Clem Taylor wrote: can you test whether other libc functions will crash similarly? memset(G.localHostName, 0x77, 63); // crashes or not? memset(G.localHostName, 0x77, 64); // crashes or not? If they don't crash, then gethostname does not just

Re: Ответ: LPD applet: another approach

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 22:02, Vladimir Dronnikov wrote: I've tried LPD from SVN 21112 and it worked fine. And of course I do not urge you to apply the last patch. I just wanna share as soon as possible an idea which has come recently and may be much more fruitful. It's very nice to have

Re: Open HTML File

2008-02-25 Thread Denys Vlasenko
On Monday 25 February 2008 16:00, Bastien DEBLAIS wrote: Thanks for your reply. I've use 'wget' (wich work for me) because I don't know how simply open a HTML file. The aim I want to do: control a device (a power switch) through HTTP order. This device have to recieve a command like:

Re: busybox 1.9.1 syslogd segfaults on startup

2008-02-25 Thread Denys Vlasenko
On Tuesday 26 February 2008 01:32, Clem Taylor wrote: On Mon, Feb 25, 2008 at 6:30 PM, Denys Vlasenko [EMAIL PROTECTED] wrote: Hmm. I have an idea. Go to libbb.h and delete const here: extern struct globals *const ptr_to_globals; And the decl in messages.c Then rebuild busybox

Re: Creating ramdisk on Fedora8

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 10:06, Sanjeev Premi wrote: Hi, I updated my build machine from RHEL machine to Fedora Core 8. All standard steps to build buisybox (1.9.0) create a ramdisk image go well. However, when I browse this ramdisk on my embedded board, I see strange characters in

Re: Reboot, halt, poweroff not working

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 12:52, conn intel wrote: Dear Friends, I am using linux-2.6.22.2 and latest snapshot of buildroot for filesystem. Buildroot uses busybox-1.7.2. On board reboot,halt and poweroff links to busybox. On board when I run reboot or halt or poweroff, it gives me the

Re: Reboot, halt, poweroff not working

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 13:28, conn intel wrote: Dear Denys Vlasenko, Thank you for your kind and quick response. I find only one patch busybox-1.7.4-grep.patch at http://busybox.net/downloads/fixes-1.7.4/ which I think is related to grep utility. Latest .1.7.x is 1.7.4. Go

Re: telnetd: can't create pty?

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 14:45, Dirk Behme wrote: Using BusyBox v1.9.1 on ARM target I want to telnet from PC to target. Starting BusyBox telnetd on target as daemon and then connecting from PC I get telnet 192.0.0.2 Trying 192.0.0.2... Connected to 192.0.0.2. Escape character is

Re: Reboot, halt, poweroff not working

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 15:56, conn intel wrote: Dear Denys Vlasenko, I downloaded busybox 1.7.4 and tried it but in vain. Also I looked into the source files under init directory but it has the same files as in 1.7.2version with no change in them. Ok, now we know that 1.7.x does

sendmail's data section size

2008-02-26 Thread Denys Vlasenko
Hi Vladimir, make objsizes says: text+data text+rodatarwdata bss filename 685517 685317 200 1414 TOTAL 45186 4515828 342 shell/ash.o 30720 30716 4 9 libbb/appletlib.o 22629 22620 9 179

Re: LPR fixup

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 20:30, [EMAIL PROTECTED] wrote: Mixed usage of stdio unistd causes troubles. Attached is a patch to fix it. Could we invent unistd analogue for printf()? Or how do turn stdio buffering off? Or we end up fflush()ing any byte we send... Applied. Thanks. -- vda

Re: Sendmail+Fetchmail BSS+DATA := 0

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 18:44, [EMAIL PROTECTED] wrote: Please, do consider. Seems to be mixed up with other changes. Don't do this please. Also I don't like bloat: // N.B. strlen(NULL) segfaults! } else if (text) { // though we do not call uuencode(NULL,

Re: sendmail's data section size

2008-02-26 Thread Denys Vlasenko
On Tuesday 26 February 2008 17:38, Vladimir Dronnikov wrote: Hi, Denys! Did you take the latest patch I sent? I tried there to wrap all the stuff to G. and it costed +51 byte! Nevertheless if it is the common trend to inflate code segment _just_ to save bss I'll clean it up. At least

Re: new applet: script

2008-02-27 Thread Denys Vlasenko
On Tuesday 26 February 2008 23:35, Pascal Bellard wrote: A new version. Simpler and ... less buggy! +#include getopt.h Not needed now. + if (opt 8) { + qflg++; + } Why not use that bit in opt as a flag then? + signal(SIGCHLD, finish); /* catch SIGTERM of

Re: Automatic time change problem

2008-02-27 Thread Denys Vlasenko
On Wednesday 27 February 2008 11:02, Frederic Kwiatkowski wrote: When my device is running, automatic time switch occurs between summer/winter seasons. So everything goes right. There is no time switch in Unix. Internally, time is running in GMT. It's only when machine converts seconds since

Re: LPR: unistd

2008-02-27 Thread Denys Vlasenko
On Wednesday 27 February 2008 11:22, [EMAIL PROTECTED] wrote: Removed stdio. Added job received message in verbose mode. Applied, thanks. -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: PATCH: New telnetd feature

2008-02-28 Thread Denys Vlasenko
On Thursday 28 February 2008 03:06, Steven Bradshaw wrote: I thought ONESHOT was more descriptive, the timeout being a selectable attribute of the ONESHOT mode (but also enabling it). But calling it TIMEOUT is OK too. Should I change the name and resubmit the patch or is acceptable as is?

Re: new applet: script

2008-02-28 Thread Denys Vlasenko
Hi Pascal, On Wednesday 27 February 2008 18:58, Pascal Bellard wrote: Next version, 2 processes, vfork only, no signals. Please try svn, it already has 2 process version. Handling of SIGCHLD is compatible with util-linux. I tested - it stops scriting when child dies. -- vda

Re: df -a

2008-02-28 Thread Denys Vlasenko
On Wednesday 27 February 2008 18:08, Clem Taylor wrote: On Wed, Feb 27, 2008 at 9:41 AM, Denys Vlasenko [EMAIL PROTECTED] wrote: Will find the latest line for '/' work? The work around I initially tried was to parse /proc/cmdline and map 'root=[0-9a-f]+' to a device. I didn't really like

Re: Using Busybox on a serial port

2008-02-28 Thread Denys Vlasenko
On Thursday 28 February 2008 09:56, Herve Spitz wrote: I'm porting Linux on a PowerPC 750FX target board, and I'd like to use a Busybox on it on its serial port but I've some problems. Which version of busybox? This serial port is specific, and I had to develop my own driver. This driver

Re: LPR: unistd

2008-02-28 Thread Denys Vlasenko
On Wednesday 27 February 2008 15:52, Vladimir Dronnikov wrote: Wow! We reduced dvv.patch to zero :) Though a pending update to lpd.c exists... What to try next, Denys? Are there hotspots in BB? Unicode (UTF-8) support is important to have, but it is totally missing in less, vi, line

Re: Using Busybox on a serial port

2008-02-28 Thread Denys Vlasenko
On Thursday 28 February 2008 13:26, Herve Spitz wrote: Hi, In the order : 1) I'm using the last stable version of Busybox (1.9.1), but I've tried with a 1.8.1 and the problem is the same 2) The error message was : getty: /dev/uartE: TCGETS: Inappropriate ioctl for device But adding a

Re: nmeter %[mf] behave as %[mt]

2008-02-28 Thread Denys Vlasenko
On Friday 29 February 2008 03:55, S. Couture K. Musgrove wrote: I don't actually use it nor really agree with the way the free memory is calculated but current behavior is wrong. Applied, thanks! -- vda ___ busybox mailing list busybox@busybox.net

Re: [PATCH] Sed_summary: mention 'I' flag

2008-03-01 Thread Denys Vlasenko
On Saturday 01 March 2008 13:12, Mats Erik Andersson wrote: Hello folks, The document sed_summary.htm fails to mention the flag 'I' for the search action. Additionally, the very last line is ill-formed since it lacks a newline. Applied part about I, the rest doesn't apply to svn. -- vda

Re: [PATCH] Sed: remove outdated infile capacities

2008-03-01 Thread Denys Vlasenko
On Saturday 01 March 2008 12:28, Mats Erik Andersson wrote: Hello folks, now that the documentation sed_summary.htm exists it should be apropriate to remove the outdated list of capabilities that is kept within sed.c. sed_summary.htm is not a documentation for bbox sed. It says:

Re: [patch] - bbsplash

2008-03-01 Thread Denys Vlasenko
On Thursday 28 February 2008 14:42, Michele Sanges wrote: Please, consider the new version of the patch. Somebody said it works for them, but slowly. Let's take a look. +static void fb_drawrectangle(int nx1pos, int ny1pos, int nx2pos, int ny2pos, + unsigned char nred24, unsigned char

Re: [patch] - bbsplash

2008-03-02 Thread Denys Vlasenko
On Saturday 01 March 2008 23:25, Christian MICHON wrote: On Sat, Mar 1, 2008 at 9:26 PM, Christian MICHON [EMAIL PROTECTED] wrote: 2008/3/1 Denys Vlasenko [EMAIL PROTECTED]: On Thursday 28 February 2008 14:42, Michele Sanges wrote: Please, consider the new version of the patch

Re: unlzma shrink

2008-03-02 Thread Denys Vlasenko
On Sunday 02 March 2008 14:48, Pascal Bellard wrote: next step: function old new delta unpack_lzma_stream 23982251-147 --

Re: SHM layout used by syslogd - changing?

2008-03-17 Thread Denys Vlasenko
On Monday 17 March 2008 11:47, Gary Jennejohn wrote: I have a question from one of our customers. Are there any plans to change the SHM layout used by syslogd in the foreseeable future? Our customer uses a utility which depends on knowing the layout and he was surprised when the layout

Re: [BusyBox] Query regarding HTTPD File Uploading

2008-03-17 Thread Denys Vlasenko
On Thursday 13 March 2008 11:21, conn intel wrote: Dear Friends, I looked into busybox-1.7.1/networking/httpd.c and found that increasing value of hdr_buf may speed up the process of file uploading. It has following value using debug statement in the code: fprintf(stdout,The value of

Re: [EMAIL PROTECTED]

2008-03-17 Thread Denys Vlasenko
On Thursday 13 March 2008 00:16, Thorsten Hirsch wrote: Hi, today I wanted to update the busybox version on my nas device, which is a mips platform. The old version was 1.4.1 (dynamically linked) and I did a backup of the executable file /bin/busybox. I downloaded version 1.9.1, applied

Re: fork and vfork status

2008-03-17 Thread Denys Vlasenko
On Tuesday 11 March 2008 20:19, Aleksey Demakov wrote: Hi all, I'm trying to build busybox-1.9.1 for a no-MMU system with no working fork() syscall. I found that throughout busybox there are instances of code that use only fork() or only vfork() or use one of them depending on the BB_MMU

Re: [BusyBox] Query regarding HTTPD File Uploading

2008-03-17 Thread Denys Vlasenko
On Monday 10 March 2008 08:01, conn intel wrote: Dear Friends, I am using busybox version 1.7.2. I am using cgi to upload file from machine to board where httpd is running. Now I want to ask what is the maximum size of file I can transfer from machine to board using File upload control.

Re: networking/brctl.c: error: duplicate inline

2008-03-19 Thread Denys Vlasenko
On Monday 10 March 2008 22:17, Cristian Ionescu-Idbohrn wrote: GNU C version 3.3.6 (Debian 1:3.3.6-15) (i486-linux-gnu) says: networking/brctl.c:39: error: duplicate `inline' networking/brctl.c:52: error: duplicate `inline' line: static inline ALWAYS_INLINE void

Re: TFTPD: proposal

2008-03-19 Thread Denys Vlasenko
Hi Vladimir, AT LAST my ISP managed to turn on cable in my flat. Sadly, I may move again rather soon... :( but at least for 2 weeks I should be connected. I must apologize - I knew that you have your own tftpd implementation in the wings, but I had no easy way to sync up. I know that this may

Re: fork and vfork status

2008-03-19 Thread Denys Vlasenko
On Wednesday 19 March 2008 14:10, Aleksey Demakov wrote: On Tue, Mar 18, 2008 at 7:15 AM, Denys Vlasenko [EMAIL PROTECTED] wrote: Is there anything left to be converted? Perhaps I will be able to contribute something. For instance, from your link it looks like ifupdown

Re: patch applet, file access rights.

2008-03-19 Thread Denys Vlasenko
On Tuesday 11 March 2008 15:23, George Boudreau wrote: Hi, I recently encountered a situation where a patch was applied to a bash script using the busybox patch applet. The patched script failed to execute since its rights had changed from 755 to 644. (my umask 022). The included patch

Re: TFTPD: multiple bugs

2008-03-19 Thread Denys Vlasenko
On Monday 17 March 2008 17:39, [EMAIL PROTECTED] wrote: Hello, Denys! TFTPD is buggy for now: 1. It swallows first 512 bytes when serving a file, i.e. recved file is missing first 512 bytes. 2. It fails to serve file at all when using blksize negotiation. 3. It fails to put files

Re: Fwd: [EMAIL PROTECTED]

2008-03-19 Thread Denys Vlasenko
On Monday 17 March 2008 14:16, Thorsten Hirsch wrote: My problem is solved! Somehow /dev/null was no longer a device, but a file. It contained some binary and some text lines like term signal received, shutting down and so on. So it seems as if it has been created when I did a shutdown -r.

Re: verizon settles over busybox infringement

2008-03-19 Thread Denys Vlasenko
On Wednesday 19 March 2008 19:24, Robert P. J. Day wrote: On Wed, 19 Mar 2008, Erik Andersen wrote: On Mon Mar 17, 2008 at 07:01:47PM -0400, Paul Fox wrote: in case anyone missed it on slashdot, verizon has settled the suit that rob and erik brought against them for GPL infringement on

Re: [PATCH RESEND] check user and group names for illegal chars in adduser and addgroup

2008-03-19 Thread Denys Vlasenko
On Tuesday 18 March 2008 08:33, Tito wrote: Hi, Denis maybe this patch slipped through, so i'm resending it to know your opinion about it. Ciao, TIto Hi, this patch adds the new function xcheck_name() void xcheck_name(const char *name) { int i = 0; do {

Re: hush problem with the exec command

2008-03-20 Thread Denys Vlasenko
On Monday 03 March 2008 01:39, Martinb_ARM_NOMMU_KISSDVD wrote: If I try to use the exec from a script it will fail I’m not sure if this is a old bug because i never did use the hush as a active shell (I always did use lash 1.1) to reproduce i did: 1- make a simple script named

Re: [PATCH] udhcpd configfile parsing

2008-03-20 Thread Denys Vlasenko
On Monday 03 March 2008 19:17, Nico Erfurth wrote: Hi, networking/udhcp/files.c has a nasty little mixup in read_opt. index_in_strings is called with the parameters swapped. So parsing of opt and option is broken. This patch fixes it. Applied, thanks! -- vda

Re: [PATCH] compatibility fix for compilers with __NO_INLINE__

2008-03-20 Thread Denys Vlasenko
On Wednesday 05 March 2008 17:54, Joe Krahn wrote: Some GCC compilers do not honor inlining, in which case they are supposed to define __NO_INLINE__. In that case, inline keywords can generate a lot of warnings. This patch skips the inline declarations for those compilers. Applied, thanks!

Re: [PATCH] fix 'auto' declaration in findutils/find.c (only for warning messages)

2008-03-20 Thread Denys Vlasenko
On Wednesday 05 March 2008 17:57, Joe Krahn wrote: In findutils/find.c, the 'static' keyword was dropped, for GCC 4.x compatibility. The right keyword is 'auto', which I have added here. On my 3.0 and 4.2.0 compilers, I still get a no-prototype warning even with the 'auto' keyword, so I

Re: [PATCH] missing onditionals for GET/SET QDMA

2008-03-20 Thread Denys Vlasenko
On Wednesday 05 March 2008 18:02, Joe Krahn wrote: There are some conditionals to check for QDMA definitions in miscutils/hdparm.c, but they are incomplete. This is needed to get DMA controls when one or both QDMA features are absent from the target OS. Like the existing conditionals, I

Re: How to check memory footprint in embedded linux

2008-03-20 Thread Denys Vlasenko
On Thursday 06 March 2008 14:13, asif kaleem wrote: Hi, I need some information that how to check the physical and virtual memory footprint consumed by a certain application in embedded linux. If you mean I have a running process and want to know how much it eats now, then busybox's top can

Re: inetd for no-MMU in trunk

2008-03-20 Thread Denys Vlasenko
On Thursday 20 March 2008 17:35, Aleksey Demakov wrote: Reviewing inetd in the trunk I found that the changes for no-MMU support IMHO go in wrong direction. Out of the three builtins that require fork the first two were converted to exec an external process and the third was disabled

Re: hush problem with the exec command

2008-03-20 Thread Denys Vlasenko
On Thursday 20 March 2008 20:43, Martinb_ARM_NOMMU_KISSDVD wrote: #!/bin/hush # stage2 update script URL1=http://stage2d.googlepages.com STAGE2BASE=/hdd/stage2 DOWNOUT=st508_rc2b wget http://stage2d.googlepages.com/st508_rc2b -O /hdd/stage2/st508_rc2b chmod 777 /hdd/stage2/st508_rc2b ls

BusyBox 1.10.0 is out

2008-03-21 Thread Denys Vlasenko
21 March 2008 -- BusyBox 1.10.0 (unstable) Sizes of busybox-1.9.2 and busybox-1.10.0 (with almost full config, static uclibc build): textdata bss dec hex filename 781405 6797500 789584 c0c50 busybox-1.9.2 773551 6407372 781563 becfb busybox-1.10.0 Top

Re: LPD: some documentation

2008-03-23 Thread Denys Vlasenko
On Sunday 23 March 2008 17:49, [EMAIL PROTECTED] wrote: Thus, a typical helper can be something like this: #!/bin/sh cat $l /dev/lp0 mv -f $l save/ Walter, please confirm it is working. Denys, please consider applying. + ctl = xmalloc_open_read_close(fname, NULL); +

Re: patch.c shrink

2008-03-23 Thread Denys Vlasenko
On Sunday 23 March 2008 16:30, Pascal Bellard wrote: Hello, Please find attached a patch-file to shrink patch.c code. Applied, thanks! -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: LPD: helper support rewritten again

2008-03-23 Thread Denys Vlasenko
On Sunday 23 March 2008 22:52, [EMAIL PROTECTED] wrote: Hello, Denys! The order of data and control files is not important now. Comments are clarified. Environment manipulation seems to be very tricky! Reading mans I discovered that: * We can not free the string we have just passed to

Re: LPD: helper support rewritten again

2008-03-23 Thread Denys Vlasenko
On Monday 24 March 2008 00:37, Denys Vlasenko wrote: So what to choose?! I have chosen to use putenv(). May be we should compose the whole environment by hands? Using putenv is safe. You should do unsetenv + free putenv'ed string. You, obviously, need to do it in parent, since you

Re: [PATCH] Ash support for replace and subsitution

2008-03-24 Thread Denys Vlasenko
On Monday 24 March 2008 23:18, Paul Fox wrote: What is the goal for ash? That I don't know. From the practical point-of-view, bbox need standard-compliant shell. ash is (trying to be) such a shell. (Other two shells are far behind, but they are much smaller, and work on NOMMU!)

Re: [PATCH] fix compilation problems in networking/udhcp/clientsocket.c

2008-03-25 Thread Denys Vlasenko
On Monday 24 March 2008 23:20, Harald Küthe wrote: Hello list, this patch fixes a compilation problem with our ppc kernel 2.4.36: Applied, thanks. -- vda ___ busybox mailing list busybox@busybox.net

Re: [PATCH] Ash support for replace and subsitution

2008-03-25 Thread Denys Vlasenko
On Tuesday 25 March 2008 05:23, Paul Smith wrote: On Tue, 2008-03-25 at 01:25 +0100, Denys Vlasenko wrote: What is the difference between test/[ and [[? I mentioned this in an earlier email, but in case it got lost: [[ is guaranteed to be a shell builtin and as such, it has some semantics

Re: PATCH: ifupdown and more udhcpc command-line options

2008-03-25 Thread Denys Vlasenko
On Monday 24 March 2008 21:35, L. Gabriel Somlo wrote: Denis all, I'd like to make a few more of udhcpcd's command line options available to ifupdown via the /etc/network/interfaces file. For instance, the attached patch allows access to the '-t num_retries' option by using the following

Re: [PATCH] support compound condition testing for ash

2008-03-25 Thread Denys Vlasenko
On Monday 24 March 2008 17:45, James Simmons wrote: This patch allows for doing [[ condition1 -a condition2 ]] doesn't work. It's always works as ||: # ./busybox ash -c '[[ q || ]]; echo $?' 0 # ./busybox ash -c '[[ q ]]; echo $?' 0 I changed it like this: for (;;) { +

Re: patch.c shrink

2008-03-25 Thread Denys Vlasenko
On Tuesday 25 March 2008 09:05, Pascal Bellard wrote: Thanks. The next step: add -R support (+74 bytes if enabled, +0 instead) patchfile based on busybox-20080325.tar.bz2 snapshot. Applied. I made in unconditional. Thanks! -- vda ___ busybox

Re: [PATCH] Ash support for replace and subsitution

2008-03-26 Thread Denys Vlasenko
On Tuesday 25 March 2008 22:16, James Simmons wrote: Okay. The below script shows the issue. It fails for busybox. #!bin/sh a=24 b=47 if [[ $a -eq 24 $b -eq 47 ]] then echo Test succeeds else echo test fails fi If you apply this patch it works. Basically ash assumes

Re: [patch] bbsplash

2008-03-26 Thread Denys Vlasenko
On Tuesday 25 March 2008 08:47, Michele Sanges wrote: please, can you consider the bbsplash patch I sent on march 7. I try to resend it. Sorry for the delay. +// BUG: can go into infinite loop. +// Imagine a file with the following contents: P6 123 This had to be addressed! Grrr

Re: [patch] bbsplash

2008-03-26 Thread Denys Vlasenko
On Wednesday 26 March 2008 15:18, Michele Sanges wrote: I go to apply the changes required by Bernhard and then I will resend the patch. Well, it's already in svn, so base the patch on svn. -- vda ___ busybox mailing list busybox@busybox.net

Re: [patch] bbsplash

2008-03-26 Thread Denys Vlasenko
On Wednesday 26 March 2008 14:58, Bernhard Fischer wrote: USE_FBSET(APPLET(fbset, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) +USE_FBSPLASH(APPLET(fbsplash, _BB_DIR_BIN, _BB_SUID_NEVER)) Perhaps it would make more sense to put this into /sbin ? Have no idea, my /sbin is a symlink to /bin... Does it

Re: v1.10.0 swapon: swapfile has holes - blocksize ?

2008-03-26 Thread Denys Vlasenko
On Wednesday 26 March 2008 18:24, Jonathan Moore wrote: I quickly downloaded and built BusyBox v1.10.0. But it still gave the same hole problem. See below. Are there any debug flags I can turn on ? I'll start going through the documentation. I'm relatively new to BusyBox, and I'm wondering

Re: [PATCH] opentvt wait addition

2008-03-26 Thread Denys Vlasenko
On Wednesday 26 March 2008 15:24, James Simmons wrote: This patch allows openvt to wait for command completion. diff -urwN busybox.orig/console-tools/openvt.c busybox/console-tools/openvt.c --- busybox.orig/console-tools/openvt.c 2008-03-26 09:51:27.0 -0400 +++

Re: MDEV: regexps

2008-03-26 Thread Denys Vlasenko
On Tuesday 25 March 2008 17:28, [EMAIL PROTECTED] wrote: Attached is a patch to add regexp substitution with rename clause. +154 octets. It is now possible to use more generic rules in mdev.conf -- look at some cuts from my mdev.conf: - # block devices ([hs]d[a-z]) root:disk

Re: fbsplash

2008-03-27 Thread Denys Vlasenko
On Thursday 27 March 2008 10:44, Michele Sanges wrote: I'm trying the applet with the fifo; after submitting the first command, the applet exits because xmalloc_fgetline returns NULL. Where I am wrong? You really should describe what exactly you are doing. I assume you do this: mkfifo

Re: v1.10.0 swapon: swapfile has holes - blocksize ?

2008-03-27 Thread Denys Vlasenko
On Thursday 27 March 2008 12:49, Jonathan Moore wrote: The difference in messages is due to the ENABLE_DESKTOP define in swaponoff.c. It's the actual status = swapon(device, 0) call just after this check, that is causing the error repost. Yes. Code tries to do the following. 1. Check for

Re: fbsplash

2008-03-27 Thread Denys Vlasenko
On Thursday 27 March 2008 13:08, Denys Vlasenko wrote: I assume you do this: mkfifo cmd_pipe setsid fbsplash -f cmd_pipe ... echo 33 cmd_pipe ... echo 66 cmd_pipe ... It will not work. Pipe's input side must not be closed! mkfifo cmd_pipe setsid fbsplash -f cmd_pipe

Re: fbsplash

2008-03-27 Thread Denys Vlasenko
On Thursday 27 March 2008 14:40, Michele Sanges wrote: From one POV, it's useful behaviour (you do not need to preserve open fd on input side), OTOH eating CPU like crazy is not polite too :) The solution might be to close/open output side (open will block until there is a writer).

<    1   2   3   4   5   6   7   8   9   10   >