Re: How to change the Timezone

2007-07-13 Thread Denys Vlasenko
On Friday 13 July 2007 08:48, walter harms wrote: Natanael Copa wrote: On Thu, 2007-07-12 at 19:54 -0400, Mike Frysinger wrote: On Thursday 12 July 2007, walter harms wrote: Mike Frysinger wrote: On Wednesday 11 July 2007, walter harms wrote: perhaps this Question Answer should go the

Re: [PATCH] vi read-only mode bugfix and enhancement

2007-07-13 Thread Denys Vlasenko
Hi, On Thursday 12 July 2007 15:35, Natanael Copa wrote: Attatched is a patch that will fix a bug in vi, enhance functionality a bit, reduce size and make the code a bit more readable. Testcase follows. echo this file is readonly file1 chmod 400 file1 sudo chown root file Before

Re: ash init script with implicit set -e?

2007-07-14 Thread Denys Vlasenko
On Saturday 14 July 2007 12:55, Alexander Kriegisch wrote: I hope not to be off-topic or ask a question the anwer of which should be obvious. I noticed that my embedded system (WLAN/DSL router) stops booting if any uncaught error occurs in my 'ash' init scripts. Is this the expected

Re: Again, troubles with uploading files using busybox httpd

2007-08-11 Thread Denys Vlasenko
On Tuesday 07 August 2007 13:00, Alexander Griesser wrote: This one seems to be a duplicate of a previous bug report for bb 1.3.1/1.4.1, here's the link: http://www.busybox.net/lists/busybox/2007-February/026289.html Currently (latest svn version), I'm unable to upload files onto my busybox

Re: [PATCH] httpd: Support Status: header in CGI script

2007-08-11 Thread Denys Vlasenko
On Wednesday 08 August 2007 13:09, Alex Landau wrote: Hi, The attached patch adds to httpd support for a Status header. This header (as per the CGI spec) is used by CGI scripts to ask the server to send an HTTP response different than 200. Why is it needed, and why the script can't send the

Re: Patch for broken xbind in ping.c [busybox 1.6.1]

2007-08-12 Thread Denys Vlasenko
On Saturday 11 August 2007 09:59, Nico Erfurth wrote: Hi, networking/ping.c seems to be broken for some time now. When used with the -I option, it tries to bind to the address in lsa, instead of source_lsa. Well, this won't work unless you ping your own machine. ;) Appended is a patch to

Re: [PATCH] - httpd: support for kernel sendfile() call

2007-08-12 Thread Denys Vlasenko
On Friday 10 August 2007 20:41, Pierre Métras wrote: Hi, Here is a small patch to enable the use of the linux kernel function sendfile() in the httpd server (the last remaining TODO in network/httpd.c). This is enabled by a configuration option, disabled by default. It's not totally

Re: Rewritten autoconf and build directory

2007-08-12 Thread Denys Vlasenko
On Thursday 09 August 2007 18:42, Mats Erik Andersson wrote: Hello all, I stumbled on a possible issue with today's svn edition of Busybox. There was no problem whatsoever to build Busybox 1.6.1 fresh out of the box into a separate build directory, but when I tried the same with svn trunk

Re: [PATCH] httpd - User defined error pages

2007-08-12 Thread Denys Vlasenko
On Friday 10 August 2007 20:42, Pierre Métras wrote: Here is the third revision of my patch to add support for user defined error pages in httpd. I've integrated most of the comments from Denis Vlasenko, but one. During development, I was surprised to get a larger executable. The parse_conf()

Re: [PATCH] Fix syslogd circular log buffer: head pointer not moved forward

2007-08-12 Thread Denys Vlasenko
On Thursday 09 August 2007 21:04, Jari Takkala wrote: Hello, The following patch fixes the circular log buffer in syslogd. Currently the head pointer is never moved forward. The 'logread' command will always read from the beginning of the buffer, even if the log buffer wraps. The head

Re: [PATCH] - httpd: support for kernel sendfile() call

2007-08-13 Thread Denys Vlasenko
On Monday 13 August 2007 00:42, Eric Lammerts wrote: Denys Vlasenko wrote: + off_t offset = 0; + sendfile(fd, f, offset, f_stat.st_size); What will happen if f_stat.st_size INT_MAX (2 gb) ? If busybox was compiled with large file support, both off_t

Re: [PATCH] new expand / unexpand applets

2007-08-13 Thread Denys Vlasenko
On Sunday 12 August 2007 23:34, Tito wrote: Hi to all, this patch adds 2 new applets to coreutils: expand and unexpand They are turned off by default and can be turned on independently. There are also some tests added to the testsuite to ensure that they work like their GNU counterparts. The

Re: e2fsprogs is missing and what should we do?

