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
Glenn L McGrath [Sun, 22 Jun 2003 06:59:34 +0000 (06:59 -0000)]
Save a few bytes by using bb_getopt_ulflags and a few other minor
improvments
Eric Andersen [Sat, 21 Jun 2003 20:03:07 +0000 (20:03 -0000)]
Based on a tinylogin patch from Philip Blundell, add several
additional options to adduser.
-Erik
Eric Andersen [Sat, 21 Jun 2003 09:05:49 +0000 (09:05 -0000)]
Fix a silly bug I introduced yesterday
Eric Andersen [Fri, 20 Jun 2003 10:02:29 +0000 (10:02 -0000)]
Fixup whitespace handing, fixing some annoying behavior and
a couple of segfaults
Eric Andersen [Fri, 20 Jun 2003 09:57:30 +0000 (09:57 -0000)]
Fall back to looking in /lib/modules/modules.dep if
/lib/modules/<kernel version>/modules.dep is missing
Eric Andersen [Fri, 20 Jun 2003 09:56:37 +0000 (09:56 -0000)]
Patch from Andrew Dennison:
I've had some issues with modprobe which I reported a few months ago. This
is still an issue so I decided to sort it out.
The attached diff includes the changes against the unstable cvs tree that
work for me.
Changes are:
mod_process() will report success if the module at the head of the list
loads successfully. It will also report success if any module unloads
successfully.
The net result being that modprobe will succeed in the cases outlined below.
I've also added error reporting to modprobe -r. Previously it would silently
fail (but report success) if the module could not be unloaded.
Andrew
Eric Andersen [Fri, 20 Jun 2003 09:36:49 +0000 (09:36 -0000)]
Somewhere in the 2.4.x kernel series, /proc/mounts was changed to display a
"rootfs" entry as well as the traditional "/dev/root" entry. This caused
applets such as mount and df to display two root filesystem entries....
This teaches the relevant utilities to ignore the "rootfs" entry.
-Erik
Eric Andersen [Fri, 20 Jun 2003 09:25:34 +0000 (09:25 -0000)]
Don't shadow a paramater
Eric Andersen [Fri, 20 Jun 2003 09:23:34 +0000 (09:23 -0000)]
Fix a couple vars that could be used uninitialized
Eric Andersen [Fri, 20 Jun 2003 09:22:12 +0000 (09:22 -0000)]
use an explicit cast on some types that change size when
large file support is enabled.
Eric Andersen [Fri, 20 Jun 2003 09:20:28 +0000 (09:20 -0000)]
Make gcc not whine about "deprecated use of label at end of compound statement"
Eric Andersen [Fri, 20 Jun 2003 09:16:00 +0000 (09:16 -0000)]
Add prototype update missing from last_patch89. Fix screwy
formatting in cut.
Eric Andersen [Fri, 20 Jun 2003 09:05:00 +0000 (09:05 -0000)]
Patch from Lars Kellogg-Stedman:
I'm building BusyBox using a development kit for MontaVista Hardhat Linux
(PPC) -- which, at least in this instance, is based around kernel 2.2.14.
I've had to massage a few files in networking/libiproute/ to make it
compile. Specifically:
(1) Added a #include <sys/uio.h> for the iovec structure in
libnetlink.c,
(2) Put ifdefs in ll_types.c and ll_proto.c around various
constants (ETH_P_xxx and ARPHRD_xxx) that weren't defined,
(3) Make do_changename() in iplink.c require a kernel >=
2.4.0 -- the ifr structure in my environment doesn't
have the ifr_name attribute. I've assumed this is
a kernel dependency -- let me know if I ought to be
checking something else.
In the absence of the correct kernel, do_changename()
always returns 0.
Attached is a patch against the current CVS that will make these changes.
-- Lars
Eric Andersen [Fri, 20 Jun 2003 09:01:58 +0000 (09:01 -0000)]
last_patch89 from vodz:
Manuel,
I rewrite bb_getopt_ulflags() function for more universal usage.
My version support now:
- options with arguments (optional arg as GNU extension also)
- complementaly and/or incomplementaly and/or incongruously and/or list
options
- long_opt (all applets may have long option, add supporting is trivial)
This realisation full compatibile from your version.
Code size grow 480 bytes, but only coreutils/* over compensate this size
after using new function. Last patch reduced over 800 bytes and not full
applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate
trivial addition support long_opt with usage new bb_getopt_ulflags().
Complementaly and/or incomplementaly and/or incongruously and/or list options
logic is not trivial, but new "cut" and "grep" applets using this logic
for examples with full demostrating. New "grep" applet reduced over 300
bytes.
Mark,
Also. I removed bug from "grep" applet.
$ echo a b | busybox grep -e a b
a b
a b
But right is printing one only.
--w
vodz
Eric Andersen [Sun, 15 Jun 2003 07:00:54 +0000 (07:00 -0000)]
Fix rpm usage msg
Eric Andersen [Sat, 14 Jun 2003 02:57:53 +0000 (02:57 -0000)]
Add missing pieces from vodz' last_patch88
Eric Andersen [Thu, 12 Jun 2003 22:09:08 +0000 (22:09 -0000)]
Fix the location for the default config so 'make defconfig'
actually works
Glenn L McGrath [Thu, 12 Jun 2003 13:47:16 +0000 (13:47 -0000)]
Handle hard links by converting them to symlinks
Glenn L McGrath [Tue, 10 Jun 2003 17:22:49 +0000 (17:22 -0000)]
Vodz, last_patch_88
Glenn L McGrath [Sun, 8 Jun 2003 13:32:12 +0000 (13:32 -0000)]
sha1sum option to compare checksums
Glenn L McGrath [Sat, 7 Jun 2003 17:38:33 +0000 (17:38 -0000)]
Better error handling
Glenn L McGrath [Sat, 7 Jun 2003 17:11:00 +0000 (17:11 -0000)]
Minor correction
Glenn L McGrath [Sat, 7 Jun 2003 17:06:28 +0000 (17:06 -0000)]
Fix bug (wrong value computed) when reading file from stdin, implement
-s option
Glenn L McGrath [Sat, 7 Jun 2003 14:54:24 +0000 (14:54 -0000)]
Run through indent
Eric Andersen [Thu, 5 Jun 2003 19:37:01 +0000 (19:37 -0000)]
Patch from Lars Kellogg-Stedman, lars at larsshack.org, to
make ifupdown's mapping function work as documented.
Eric Andersen [Tue, 27 May 2003 20:45:59 +0000 (20:45 -0000)]
Put this back the way it was. I misunderstood what vodz was doing.
Eric Andersen [Mon, 26 May 2003 18:48:56 +0000 (18:48 -0000)]
Make all syscall declarations use the syscall() function
Eric Andersen [Mon, 26 May 2003 18:12:00 +0000 (18:12 -0000)]
This was doing some silly stuff that is not necessary when using
vfork(), so I have simplified it.
Eric Andersen [Mon, 26 May 2003 18:09:14 +0000 (18:09 -0000)]
cleanup a bit to remove needless verify() function
Eric Andersen [Mon, 26 May 2003 18:07:30 +0000 (18:07 -0000)]
Skip printing "/proc/%d/cmdline" stuff when it is not relevant
Eric Andersen [Mon, 26 May 2003 18:06:20 +0000 (18:06 -0000)]
Remove cruft
Glenn L McGrath [Mon, 26 May 2003 14:09:12 +0000 (14:09 -0000)]
Vodz, last_path_87, formatiing changes
Glenn L McGrath [Mon, 26 May 2003 14:07:50 +0000 (14:07 -0000)]
Vodz, last_patch_86
Eric Andersen [Sat, 24 May 2003 07:30:58 +0000 (07:30 -0000)]
Update mkdep, per the "touchless dependencies for 2.4.x" patch
from Geert Uytterhoeven posted to the lkml.
-Erik
Eric Andersen [Fri, 23 May 2003 09:29:57 +0000 (09:29 -0000)]
oops
Eric Andersen [Fri, 23 May 2003 09:28:01 +0000 (09:28 -0000)]
This patch from Vitezslav Batrla, is a cleaner fix for the
problem with syslogd logging the '<' char.
Eric Andersen [Thu, 22 May 2003 07:10:22 +0000 (07:10 -0000)]
Patch from Russell Coker:
The attached patch fixes a compilation error. If you compile ping6 without
the CONFIG_FEATURE_FANCY_PING6 option then the compile will fail without this
patch.
Glenn L McGrath [Mon, 19 May 2003 05:56:16 +0000 (05:56 -0000)]
Patch from Glenn Engel
- more comments
- larger allowed number of CGI script variables
- ifdefs for regression test hooks
- default to ./ rather than /www (if unspecified) for compatibility with
earlier versions.
- Allow ip: as a synomym for A: rules for compatibility with earlier
versions.
- Setting of CGI_ARGLIST_ when automatic setting of env vars for form
scripting is utilized. This helps with minimal systems like openap.
Matt Kraai [Sun, 18 May 2003 21:12:36 +0000 (21:12 -0000)]
Handle -O preceding -x.
Eric Andersen [Fri, 16 May 2003 08:35:02 +0000 (08:35 -0000)]
Apply patch from Georg Magschok to fix syslog behavior so that the
'>' charactor can be logged, per rfc3164.
Also, a small patch from me to fix it so we use MAXLINE when allocating the
buffer, which is consistant with use everywhere else. This is needed since
uClibc defines BUFSIZE as 255, causing lines to be truncated at 255...
Glenn L McGrath [Wed, 14 May 2003 12:20:21 +0000 (12:20 -0000)]
Part of a patch from Glenn Engel, updates httpd help