Eric Andersen [Tue, 29 Jul 2003 07:05:40 +0000 (07:05 -0000)]
Bruno Randolf writes:
this patch fixes run_parts when it's called by ifupdown. 1) argv has to be a
NULL terminated char* array, not just a string. 2) run_parts now explicitly
sets the environment. this environment is populated from the
/etc/network/interfaces config file and is needed by the scripts in
/etc/network/if-pre-up.d/. when run-parts is called from the command line the
environment is taken from the current process.
Vladimir Oleynik then wrote:
You can simplify this if use:
+ bb_xasprintf(&buf[0], "/etc/network/if-%s.d", opt);
+ buf[1] = NULL;
+
+ run_parts(&buf, 2, environ);
+ free(buf[0]);
--w
vodz
Eric Andersen [Tue, 29 Jul 2003 06:38:40 +0000 (06:38 -0000)]
Vladimir N. Oleynik writes:
Last patch have synced form Manuel Nova III xxreadtoken() function,
corrected (C) form dash debian/copyright, removed my small mistake
with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from
current CVS (removed libc5 support, your email correction, my (C) year
corertion).
Eric Andersen [Tue, 29 Jul 2003 06:33:12 +0000 (06:33 -0000)]
Yang Xiaopeng writes:
>I'm sure that no user process use old root now, but when run "umount
>/old_root", it says:
> umount: /old_root: Device or resource busy
>
>I have tried to remount /proc within the new root *after* chroot, but
>get the same result.
>
>
I found the problem, I said that no user process use old root when run
my scripts, but
I'm wrong, actually there is a '3' fd open the file
"/old_root/dev/console". By adding
debug message in init/init.c, I found the problem: when init restart(in
exec_signal()),
before open the new terminal device, there is still a file opened(I
don't know which file it is), so the
terminal device(stdin) get fd '1', and the first dup(0)(stdout) return
'2', the second(stderr) return '3'.
I attach a simple patch to solve this problem.
Eric Andersen [Mon, 28 Jul 2003 10:34:38 +0000 (10:34 -0000)]
bump version to 1.0.0-pre2
Eric Andersen [Mon, 28 Jul 2003 10:13:03 +0000 (10:13 -0000)]
A small update to the new docs. Plenty more is needed...
Eric Andersen [Mon, 28 Jul 2003 09:59:05 +0000 (09:59 -0000)]
Patch from vodz to update httpd usage
Eric Andersen [Mon, 28 Jul 2003 09:56:35 +0000 (09:56 -0000)]
This is synced from dash-0.4.17 and full ready for insert to new busybox
version:
ftp://ftp.simtreas.ru/pub/my/bb/new
News:
- code is smalest!
- support ${var...} expr
- used new very strongly steal controlling terminal
Eric Andersen [Mon, 28 Jul 2003 09:37:56 +0000 (09:37 -0000)]
Avoid shadowing built-in function `log'
Eric Andersen [Mon, 28 Jul 2003 09:31:28 +0000 (09:31 -0000)]
Fixup bugs in last patch
Eric Andersen [Mon, 28 Jul 2003 08:31:56 +0000 (08:31 -0000)]
Update docs a bit
Eric Andersen [Mon, 28 Jul 2003 07:42:19 +0000 (07:42 -0000)]
last_patch98 from vodz:
Denis,
># ./busybox env - echo zzz
>zzz
># ./busybox echo -n zzz
>zzz
># ./busybox env - echo -n zzz
>env: invalid option -- n
>
> obviously, env tried to understand -n as env's option
> instead of blindly passing it to echo...
>
>BusyBox v1.00-pre1 (2003.07.16-07:53+0000) multi-call binary
>
>Usage: env [-iu] [-] [name=value]... [command]
Ah, you found very old problem.
Last patch also have:
- multiple "-u unsetenv" support
- GNU long option support
- save errno after exec failed before bb_perror_msg()
--w
vodz
Eric Andersen [Mon, 28 Jul 2003 07:40:39 +0000 (07:40 -0000)]
last_patch95 from vodz:
Hi.
Last patch have new libbb function
vfork_rexec() for can use daemon() to uClinux system.
This patched daemons: syslog, klogd, inetd, crond.
This not tested! I havn`t this systems.
Also. Previous patch for feature request MD5 crypt password for
httpd don`t sended to this mailist on 07/15/03
(mailist have Pytom module problem?).
The previous patch included, and have testing.
--w
vodz
Eric Andersen [Mon, 28 Jul 2003 06:42:59 +0000 (06:42 -0000)]
Add a "search google" button
Eric Andersen [Mon, 28 Jul 2003 06:37:04 +0000 (06:37 -0000)]
James Petterson writes:
I've found a possible bug in libbb/interface.c, in function
if_readlist_proc(). This function calls get_name(), and passes
as an argument 'name', a buffer of 16 bytes (IFNAMSIZ). The
function get_name(), however, may use more than 16 bytes,
when it is searching for aliases. Even if you don't have an
alias interface, you can run into trouble if the interface
has received more than
99999999 bytes, in which case the
space between the interface name and the rx stats
disappears, as in the /proc/net/dev example below:
wan0.200:
264573315 462080 ...
In this case get_name() correctly identifies the interface name
as "wan0.200", but to do that it uses 18 bytes of the 'name'
buffer, which could lead to an unpredictable error.
A simple solution would be to increase the size of the buffer:
Eric Andersen [Sat, 26 Jul 2003 09:33:16 +0000 (09:33 -0000)]
There should be only one instance of CONFIG_FEATURE_AUTOWIDTH
Eric Andersen [Sat, 26 Jul 2003 09:27:02 +0000 (09:27 -0000)]
Allow people to use the full blown iproute2 programs with busybox ifupdown.
Eric Andersen [Sat, 26 Jul 2003 09:16:00 +0000 (09:16 -0000)]
Move start_stop_daemon to debianutils.
Cleanup run_parts a bit and add long opts
Eric Andersen [Sat, 26 Jul 2003 09:10:35 +0000 (09:10 -0000)]
cleanup and add long options
Eric Andersen [Sat, 26 Jul 2003 08:20:46 +0000 (08:20 -0000)]
The logger utility does not really depend on CONFIG_SYSLOGD,
since it can also be used with other syslog daemons
-Erik
Eric Andersen [Sat, 26 Jul 2003 08:16:10 +0000 (08:16 -0000)]
Patch from Christian Meyer:
The client gives up way too soon because timeout is set to 0 ...
There's a solution for that problem.
Eric Andersen [Sat, 26 Jul 2003 08:07:56 +0000 (08:07 -0000)]
Some additional description based on a patch from Terje Kvernes
Eric Andersen [Sat, 26 Jul 2003 07:48:13 +0000 (07:48 -0000)]
Patch from Nick Fedchik to fixup paths in busybox/libpwdgrp
which were not properly using the bb_path_*_file strings.
Eric Andersen [Sat, 26 Jul 2003 07:41:56 +0000 (07:41 -0000)]
Rework kill / killall so it behaves itself, even when subjected
to abuse.
-Erik
Eric Andersen [Sat, 26 Jul 2003 06:25:12 +0000 (06:25 -0000)]
Patch from Thomas Gleixner to reap any zombie processes that are
reparented to init...
Eric Andersen [Sat, 26 Jul 2003 00:45:52 +0000 (00:45 -0000)]
Don't depend on CONFIG_LFS. It is really a suggestion, not a requirement,
since fdisk will work just fine on smaller disks w/o it.
Manuel Novoa III [Wed, 23 Jul 2003 23:24:31 +0000 (23:24 -0000)]
Set the tm_isdst flag to -1 before calling mktime(). Otherwise, the current
timezone setting is used for the new date.
Eric Andersen [Tue, 22 Jul 2003 22:15:21 +0000 (22:15 -0000)]
eliminate DOSTATIC, DODEBUG, etc and name them sensibly
Eric Andersen [Tue, 22 Jul 2003 17:14:10 +0000 (17:14 -0000)]
Several simplifications and indenting changes, per
last_patch97 from vodz
Eric Andersen [Tue, 22 Jul 2003 17:04:54 +0000 (17:04 -0000)]
As vodz noticed, I screwed up reboot
Eric Andersen [Tue, 22 Jul 2003 17:03:24 +0000 (17:03 -0000)]
the word "only" is repeated for CONFIG_FEATURE_SHADOWPASSWDS
Eric Andersen [Tue, 22 Jul 2003 10:18:17 +0000 (10:18 -0000)]
There is no need to expose CONFIG_FEATURE_TRACEROUTE_SO_DEBUG
Eric Andersen [Tue, 22 Jul 2003 10:16:58 +0000 (10:16 -0000)]
Document CONFIG_FEATURE_INSMOD_LOADINKMEM
Eric Andersen [Tue, 22 Jul 2003 10:14:32 +0000 (10:14 -0000)]
Document CONFIG_ASH_CMDCMD
Eric Andersen [Tue, 22 Jul 2003 10:11:48 +0000 (10:11 -0000)]
Write some more docs
Eric Andersen [Tue, 22 Jul 2003 10:11:27 +0000 (10:11 -0000)]
Remove the update utility, that is only relevant to older 2.0.x kernels
that are no longer supported.
Eric Andersen [Tue, 22 Jul 2003 09:59:34 +0000 (09:59 -0000)]
Patch from Terje Kvernes adding quite a lot of missing documentation
Eric Andersen [Tue, 22 Jul 2003 09:48:56 +0000 (09:48 -0000)]
Patch from Andrew Flegg:
Here's a pretty crude patch to reload /etc/inittab when init receives a
SIGHUP. The mailing list archives weren't entirely clear on whether or
not it should already happen, but didn't appear to be.
The patch:
* Adds a new function, reload_signal() which just calls
parse_inittab() and run_actions(RESPAWN)
* Before entering the while (1) loop set up SIGHUP to call
reload_signal()
* Modify new_init_action to skip the action if the same command
already exists on the same terminal
This last bit means that changing already running entries is a bit
hairy as you can end up with, for example, two shells running on the
same virtual console. However, for solely adding/removing entries this patch
seems to work quite well.
Eric Andersen [Tue, 22 Jul 2003 09:41:39 +0000 (09:41 -0000)]
Support reboot, halt, and poweroff independent of busybox init.
Simplify and fixup some logic.
-Erik
Eric Andersen [Tue, 22 Jul 2003 08:56:55 +0000 (08:56 -0000)]
Remove remaining libc5 support code
Eric Andersen [Tue, 22 Jul 2003 08:56:01 +0000 (08:56 -0000)]
A minor update for handling older gcc versions
Eric Andersen [Tue, 22 Jul 2003 08:55:12 +0000 (08:55 -0000)]
Update TODO list
Eric Andersen [Tue, 22 Jul 2003 08:54:02 +0000 (08:54 -0000)]
Add a default clean target
Eric Andersen [Tue, 22 Jul 2003 08:26:05 +0000 (08:26 -0000)]
Very minor rdate updates
Eric Andersen [Tue, 22 Jul 2003 08:25:37 +0000 (08:25 -0000)]
Error out early if people try to build mount with nfs support
using uClibc, but have not enabled UCLIBC_HAS_RPC...
-Erik
Eric Andersen [Tue, 22 Jul 2003 07:50:18 +0000 (07:50 -0000)]
mention stresslinux
Eric Andersen [Tue, 22 Jul 2003 07:39:18 +0000 (07:39 -0000)]
Paul Mundt <lethal@linux-sh.org> writes:
Here's a bunch of fixes for the watchdog app in busybox. This does a
couple of things:
- configurable timer duration (userspace timer duration is
usually configurable within the device drivers themselves).
- run as a daemon
- shutdown the device properly on SIGINT or SIGHUP
- clear the counter immediately instead of sleeping first
as well as updating the usage information. This has also been switched
over to getopt to deal with the optional timer duration specifier.
The changes themselves are harmless and isolated, and I've veried that
this works on sh and x86 without any problems.
Eric Andersen [Tue, 22 Jul 2003 07:33:14 +0000 (07:33 -0000)]
Patch from Paul Mundt:
The current SC_x references automatically assume that everyone uses ttyS/tts
as their naming scheme for their serial ports. This isn't the case for quite
a few architectures, including sh, sh64, h8, arm, etc.
Eric Andersen [Tue, 22 Jul 2003 07:30:36 +0000 (07:30 -0000)]
Matteo Croce submitted a hdparm applet.
Eric Andersen [Tue, 22 Jul 2003 05:57:29 +0000 (05:57 -0000)]
Patch from Jeff Angielski <jeff@theptrgroup.com> recognizing
his work on ftpput and ftpget.
Eric Andersen [Sat, 19 Jul 2003 08:19:21 +0000 (08:19 -0000)]
Fixup some little error in the webpage. Mention the Dell TrueMobile 1184.
Eric Andersen [Wed, 16 Jul 2003 07:31:14 +0000 (07:31 -0000)]
Update required kernel version and note that libc5 is no longer
supported (it is unmaintained and lacks support for simple things
such as stdint.h) and uClibc is a better choice these days anyways.
Eric Andersen [Wed, 16 Jul 2003 06:29:51 +0000 (06:29 -0000)]
Fixup problem unconditionally converting all hard links to symlinks.
Eric Andersen [Tue, 15 Jul 2003 07:52:41 +0000 (07:52 -0000)]
Update changelog and docs
Eric Andersen [Tue, 15 Jul 2003 07:15:03 +0000 (07:15 -0000)]
Document CONFIG_USE_BB_PWD_GRP
Eric Andersen [Tue, 15 Jul 2003 00:31:25 +0000 (00:31 -0000)]
Update the default set of applets that are listed
Eric Andersen [Tue, 15 Jul 2003 00:28:26 +0000 (00:28 -0000)]
Yet more preparation to make a release...
Eric Andersen [Mon, 14 Jul 2003 22:14:49 +0000 (22:14 -0000)]
Fix a silly typo
Eric Andersen [Mon, 14 Jul 2003 21:50:51 +0000 (21:50 -0000)]
Looks like I forgot one little tiny detail...
Eric Andersen [Mon, 14 Jul 2003 21:21:08 +0000 (21:21 -0000)]
Update a bunch of docs. Run a script to update my email addr.
Eric Andersen [Mon, 14 Jul 2003 20:20:45 +0000 (20:20 -0000)]
decouple delgroup and deluser
Eric Andersen [Mon, 14 Jul 2003 19:37:08 +0000 (19:37 -0000)]
Patch from Thomas Cameron:
Hello all,
This patch adds more "Help" text to the config system. Almost
all applets now have a help entry. Also, I cleaned up the spacing of
the existing text so that things are consistent. This patch is against
this morning's CVS.
Thomas Cameron
CEI Systems, Inc.
Eric Andersen [Mon, 14 Jul 2003 19:32:40 +0000 (19:32 -0000)]
Use standard types
Eric Andersen [Mon, 14 Jul 2003 19:20:46 +0000 (19:20 -0000)]
Michael Sternberg writes:
Latest BusyBox from CVS (Jul 7 2003).
File coreutils/ls.c
"if" at line 970 should be enclosed in #ifdef CONFIG_FEATURE_LS_SORTFILES
"if" at line 976 should be enclosed in #ifdef CONFIG_FEATURE_LS_TIMESTAMPS
Eric Andersen [Mon, 14 Jul 2003 19:18:43 +0000 (19:18 -0000)]
Patch from Lars Kellogg-Stedman:
The attached two patches add config documentation to init/Config.in and
fileutils/Config.in.
Eric Andersen [Mon, 14 Jul 2003 19:14:26 +0000 (19:14 -0000)]
Patch from Lars Kellogg-Stedman:
Busybox vi is installed in /bin/vi, but crontab was looking for
/usr/bin/vi. This patch makes crontab look for /bin/vi instead.
Eric Andersen [Mon, 14 Jul 2003 19:08:04 +0000 (19:08 -0000)]
Require that LFS is enabled to get fdisk
Eric Andersen [Mon, 14 Jul 2003 19:03:14 +0000 (19:03 -0000)]
Remove all the llseek junk and just use regular old lseek. When DOLFS is
enabled, regular lseek is transparently promoted to lseek64 anyways, rendering
the llseek stuff pointless.
-Erik
Eric Andersen [Mon, 14 Jul 2003 08:49:43 +0000 (08:49 -0000)]
On second thought, this is a better way to fix things
Eric Andersen [Mon, 14 Jul 2003 08:46:30 +0000 (08:46 -0000)]
Don't use Linux kernel headers
-Erik
Eric Andersen [Mon, 7 Jul 2003 06:10:31 +0000 (06:10 -0000)]
This declaration no longer needs to hide when using dmalloc
Eric Andersen [Sat, 5 Jul 2003 23:10:27 +0000 (23:10 -0000)]
Be certain to not abort prematurely when reading stuff from pipes.
Eric Andersen [Sat, 5 Jul 2003 22:15:43 +0000 (22:15 -0000)]
Fixup compile problem with dmalloc
Eric Andersen [Sat, 5 Jul 2003 21:56:55 +0000 (21:56 -0000)]
As noted by Thomas Eckert:
bb-tar "cjf" does not create a valid tbz2-archive -- if fact the result is a
plain tar-file (no compression) -- but does not warn about the unrecognized
parameter combination "cj" (bb does not have bzip2-compression yet, right?).
to fix this I have added an error message stating this does not work.
He also reported
cosmetic: versose "-v" does not show any output when used with "create"
which I have now fixed as well.
-Erik
Eric Andersen [Sat, 5 Jul 2003 08:39:47 +0000 (08:39 -0000)]
oops
Eric Andersen [Sat, 5 Jul 2003 08:29:01 +0000 (08:29 -0000)]
Daniel writes:
I've found a problem with job control when the init process is restarted.
If the system boots for the first time, I get job control on a serial terminal -
no problems. However, when I restart init by issuing "init -q", then the shell
no longer has job control.
I traced this a problem in console_init in the file init.c. What was happening
after the restart is that the first compare
if (ioctl(0, TIOCGSERIAL, &sr) == 0) {
...
} else if (ioctl(0, VT_GETSTATE, &vt) == 0) {
...
} else {
... // assume /dev/console
}
returned error and subsequently the code assumes /dev/console as the console,
which does not support job control.
Checking the errno after the first call showed that the system was complaining
about the file descriptor. This is probably because the previous init process
had closed all its file descriptors which the new init process had inherited.
Eric Andersen [Sat, 5 Jul 2003 08:00:17 +0000 (08:00 -0000)]
Patch from Lars Kellogg-Stedman:
Glibc 2.1.3 (used by the Hardhat Linux SDK distributed by Cyclades)
does not define IF_NAMESIZE in net/if.h.
Eric Andersen [Sat, 5 Jul 2003 07:59:30 +0000 (07:59 -0000)]
Patch from Lars Kellogg-Stedman:
This patch fixes endian problems with get_netmask(). I don't know if
this is the cleanest solution, but it makes 'ipcalc -n' work on both
an i386 system and a ppc system.
Eric Andersen [Sat, 5 Jul 2003 07:52:35 +0000 (07:52 -0000)]
Patch from Kent Robotti adding a bunch of needed docs!
-Erik
Eric Andersen [Sat, 5 Jul 2003 07:51:31 +0000 (07:51 -0000)]
Add the fdformat utility, based on a patch from Kent Robotti,
but I then completely reworked the fdformat utility to comply
with the current busybox way of doing things.
Eric Andersen [Sat, 5 Jul 2003 06:38:41 +0000 (06:38 -0000)]
Glenn McGrath (bug1) isaway from my email till the 17th, but caught me on IRC.
He took a look into the recent reports of tar problems, and found an obvious
typo in last_patch91 from vodz which converted tar to use bb_getopt_ulflags.
Eric Andersen [Thu, 3 Jul 2003 10:28:07 +0000 (10:28 -0000)]
Patch from Vladimir N. Oleynik (vodz):
Last patch have changed for "ipcalc" applet with usage new get_ulflags()
function.
Eric Andersen [Thu, 3 Jul 2003 10:20:29 +0000 (10:20 -0000)]
Patch from Lars Kellogg-Stedman:
Erik, et al.
The attached patch makes the following changes to networking/ifupdown.c:
(1) It swaps all calls to 'ip link set' and 'ip addr set'. This solves
two problems:
(a) Calling 'ip link set <dev> up' before assigning an address
generates an error message, and
(b) Under User Mode Linux, running in with ethernet interfaces
in daemon mode, the MAC address for an interface is selected
based on the IP address assigned to that interface. If the
interface is brought up before being assigned an IP address,
it gets a null MAC.
(2) It further cleans up run_mapping().
This patch is against ifupdown.c revision 1.25.
-- Lars
Eric Andersen [Thu, 3 Jul 2003 10:19:20 +0000 (10:19 -0000)]
Fix stupid unterminated parenthesis
Eric Andersen [Thu, 3 Jul 2003 10:07:04 +0000 (10:07 -0000)]
Patch from Russell Coker:
I've attached my latest SE Linux patch for busybox against the latest CVS
version of busybox.
Eric Andersen [Thu, 3 Jul 2003 10:02:32 +0000 (10:02 -0000)]
Patch from Kent Robotti updating fdisk to version v2.11z
Eric Andersen [Thu, 3 Jul 2003 10:00:15 +0000 (10:00 -0000)]
Patch from Kent Robotti adding a bunch of menuconfig help
Eric Andersen [Thu, 3 Jul 2003 09:48:07 +0000 (09:48 -0000)]
Using safe_read seems, well, safer...
Eric Andersen [Thu, 3 Jul 2003 09:41:41 +0000 (09:41 -0000)]
As implemented, sha1sum would sometimes give the wrong answer.
This fixes it and uses faster sha1 code from Dr. Gladman.
-Erik
Eric Andersen [Mon, 30 Jun 2003 18:14:36 +0000 (18:14 -0000)]
Patch from Pavel Roskin to fixup toplevel help text
Eric Andersen [Fri, 27 Jun 2003 17:08:15 +0000 (17:08 -0000)]
Apply last_patch93 from vodz:
andersen@busybox.net wrote:
>Message: 4
>Modified Files:
> init.c
>Log Message:
>Remove code for unsupported kernel versions
Hmm. Current init.c have check >= 2.2.0 kernel one time too.
Ok. Last patch removed this point and move common init code to new file for
/init dir
Eric Andersen [Fri, 27 Jun 2003 05:46:29 +0000 (05:46 -0000)]
Remove bdflush garbage, which is only relevant to unsupported
kernel versions
Eric Andersen [Thu, 26 Jun 2003 23:55:55 +0000 (23:55 -0000)]
oops. make this actually work as intended....
Eric Andersen [Thu, 26 Jun 2003 21:53:51 +0000 (21:53 -0000)]
Make sure we end up with a unix2dos link to busybox
Eric Andersen [Thu, 26 Jun 2003 18:01:43 +0000 (18:01 -0000)]
Oops.
Eric Andersen [Thu, 26 Jun 2003 09:07:59 +0000 (09:07 -0000)]
last_patch91 from vodz to convert tar to use bb_getopt_ulflags
Eric Andersen [Thu, 26 Jun 2003 09:05:32 +0000 (09:05 -0000)]
Geir Thomassen wrote, regarding networking/httpd.c line 1358
Hello, I think the test for an unconfigured httpd is wrong in
the CVS (busybox-unstable-
20030620.tar.bz2)
flg_deny_all is default 0
vodz then wrote:
Oops. You are right.
Also, this mistake haved from two place.
Last patch rewroted to my new get_ularg() function for overcompensate size
from this error found ;-)
Eric Andersen [Thu, 26 Jun 2003 08:53:49 +0000 (08:53 -0000)]
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
Change fopen to bb_xfopen
Eric Andersen [Wed, 25 Jun 2003 05:18:48 +0000 (05:18 -0000)]
Oops. As Andrew Dennison just noticed, I left a stray
space in the Makefile, thereby totally breaking it.
Eric Andersen [Wed, 25 Jun 2003 03:26:04 +0000 (03:26 -0000)]
Regenerate the busybox.links file when the .config changes
Glenn L McGrath [Sun, 22 Jun 2003 15:32:41 +0000 (15:32 -0000)]
New applet: patch, applies a unified diff