2007-08-13 Thread Denys Vlasenko
On Monday 13 August 2007 09:35, colin wrote: Hi all, I just moved busybox from 1.1.3 to 1.6.1. Yes, it's a very big advance. After I almost finished it, I found that e2fsprogs is removed because it's too bloated. I really need it. How can I do with late busybox? Some parts are still present

Re: [PATCH] Fix syslogd circular log buffer: head pointer not movedforward

2007-08-13 Thread Denys Vlasenko
On Monday 13 August 2007 14:33, Jari Takkala wrote: On Thursday, August 09, 2007 4:04 PM, [EMAIL PROTECTED] wrote: The following patch fixes the circular log buffer in syslogd. Currently the head pointer is never moved forward. The 'logread' command will always read from the beginning of

Re: [PATCH] Fix syslogd circular log buffer: head pointer not movedforward

2007-08-13 Thread Denys Vlasenko
On Monday 13 August 2007 16:08, Jari Takkala wrote: On Monday, August 13, 2007 10:47 AM, Denys Vlasenko wrote: A more radical solution is applied to svn. Can you test it? Thank you Denys. I won't be able to test it though. We're still running 1.4.2 here and it may be a few months before we

Please resend patches

2007-08-13 Thread Denys Vlasenko
Hi people, I finished moving to new place. I suspect that I missed some patches. Never hesitate to resend them. ;) Internet is not yet working in my new flat. Will take a few weeks. Prices for accommodation in Dublin make me wonder whether my new salary really _is_ big enough... :-/ -- vda

Re: [PATCH] Fix syslogd circular log buffer: head pointer not movedforward

2007-08-14 Thread Denys Vlasenko
On Monday 13 August 2007 21:00, Jari Takkala wrote: On Monday, August 13, 2007 3:30 PM, Denys Vlasenko wrote: you can build latest svn with only syslogd and logread, while all other /bin/applet links are symlinked to stable busybox. Don't know why I didn't think about that. :) Ok, I

Re: e2fsprogs is missing and what should we do?

2007-08-14 Thread Denys Vlasenko
On Tuesday 14 August 2007 04:18, colin wrote: On Monday 13 August 2007 09:35, colin wrote: Hi all, I just moved busybox from 1.1.3 to 1.6.1. Yes, it's a very big advance. After I almost finished it, I found that e2fsprogs is removed because it's too bloated. I really need it. How

Re: Patch for a better more

2007-08-15 Thread Denys Vlasenko
On Wednesday 15 August 2007 05:46, Tristan Schmelcher wrote: Hello, I recently used BusyBox extensively in an embedded device product and ended up making some improvements to the more command. Attached is a patch against BB 1.6.1. The changes are: - Fixed a number of deficiencies in the

Re: [patch] busybox kill strings.h include

2007-08-16 Thread Denys Vlasenko
On Wednesday 15 August 2007 17:41, maximilian attems wrote: klibc has no strings.h and to quote hpa: Including strings.h is a bug in the upstream source; strings.h has been obsolete since at least 1989 Index: e2fsprogs/old_e2fsprogs/ext2fs/bitops.h

Re: [PATCH] httpd - User defined error pages

2007-08-16 Thread Denys Vlasenko
On Wednesday 15 August 2007 21:19, Pierre Métras wrote: In the end, my patch was 80% about support for error pages, and 20% about adding comments/documentation/reformating of the code. Do you prefer splitted patches: one for error pages strictly, one for comments, one for reformated source?

Mysterious code in httpd.c

2007-08-16 Thread Denys Vlasenko
Hi people, In handle_incoming_and_exit() we used to do this just before exit: /* Properly wait for remote to closed */ int retval; shutdown(accepted_socket, SHUT_WR); do { fd_set s_fd; struct timeval tv;

Re: How to debug httpd?

2007-08-16 Thread Denys Vlasenko
On Thursday 16 August 2007 15:01, Pierre Métras wrote: Hi, I've found a strange behavior in httpd, from current SVN version, but I don't know how to debug it. When you run httpd with the new verbose -v option, it shows you the headers sent back to the client. From time to time, and probably

Re: udhcpd get DNS address dynamic

2007-08-17 Thread Denys Vlasenko
On Friday 17 August 2007 01:08, kylix wrote: Hi,all I want to build a DHCP server on my embedded linux system. My busybox version is v1.3. when udhcpd running, it will get the configure infomation from udhcpd.conf, and then send the offer to client with IP, Gateway, DNS, Mask.

Re: Mysterious code in httpd.c

2007-08-19 Thread Denys Vlasenko
On Sunday 19 August 2007 12:57, Bernd Petrovitsch wrote: On Thu, 2007-08-16 at 15:06 +0100, Denys Vlasenko wrote: In handle_incoming_and_exit() we used to do this just before exit: /* Properly wait for remote to closed */ int retval; shutdown(accepted_socket

Re: inittab/getty problems

2007-08-21 Thread Denys Vlasenko
On Tuesday 21 August 2007 10:16, Rolf Blindheim wrote: Hello. I've built a rootfs from buildroot-20070616 snapshot, and encountered some problems to make to rootfs compile.. I'm booting from initramfs and the rootfs is intended to work as an embedded system. My current problems are that all

1.7.0 is out

2007-08-24 Thread Denys Vlasenko
Hi people, I uploaded 1.7.0 earlier today. Enjoy. GPG signatures are not there yet, will create them tomorrow. === 24 August 2007 -- BusyBox 1.7.0 (unstable) BusyBox 1.7.0. (svn, patches, how to add a patch) Applets which had many

Re: cp reports incorrect error (resend with correction)

2007-08-24 Thread Denys Vlasenko
On Thursday 23 August 2007 19:35, Joe Ogulin wrote: Sorry... grabbed the wrong link in the previous message This is the correct one: http://bugs.busybox.net/view.php?id=1470 Run this sequence of commands: touch /tmp/foo busybox cp /tmp/foo /tmp/nonexistent/path/foo This is the error

Re: 1.7.0 is out

2007-08-24 Thread Denys Vlasenko
On Friday 24 August 2007 14:45, Stephane Billiart wrote: On 24/08/07 ? ? 11:59, Denys Vlasenko wrote: Hi people, I uploaded 1.7.0 earlier today. Enjoy. [...] * fdisk: make it work with big disks (read: typical today's disks) even if CONFIG_LFS is unset No, the build fails

Re: [patch][resend] Domain assignment support for SELinux/AppArmor/LIDS

2007-08-25 Thread Denys Vlasenko
On Tuesday 21 August 2007 00:38, Yuichi Nakamura wrote: Hello. Denis said please resend patches, So we would like to send this mail again. Applied, thanks! 3. Limitation Programs that are used as interpreter can not be installed as script wrapper. It is due to limitation of

fdisk with big disks (was Re: 1.7.0 is out)

2007-08-25 Thread Denys Vlasenko
On Saturday 25 August 2007 14:58, Bernhard Fischer wrote: No, the build fails if LFS is not enabled (my uClibc does not have lseek64). Attached patch fixes the problem. But we need to seek past 2 GB there. 2 GB is too small even for USB sticks No, we don't. LFS is turned off, so we *know*

Re: [PATCH] (against 1.4.2) prevent cp of dir into itself (reprise)

2007-08-25 Thread Denys Vlasenko
On Thursday 23 August 2007 22:16, S H wrote: cp -R sub sub results in a nasty subdirectory tree (see http://bugs.busybox.net/view.php?id=1412). coreutils cp stops it before it goes out of control. FreeBSD ignores it. I prefer the coreutils behavior. This patch approximates the coreutils

Re: [PATCH] ifupdown and allow-hotplug (with corrections)

2007-08-25 Thread Denys Vlasenko
On Friday 24 August 2007 11:17, [EMAIL PROTECTED] wrote: Hello, A new patch version to add the allow-hotplug support to the ifupdown applet. Can you write up a rationale why do you continue to use and patch up ifupdown to try to handle even more of zillions of possible network configurations?

Re: [rfc] sed option `-i' (edit in place)

2007-08-26 Thread Denys Vlasenko
On Saturday 25 August 2007 23:10, Cristian Ionescu-Idbohrn wrote: AFAICS, that option creates a temporary file on the same fs as the edited file resides on. And that is indeed optimal, but at the same time somewhat unfortunate for embedded systems. Embedded systems usualy place editable

Re: [rfc] sed option `-i' (edit in place)

2007-08-26 Thread Denys Vlasenko
On Sunday 26 August 2007 16:00, Cristian Ionescu-Idbohrn wrote: Embedded systems usualy place editable files on flash fs and those fs get used out very much faster compared to real hdfs. I think that sed creates new file, fills it and and then renames new file into old file so fast that

Re: mount:nfsmount failed: Bad file descriptor

2007-08-27 Thread Denys Vlasenko
On Monday 27 August 2007 08:48, [EMAIL PROTECTED] wrote: Hi, I have encoutered a problem when mount a nfs filesystem. The nfs server's ip is 192.168.1.6 and busybox version is 1.1.3. All the must configure features in busybox and kernel is turn on. CONFIG_FEATURE_MOUNT_NFS is set to y. And

Re: mount:nfsmount failed: Bad file descriptor

2007-08-29 Thread Denys Vlasenko
On Wednesday 29 August 2007 03:42, [EMAIL PROTECTED] wrote: After I try busbox 1.6.1, the bad file descriptor error disappear, but still got RPC timeout error. And the mount service is still V1. I think it Yes, strace was clearly showing that server doesn't respond. If you still unsure what's

Re: mount patch

2007-08-29 Thread Denys Vlasenko
On Tuesday 28 August 2007 17:13, Tomas M wrote: Hello, this is a patch for mount.c in busybox, to simply ignore -i option. -i is used in GNU mount for this purpose: Don't call the /sbin/mount.filesystem helper even if it exists. But BusyBox doesn't call this anyway (IMHO) so it's safe

Re: compiling busybox-1.6.1 for cris architecture fails

2007-08-31 Thread Denys Vlasenko
On Friday 31 August 2007 13:06, [EMAIL PROTECTED] wrote: Denys Vlasenko wrote: On Friday 31 August 2007 08:36, [EMAIL PROTECTED] wrote: Denys Vlasenko wrote: On Thursday 30 August 2007 14:02, [EMAIL PROTECTED] wrote: Hi, We are using rather old version of busybox (1.1.2) on our

Re: PAM authentication bug?

2007-09-03 Thread Denys Vlasenko
Hi John, On Sunday 02 September 2007 01:39, John Gumb wrote: Looks like there's a bug in loginutils/login.c if PAM authentication is enabled. Symptoms are that if a valid username is entered with an incorrect password then the user is allowed to log in. Problem is if pam authentication

Re: [RFC] tail.c size reduction

2007-09-03 Thread Denys Vlasenko
On Sunday 02 September 2007 20:20, Tito wrote: Hi to all, this is a drop in replacement for tail.c. It is a result of a few sleepless nights of hacking that started by looking at and trying to understand mjn3's code. At the end I rewrote tail following a different italian creative and

Re: [patch,RFC,CFT] debloat du #1

2007-09-03 Thread Denys Vlasenko
On Saturday 01 September 2007 21:09, Bernhard Fischer wrote: Hi, I have this patch lying around for some months now.. Ideally, du would reuse recursive_action, but the attached patch only does the non-intrusive (i.e. i didn't rewrite it, which would have been saner, perhaps) part 1/2, that

Re: mac address filtering implementation

2007-09-04 Thread Denys Vlasenko
On Tuesday 04 September 2007 11:17, Andrea wrote: hi all, this is my first message in ml. I'm trying to implement a wireless access point using me2000 (busybox based) over a Wrap routerboard. A thing I'm not able to implement is a MAC address filtering feature like some access point

Re: [PATCH] vi should be in /usr/bin and not in /bin

2007-09-04 Thread Denys Vlasenko
Hi Natanael, On Tuesday 04 September 2007 18:33, Natanael Copa wrote: While porting openbsd's sendbug I realized that busybox vi is in /bin and not in /usr/bin where I would expect an application like vi. Aha, you met yet another idiotic script/program with /usr/bin prefixed to every program

Re: [PATCH] subsecond timer period support in watchdog (FIXED)

2007-09-05 Thread Denys Vlasenko
On Wednesday 05 September 2007 12:48, Paul Smith wrote: On Wed, 2007-09-05 at 13:31 +0200, Ignacio García Pérez wrote: + static const struct suffix_mult suffixes[] = { I'm not a bb dev, but it seems to me that having this static increases the binary size (a bit) for no

Re: unknown server error

2007-09-06 Thread Denys Vlasenko
On Thursday 06 September 2007 06:24, nita lohia wrote: hello, i m getting an error Unknown server error when i ive command hostname -i or even ping localhost I am using busybox with arm linux. i m having files /etc/hosts /etc/host.conf

Re: unknown server error

2007-09-06 Thread Denys Vlasenko
On Thursday 06 September 2007 12:36, nita lohia wrote: Hello here is full discription: #includestdio.h #includenetdb.h int main() { struct hostenv *hp; char host[120]; if(gethostname(host,sizeof(host))0) return -1; printf(host:%s\n,host);

Re: umount patch

2007-09-06 Thread Denys Vlasenko
On Thursday 06 September 2007 16:58, Tomas M wrote: Fabio Busatto wrote: Hi, this is a very simple patch to add support in umount for -i option. Ah, good point, I sent a patch for 'mount -i' some time ago (which was already included in CVS), but I entirely forgot that 'umount' needs -i

Re: patch: tftp retry/timeout tweaking

2007-09-06 Thread Denys Vlasenko
On Wednesday 05 September 2007 22:20, Paul Fox wrote: currently the busybox tftp client will retry forever, due to a misplaced reinitialization of the retry counter. in addition, it times out for a full 5 seconds on any lost packet, which blows performance completely on a marginal network.

Re: fix for find / /boot -xdev

2007-09-06 Thread Denys Vlasenko
On Wednesday 05 September 2007 22:38, Natanael Copa wrote: On Wed, 2007-09-05 at 14:48 -0400, Paul Fox wrote: currently, busybox find / /boot -xdev gives no output at all, rather than giving equivalent of find / -xdev; find /boot -xdev the bug was introduced (by me :-/ ) in

Re: [PATCH] vi should be in /usr/bin and not in /bin

2007-09-06 Thread Denys Vlasenko
On Thursday 06 September 2007 17:49, Natanael Copa wrote: On Tue, 2007-09-04 at 20:21 +0100, Denys Vlasenko wrote: Hi Natanael, On Tuesday 04 September 2007 18:33, Natanael Copa wrote: While porting openbsd's sendbug I realized that busybox vi is in /bin and not in /usr/bin where I

Re: issue regarding ESC in vi

2007-09-07 Thread Denys Vlasenko
On Thursday 06 September 2007 22:49, Tapojoy chatterjee wrote: hi whenever we press ESC in vi there is flashing of the terminal..is there a way around it I'm not using vi myself, but looking at vi.c, there is some obscure way to toggle bell/flash notification. grep for bell in vi.c -- vda

Re: '/' in scripts not getting solved

2007-09-07 Thread Denys Vlasenko
On Friday 07 September 2007 13:55, Tapojoy chatterjee wrote: Hi In busybox 1.7.0 am not able to execute a script containing a mathematical expression $a/$b while the script executes with no noise in busybox 1.5.. Can you give exact steps how to reproduce that? (And which shell is that - we

Re: NFS Support

2007-09-07 Thread Denys Vlasenko
On Friday 07 September 2007 18:59, Phillip Liang wrote: Hi, I have the same issue. Here is the result as vda suggested. Thanks for your help. (1) mount: mounting 192.168.10.33:/scratch on /mnt/test failed: Invalid argument (2) # cat nfs.log execve(/bin/mount, [mount, -t, nfs,

Re: patch: allow default PATH extension at build time

2007-09-07 Thread Denys Vlasenko
On Friday 07 September 2007 16:35, Paul Fox wrote: this is a pretty non-intrusive patch. no code change, no additional bytes! :-) on our product(s), we try and keep locally developed executables in a bin directory that is separate from the things that traditionally come with a linux

Re: patch: short form for unzip archive listing

2007-09-07 Thread Denys Vlasenko
On Thursday 06 September 2007 20:17, Paul Fox wrote: if you're dealing with zip archives in a script, it's useful to be able to get a script-friendly listing. the current '-l' command is more like 'ls -l', i.e. lots of information, but not script-friendly. this patch overloads the existing

Re: [PATCH] Tar with transformer (gzip, bzip2, ...) on NOMMU

2007-09-09 Thread Denys Vlasenko
On Sunday 09 September 2007 06:33, Alex Landau wrote: --- Alex Landau [EMAIL PROTECTED] wrote: --- Denys Vlasenko [EMAIL PROTECTED] wrote: On Wednesday 05 September 2007 12:12, Alex Landau wrote: [snip] Applied with very minor changes, many thanks! (bloatcheck says 0

Re: run_shell and selinux

2007-09-10 Thread Denys Vlasenko
On Monday 10 September 2007 13:42, Denys Vlasenko wrote: I don't understand in full what is the intent of the above #if/#endif block. IIRC these are equivalent: execve(shell, (char **) args, environ); execv(shell, (char **) args); Can it be rewritten this way? #if ENABLE_SELINUX

Re: run_shell and selinux

2007-09-10 Thread Denys Vlasenko
On Monday 10 September 2007 14:30, Yuichi Nakamura wrote: I don't understand in full what is the intent of the above #if/#endif block. IIRC these are equivalent: execve(shell, (char **) args, environ); execv(shell, (char **) args); Can it be rewritten this way? #if ENABLE_SELINUX

Re: moving /bin/ip to /sbin/ip?

2007-09-11 Thread Denys Vlasenko
On Monday 10 September 2007 21:40, Natanael Copa wrote: Hi, Is it big deal to move /bin/ip to /sbin/ip? My problem is this: I use busybox for my distro with vserver support. The vserver package is built on a standard gentoo uclibc. I suspect the util-vserver build scripts check what is

Re: moving /bin/ip to /sbin/ip?

2007-09-11 Thread Denys Vlasenko
On Tuesday 11 September 2007 05:01, Paul Fox wrote: On Mon, Sep 10, 2007 at 10:40:11PM +0200, Natanael Copa wrote: It would be a lot easier for me to have the ip application in the same place as the original iproute2. In fact it makes things alot more easy to have the busybox

Re: Making DO_POSIX_CP configurable

2007-09-11 Thread Denys Vlasenko
On Tuesday 11 September 2007 00:19, Alexander Kriegisch wrote: In SVN rev. #18119 [1] the default behaviour of 'cp' was changed by Denis in order to improve security and also to save a few bytes. This leads to problems in our application scenario here: We work on a mipsel-based router platform

Re: Making DO_POSIX_CP configurable

2007-09-11 Thread Denys Vlasenko
On Tuesday 11 September 2007 14:53, Ralf Friedl wrote: Hi Denys Can you point to real security problems from the use of cp with POSIX semantics? User comes to you and says I accidentally deleted my most important directory. I know that you make daily backups. Can you restore it from backup?

Re: Making DO_POSIX_CP configurable

2007-09-11 Thread Denys Vlasenko
On Tuesday 11 September 2007 12:34, Alexander Kriegisch wrote: Hi Denys! Thanks for introducing a special case for block/character devices. :) In a way, you did more than I requested, in another you did not, because DO_POSIX_CP still is not configurable the way I thought it was obviously

Re: Making DO_POSIX_CP configurable

2007-09-11 Thread Denys Vlasenko
On Tuesday 11 September 2007 17:32, Ralf Friedl wrote: User comes to you and says I accidentally deleted my most important directory. I know that you make daily backups. Can you restore it from backup? You do cp -a /backup/home/user/dir /home/user But user has crafted it so that

Re: Making DO_POSIX_CP configurable

2007-09-12 Thread Denys Vlasenko
On Tuesday 11 September 2007 23:13, Alexander Kriegisch wrote: I am sending this answer to the list again, because it was my initial mistake that I sent the first copy of my last message to your address instead of to the list. Sorry, Denys, I was never talking about the scenario you are

Re: Microcom: new applet, mount: make better use of fstab

2007-09-12 Thread Denys Vlasenko
On Wednesday 12 September 2007 08:18, Vladimir Dronnikov wrote: Hello, Denis! 1) microcom + // compose lock file name + if ( !device ) return ENODEV; + if ( strchr(device, '/') ) device = strrchr(device, '/')+1; + if ( !*device ) return ENODEV; + device_lock_file

Re: busybox httpd cgi environment

2007-09-12 Thread Denys Vlasenko
On Wednesday 12 September 2007 17:02, Paul Albrecht wrote: Hi, I have a question about busybox httpd and its cgi environment: Is there a way to setup and/or access environment variables other than the variables that are defined by the common gateway interface? CGI cannot setup (i.e.

Re: Is libbusybox stable for standalone application?

2007-09-13 Thread Denys Vlasenko
On Thursday 13 September 2007 08:28, colin wrote: Hi all, Our platform is with low cpu power and an application using system api too many times will draw down cpu performance. These statements are like system(/bin/mkdir ...), system(/bin/touch ...), ... and system(/bin/rm ...). I am

Re: busybox httpd cgi environment

2007-09-13 Thread Denys Vlasenko
On Wednesday 12 September 2007 22:18, Nathan Angelacos wrote: I have a question about busybox httpd and its cgi environment: Is there a way to setup and/or access environment variables other than the variables that are defined by the common gateway interface? CGI cannot setup (i.e.

Re: Kernel thread in a driver: Unable to wake up thread if I quit the dev file and reopen it.

2007-09-13 Thread Denys Vlasenko
On Thursday 13 September 2007 17:28, Stephane Cerveau wrote: Hi, I'm using busybox 1.1.0 and encounter a problem with a kernel thread in a char driver. I have a char driver using a kernel thread awaken(it reads data in a registry) when it receive an interrupt signal. When I insert the

Re: Busybox shell seems to be not working

2007-09-18 Thread Denys Vlasenko
On Monday 17 September 2007 21:12, [EMAIL PROTECTED] wrote: Hi, I am porting a marvell board with Linux (using buildroot and busybox). Busybox builds fine (I just used the 1.7.1 -- latest version). I built busybox statically. I need to boot the Marvell feroceon processor With LSP

Re: Busybox shell seems to be not working

2007-09-18 Thread Denys Vlasenko
On Tuesday 18 September 2007 16:08, [EMAIL PROTECTED] wrote: Hi Denys, yes, the sh and ash are links to busybox. I put printf in ash.c and found that ash_main is called. /bin/sh -- busybox I also tried with #!/bin/ash Then I localised the problem to setjmp call in ash_main. It

Re: Busybox and user/group problem

2007-09-19 Thread Denys Vlasenko
On Wednesday 19 September 2007 17:08, Jack B wrote: For information, /etc/gshadow is set like u for bin Repost of the message : Hi all. I'm building a LiveCD based on kernel 2.6.20, busybox 1.6.0 and other tools that I need. My first step was to build a basic LiveCD : a bootable

Re: Busybox and user/group problem

2007-09-20 Thread Denys Vlasenko
On Thursday 20 September 2007 08:59, JBLinux wrote: I'm using the latest BB 1.7.1 CONFIG_USE_BB_PWD_GRP=y Does it work without CONFIG_USE_BB_PWD_GRP? If it works without CONFIG_USE_BB_PWD_GRP, then it means that bbox has a bug. Add these lines then: struct group *getgrnam(const char *name) {

Re: Busybox and user/group problem

2007-09-20 Thread Denys Vlasenko
On Thursday 20 September 2007 08:59, JBLinux wrote: Another hint maybe : after my boot process I'm directly directed in root account without any login process. Maybe an initab problem that can imply the rest? inittab and chgrp are unlikely to be related. -- vda

Re: Fwd: New applet: microcom

2007-09-20 Thread Denys Vlasenko
On Wednesday 19 September 2007 07:58, Vladimir Dronnikov wrote: Hello! I've added new applet microcom which can be used to communicate with serial ports. Inspired by mgetty's microcom utility. Comments are welcome! Edited it a bit. There were many warnings. Didn't apply to svn yet.

Re: Updated contact details

2007-09-21 Thread Denys Vlasenko
On Friday 21 September 2007 01:23, Glenn McGrath wrote: The attached patch updates by contact email address in AUTHORS and removes the email address from copyright statements. Applied. -- vda ___ busybox mailing list busybox@busybox.net

Re: Fwd: New applet: microcom

2007-09-21 Thread Denys Vlasenko
Hi Vladimir, Applet is in current svn now. Thanks! -- vda ___ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: svn commit: trunk/busybox: include util-linux

2007-09-21 Thread Denys Vlasenko
On Friday 21 September 2007 15:53, Bernhard Fischer wrote: On Fri, Sep 21, 2007 at 06:43:29AM -0700, [EMAIL PROTECTED] wrote: Author: vda Date: 2007-09-21 06:43:28 -0700 (Fri, 21 Sep 2007) New Revision: 19927 Log: microcom: new applet by Vladimir Dronnikov [EMAIL PROTECTED]

Re: r18727 broke fdisk

2007-09-21 Thread Denys Vlasenko
On Friday 21 September 2007 17:37, Bernhard Fischer wrote: If LFS is off, then there really is no lseek64. Please revert. I tested both. On my glibc it works. I suppose it (maybe incorrectly) provides lseek64 even without #define _LARGEFILE64_SOURCE. Can you test whether fdisk.c

Re: [PATCH] ash fancy prompt expansion

2007-09-21 Thread Denys Vlasenko
On Friday 21 September 2007 20:15, Natanael Copa wrote: Looks like it got worse, not better... I am attaching my .config too. How does it look with your config and without the patch? It works without the patch. -- vda ___ busybox mailing list

Re: JFFS2 rootfs can not boot on my TI DaVinci DVEVM board

2007-09-22 Thread Denys Vlasenko
On Saturday 22 September 2007 03:21, yin yinhai wrote: Hi all: I am developping on TI DaVinci DVEVM board with Montavista Embeded 2.6.10 linux system. TI DaVinci has supplied a ramdisk filesystme which built by BUSYBOX1.0, I convert it to JFFS2 rootfs image and store to NOR flash, it

Re: Microcom

2007-09-22 Thread Denys Vlasenko
Hi Vladimir, Plese let us know what copyright and license terms should be at the top of microcom.c On Saturday 22 September 2007 16:03, Vladimir Dronnikov wrote: Still have 2 comments 1. The code - // %4d to make mgetty happy. It treats 4-bytes lock files as binary, // not

Re: nsupdate, brctl

2007-09-24 Thread Denys Vlasenko
On Monday 24 September 2007 13:10, Ralf Friedl wrote: Mike Frysinger wrote: If not, should it be included? anything that should be in busybox already is ... anything beyond that (like what you want) is merely left up to people to contribute ... if it doesnt suck and is

Re: Insmod problem with busybox 1.4.2

2007-09-24 Thread Denys Vlasenko
On Monday 24 September 2007 20:41, Evert Meulie wrote: Eehh, that is exactly what I did. My command was: insmod -f bs.ko (bs.ko was present in the current directory) This returned: insmod: -f.ko: no module by that name found for me it works: $ ./busybox insmod -f zz.ko insmod:

Re: Insmod problem with busybox 1.4.2

2007-09-25 Thread Denys Vlasenko
On Monday 24 September 2007 22:58, Evert Meulie wrote: Yes, just like someone would say 'I am trying to compile a program with gcc'... The name of the module is not relevant in my case, so I only listed the command and the parameter. Anyway. 'insmod -f' should NEVER give 'insmod: -f.ko:

Re: httpd with auth

2007-09-25 Thread Denys Vlasenko
On Tuesday 25 September 2007 08:07, Kim B. Heino wrote: Hello, Attached patch fixes httpd's authentication config parser in BusyBox 1.7.1. With gcc/glibc the original code is the same as sprintf(p0,:%s,c);. Both your patches are applied, thanks. -- vda

Re: A Problem about Compiling Busybox with Cross Compiler in Cygwin! Thanks!

2007-09-26 Thread Denys Vlasenko
On Wednesday 26 September 2007 14:31, 普查 陈 wrote: Dear Sirs, I am a beginner of busybox. Now, I am trying to build busybox executable with arm-linux-gcc, a cross compiler, in cygwin. When I input “make CROSS_COMPILE=arm-linux-gcc”, many .c files can be successfully compiled into .o

Re: [patch] setfiles bugfix

2007-09-26 Thread Denys Vlasenko
On Wednesday 26 September 2007 08:44, Yuichi Nakamura wrote: This patch fixes bug in setfiles. setfiles segfaults in p[0] = '\0'. I am applying this instead: diff -urN busybox-1.7.1/selinux/setfiles.c busybox-1.7.1-setfiles/selinux/setfiles.c --- busybox-1.7.1/selinux/setfiles.c

Re: [patch] chcon bugfix

2007-09-26 Thread Denys Vlasenko
On Wednesday 26 September 2007 05:19, Yuichi Nakamura wrote: Hello. This is a bugfix patch for chcon. chcon options did not work correctly. Regards, Applied, thanks -- vda ___ busybox mailing list busybox@busybox.net

Re: [patch] load_policy update

2007-09-26 Thread Denys Vlasenko
On Wednesday 26 September 2007 08:54, Yuichi Nakamura wrote: Hi. This patch is update of load_policy applet. Current load_policy is based on old implementation. to remove dependency to libsepol. # New load_policy implementation required libsepol libselinux,libsepol has been updated

Re: [patch] setfiles bugfix

2007-09-27 Thread Denys Vlasenko
On Thursday 27 September 2007 00:26, Yuichi Nakamura wrote: file_sep = strrchr(tmp_path, '/'); if (file_sep == tmp_path) { file_sep++; - p[0] = '\0'; +

Re: wget does not overwrite

2007-09-27 Thread Denys Vlasenko
On Tuesday 25 September 2007 13:30, Kim B. Heino wrote: This is my third and hopefully last patch for today. A long time ago I reported a problem that BusyBox's wget -O does not overwrite files as normal wget does: http://busybox.net/lists/busybox/2007-April/027228.html Here's a patch

Re: Patch for less, page forward

2007-09-27 Thread Denys Vlasenko
On Thursday 27 September 2007 14:12, Ralf Friedl wrote: Hi Could you add the key 'f' for page forward in less? I'm used to the keys 'f' and 'b' for page forward and backward. The difference in size should be minimal if different at all. Most likely the compiler will generate a jump table

Re: init and inetd

2007-09-28 Thread Denys Vlasenko
On Friday 28 September 2007 17:25, [EMAIL PROTECTED] wrote: I think init keeps killing inetd when i start inetd from init like so ::respawn:/usr/sbin/inetd inetd continually exits and starts daemon.info init: init: process '/usr/sbin/inetd' (pid 843) exited. Scheduling it for restart.

Re: Strange bug in svn ?

2007-09-28 Thread Denys Vlasenko
On Friday 28 September 2007 20:51, Loïc Grenié wrote: I'm probably wrong but it looks as if the following patch is necessary. My fault. Applied, thanks! -- vda ___ busybox mailing list busybox@busybox.net

Re: Useless test

2007-09-28 Thread Denys Vlasenko
On Friday 28 September 2007 03:49, Loïc Grenié wrote: The if () test is useless because it has already been done above. if (flags (PSSCAN_CMD|PSSCAN_ARGV0)) { if (sp-argv0) { free(sp-argv0);

Re: pgrep/pkill

2007-09-28 Thread Denys Vlasenko
On Friday 28 September 2007 16:51, Loïc Grenié wrote: These are three patches for busybox. Sending patches separately makes it easy to have one thread per patch. With mnay patches in one mail, it's a mess. 1) The first one adds a function xfree(ptr) to xfuncs.c which acts as if (ptr)

Re: Unsorted

2007-09-28 Thread Denys Vlasenko
On Thursday 27 September 2007 08:43, Vladimir Dronnikov wrote: In addition I want to share new led applet It prints (when no parameters given) or sets (when a number given) the keyboard leds state. When it recognizes the only parameter as valid file name it playbacks the sequence of states.

  1   2   3   4   5   6   7   8   9   10   >