platform/upstream/busybox.git
21 years agogrep -f support, adds only 60 Bytes, but regex's now compiled as
Glenn L McGrath [Sun, 27 Apr 2003 01:50:57 +0000 (01:50 -0000)]
grep -f support, adds only 60 Bytes, but regex's now compiled as
required, rather than being pre-compiled.

21 years agoAlways preserve date
Glenn L McGrath [Sat, 26 Apr 2003 13:16:44 +0000 (13:16 -0000)]
Always preserve date

21 years agoNew commands, 'G' and 'H'
Glenn L McGrath [Sat, 26 Apr 2003 07:40:07 +0000 (07:40 -0000)]
New commands, 'G' and 'H'

21 years agoAdd the -d option, its used by old versions of config.guess, change to
Glenn L McGrath [Sat, 26 Apr 2003 04:56:17 +0000 (04:56 -0000)]
Add the -d option, its used by old versions of config.guess, change to
use getopt.

21 years agoiPatch from waldi, fixes usage of ip route flush (from)? (match|exact)
Glenn L McGrath [Sat, 26 Apr 2003 02:22:19 +0000 (02:22 -0000)]
iPatch from waldi, fixes usage of ip route flush (from)? (match|exact)

21 years agoPatch from Steven Scholz to fix telnetd compile problem
Eric Andersen [Fri, 25 Apr 2003 12:32:37 +0000 (12:32 -0000)]
Patch from Steven Scholz to fix telnetd compile problem

21 years agoThere have been many reports of init failing to reboot and/or failing to halt
Eric Andersen [Thu, 24 Apr 2003 11:41:28 +0000 (11:41 -0000)]
There have been many reports of init failing to reboot and/or failing to halt
over the years.  Well I finally took the time to track this down.  It turns out
that inside linux/kernel/sys.c the kernel will call
    machine_halt();
    do_exit(0);
when halting, or will call
    machine_power_off();
    do_exit(0);

during a reboot.  Unlike sysv init, we call reboot from within the init
process, so if the call to machine_halt() or machine_power_off() returns,                                       the call to do_exit(0) will cause the kernel to panic.  Which is a very
bad thing to happen.

So I just added this little patch to fork and call the reboot
syscall from within the forked child process, thereby neatly
avoiding the problem.

But IMHO, both calls to do_exit(0) within linux/kernel/sys.c
are bugs and should be fixed.

 -Erik

21 years agounlink a previous file before its extracted
Glenn L McGrath [Mon, 21 Apr 2003 11:03:29 +0000 (11:03 -0000)]
unlink a previous file before its extracted

21 years agosync with waldi
Glenn L McGrath [Mon, 21 Apr 2003 10:26:39 +0000 (10:26 -0000)]
sync with waldi

21 years agounlink() an existing file, before opening it, simply truncating can
Glenn L McGrath [Mon, 21 Apr 2003 10:07:48 +0000 (10:07 -0000)]
unlink() an existing file, before opening it, simply truncating can
cause nasty problems if overwriting glibc, spotted by waldi.

21 years agoAdd link to SimplyGNUstep
Eric Andersen [Mon, 21 Apr 2003 03:34:01 +0000 (03:34 -0000)]
Add link to SimplyGNUstep

21 years agoPatch from David Updegraff to use calloc so that forward pointers start out
Eric Andersen [Sat, 19 Apr 2003 23:18:35 +0000 (23:18 -0000)]
Patch from David Updegraff to  use calloc so that forward pointers start out
NULL, and so it can handle format strings that have stuff _after_ the last %?
specification

21 years agoPatch from David Updegraff to avoid corrupting memory while parsing the
Eric Andersen [Sat, 19 Apr 2003 23:15:06 +0000 (23:15 -0000)]
Patch from David Updegraff to avoid corrupting memory while parsing the
networks/iterfaces file with next_word routine.  Without this, next_word
increments one beyond the end of the string.

21 years agoMinor .o file naming change
Eric Andersen [Wed, 16 Apr 2003 23:02:35 +0000 (23:02 -0000)]
Minor .o file naming change

21 years agoenable CONFIG_USE_BB_PWD_GRP for the debian installer,
Eric Andersen [Wed, 16 Apr 2003 20:52:01 +0000 (20:52 -0000)]
enable CONFIG_USE_BB_PWD_GRP for the debian installer,
to prevent glibc from trying and failing to use NSS junk
that is not present.
 -Erik

21 years agoFix logic error in grouped commands
Glenn L McGrath [Sat, 12 Apr 2003 16:10:42 +0000 (16:10 -0000)]
Fix logic error in grouped commands

21 years agoFix up indenting
Glenn L McGrath [Fri, 11 Apr 2003 17:10:23 +0000 (17:10 -0000)]
Fix up indenting

21 years agoReally fix the 'r' command
Glenn L McGrath [Wed, 9 Apr 2003 15:52:32 +0000 (15:52 -0000)]
Really fix the 'r' command

21 years agoFix the sed 'r' command
Glenn L McGrath [Wed, 9 Apr 2003 15:26:14 +0000 (15:26 -0000)]
Fix the sed 'r' command

21 years agofix substitution when replacing with &, we shouldnt check for an escape charcter...
Glenn L McGrath [Wed, 9 Apr 2003 07:51:43 +0000 (07:51 -0000)]
fix substitution when replacing with &, we shouldnt check for an escape charcter. Its already been taken care of _somewhere_ else

21 years agoLabel ends at a newline, update comments, rename linked list field
Glenn L McGrath [Wed, 9 Apr 2003 01:43:54 +0000 (01:43 -0000)]
Label ends at a newline, update comments, rename linked list field

21 years agoRun through indent
Glenn L McGrath [Tue, 8 Apr 2003 11:56:11 +0000 (11:56 -0000)]
Run through indent

21 years agoFixes block commands to correctly identify end of block, recognise the #n directive...
Glenn L McGrath [Tue, 8 Apr 2003 06:42:45 +0000 (06:42 -0000)]
Fixes block commands to correctly identify end of block, recognise the #n directive, fix substitue command when regex isnt specified

21 years agoAdd hold space commands 'g', 'h', 'x'
Glenn L McGrath [Mon, 7 Apr 2003 16:04:14 +0000 (16:04 -0000)]
Add hold space commands 'g', 'h', 'x'

21 years agoRename "line" to pattern_space to be more descriptive and closer to the POSIX description
Glenn L McGrath [Mon, 7 Apr 2003 12:24:44 +0000 (12:24 -0000)]
Rename "line" to pattern_space to be more descriptive and closer to the POSIX description

21 years agoSync with waldi's package
Glenn L McGrath [Sun, 6 Apr 2003 15:35:52 +0000 (15:35 -0000)]
Sync with waldi's package

21 years agoPreparation for the new net-udeb based on required applets documented at
Glenn L McGrath [Sun, 6 Apr 2003 03:39:24 +0000 (03:39 -0000)]
Preparation for the new net-udeb based on required applets documented at
http://cvs.debian.org/debian-installer/doc/busybox-applets.txt

21 years agoAdd more help text
Eric Andersen [Fri, 4 Apr 2003 15:20:53 +0000 (15:20 -0000)]
Add more help text

21 years agoTest that cvs commit messages are working properly
Eric Andersen [Fri, 4 Apr 2003 14:35:36 +0000 (14:35 -0000)]
Test that cvs commit messages are working properly
 -Erik

21 years agoFix 'thinko'.
Manuel Novoa III [Thu, 3 Apr 2003 19:29:11 +0000 (19:29 -0000)]
Fix 'thinko'.

21 years agoYet another rather large face lift. It now works for me as expected.
Eric Andersen [Wed, 2 Apr 2003 10:13:26 +0000 (10:13 -0000)]
Yet another rather large face lift.  It now works for me as expected.
 -Erik

21 years agoAvoid errors with buggy preprocessors
Eric Andersen [Mon, 31 Mar 2003 16:27:18 +0000 (16:27 -0000)]
Avoid errors with buggy preprocessors

21 years agoUpdate config to new menu options
Glenn L McGrath [Sun, 30 Mar 2003 16:10:06 +0000 (16:10 -0000)]
Update config to new menu options

21 years agoRename, to specify kernel
Glenn L McGrath [Sun, 30 Mar 2003 13:57:26 +0000 (13:57 -0000)]
Rename, to specify kernel

21 years agoGroup common string
Glenn L McGrath [Sun, 30 Mar 2003 09:38:40 +0000 (09:38 -0000)]
Group common string

21 years agoSmall fix for sed 'y' command
Glenn L McGrath [Sun, 30 Mar 2003 08:40:09 +0000 (08:40 -0000)]
Small fix for sed 'y' command

21 years agosed 'y' command, simplify some other code
Glenn L McGrath [Sun, 30 Mar 2003 08:02:18 +0000 (08:02 -0000)]
sed 'y' command, simplify some other code

21 years agoExperimental support for embeded newline. (im evil)
Glenn L McGrath [Sun, 30 Mar 2003 03:41:53 +0000 (03:41 -0000)]
Experimental support for embeded newline. (im evil)
Fix segfault when using 'N' with an odd number of lines.

21 years agotrivial fix to make sure we have sufficient arguments before
Eric Andersen [Fri, 28 Mar 2003 16:54:14 +0000 (16:54 -0000)]
trivial fix to make sure we have sufficient arguments before
we mess with a possibly non-existant argv[1]
 -Erik

21 years agoStill fine tunning the printing of the substitute command
Glenn L McGrath [Fri, 28 Mar 2003 14:11:34 +0000 (14:11 -0000)]
Still fine tunning the printing of the substitute command

21 years agosed 't' branching command
Glenn L McGrath [Fri, 28 Mar 2003 08:36:52 +0000 (08:36 -0000)]
sed 't' branching command

21 years agoFix sed 's' command's 'p' flag, so it can print line twice
Glenn L McGrath [Fri, 28 Mar 2003 07:44:03 +0000 (07:44 -0000)]
Fix sed 's' command's 'p' flag, so it can print line twice

21 years agofix q command
Glenn L McGrath [Fri, 28 Mar 2003 04:57:52 +0000 (04:57 -0000)]
fix q command

21 years agoAdd basic branching support, sed ':' and 'b' commands
Glenn L McGrath [Fri, 28 Mar 2003 04:43:39 +0000 (04:43 -0000)]
Add basic branching support, sed ':' and 'b' commands

21 years agomake sed cleanup use linked list
Glenn L McGrath [Fri, 28 Mar 2003 04:23:23 +0000 (04:23 -0000)]
make sed cleanup use linked list

21 years agoUse a linked list for sed commands in preparation for branching support
Glenn L McGrath [Fri, 28 Mar 2003 03:53:31 +0000 (03:53 -0000)]
Use a linked list for sed commands in preparation for branching support

21 years agoOops... had != but meant ==.
Manuel Novoa III [Sun, 23 Mar 2003 20:27:33 +0000 (20:27 -0000)]
Oops... had != but meant ==.

21 years agoMinor cleanups. Document the cmp -l option.
Manuel Novoa III [Wed, 19 Mar 2003 18:40:42 +0000 (18:40 -0000)]
Minor cleanups.  Document the cmp -l option.

21 years agoRestrict octal perms to <= 07777. Cosmetic error message change.
Manuel Novoa III [Wed, 19 Mar 2003 18:09:03 +0000 (18:09 -0000)]
Restrict octal perms to <= 07777.  Cosmetic error message change.

21 years agoObligatory forgotten item.
Manuel Novoa III [Wed, 19 Mar 2003 09:42:33 +0000 (09:42 -0000)]
Obligatory forgotten item.

21 years agoThings my compiler didn't catch...
Manuel Novoa III [Wed, 19 Mar 2003 09:42:02 +0000 (09:42 -0000)]
Things my compiler didn't catch...

21 years agoMajor coreutils update.
Manuel Novoa III [Wed, 19 Mar 2003 09:13:01 +0000 (09:13 -0000)]
Major coreutils update.

21 years agoMatch newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern...
Glenn L McGrath [Tue, 18 Mar 2003 08:37:57 +0000 (08:37 -0000)]
Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.

21 years agoFix a bug that corrupted the string followed commands that had no arguments (Closes...
Glenn L McGrath [Tue, 18 Mar 2003 01:19:23 +0000 (01:19 -0000)]
Fix a bug that corrupted the string followed commands that had no arguments (Closes #1304)

21 years agoPatch from Jonas Holmberg, adjusted by Robert Schwebel, and
Eric Andersen [Fri, 14 Mar 2003 16:05:59 +0000 (16:05 -0000)]
Patch from Jonas Holmberg, adjusted by Robert Schwebel, and
later re-adjusted by me to fix msh backtick handling

21 years agooops. args shuffled.
Eric Andersen [Thu, 13 Mar 2003 20:54:26 +0000 (20:54 -0000)]
oops.  args shuffled.

21 years agoFix obviously wrong names from older busybox
Eric Andersen [Thu, 13 Mar 2003 18:57:08 +0000 (18:57 -0000)]
Fix obviously wrong names from older busybox

21 years agoPatch from Tito Ragusa:
Eric Andersen [Thu, 13 Mar 2003 18:49:45 +0000 (18:49 -0000)]
Patch from Tito Ragusa:

The changes I've made: in strings.c:
1) fix memory allocation error I've detected with MALLOC_CHECK_=1 in *string;
2) code clean up;
3) fix compiler warnings about uninitialized vars;

21 years agocope with crappy windoze ftp servers
Eric Andersen [Tue, 11 Mar 2003 18:03:39 +0000 (18:03 -0000)]
cope with crappy windoze ftp servers

21 years agoAvoid potential rendering problems
Eric Andersen [Mon, 10 Mar 2003 17:21:46 +0000 (17:21 -0000)]
Avoid potential rendering problems

21 years agofix n, add N, P
Glenn L McGrath [Mon, 10 Mar 2003 04:12:35 +0000 (04:12 -0000)]
fix n, add N, P

21 years agoadd the 'n' command
Glenn L McGrath [Mon, 10 Mar 2003 02:56:56 +0000 (02:56 -0000)]
add the 'n' command

21 years agoAdd the q (quit) option
Glenn L McGrath [Mon, 10 Mar 2003 02:21:14 +0000 (02:21 -0000)]
Add the q (quit) option

21 years agoFix a delimiter matching bug i introduced.
Glenn L McGrath [Sun, 9 Mar 2003 15:40:40 +0000 (15:40 -0000)]
Fix a delimiter matching bug i introduced.

21 years agoSupport grouped commands, i.e. {cmd1;cmd2}
Glenn L McGrath [Sun, 9 Mar 2003 15:12:24 +0000 (15:12 -0000)]
Support grouped commands, i.e. {cmd1;cmd2}

21 years agoalloc array for commands, use string ptr in parse_command_string()
Glenn L McGrath [Sun, 9 Mar 2003 11:06:38 +0000 (11:06 -0000)]
alloc array for commands, use string ptr in parse_command_string()

21 years agouse typedef for struct sed_cmd
Glenn L McGrath [Sun, 9 Mar 2003 10:23:57 +0000 (10:23 -0000)]
use typedef for struct sed_cmd

21 years agoredo get_addres(). save some space. possible fix a bug where the command might be...
Glenn L McGrath [Sun, 9 Mar 2003 08:44:49 +0000 (08:44 -0000)]
redo get_addres(). save some space. possible fix a bug where the command might be set to 0 if no second address is given. dont parse sed_cmd struct to get_address, we only need the delim field.

21 years agoWoops, remove the code i didnt mean to commit
Glenn L McGrath [Sun, 9 Mar 2003 02:44:49 +0000 (02:44 -0000)]
Woops, remove the code i didnt mean to commit

21 years agoMention the opengroup sed reference, add a check which is disabled at present.
Glenn L McGrath [Sun, 9 Mar 2003 02:39:29 +0000 (02:39 -0000)]
Mention the opengroup sed reference, add a check which is disabled at present.

21 years agoFix matching for the $ address (last line)
Glenn L McGrath [Sat, 8 Mar 2003 05:21:02 +0000 (05:21 -0000)]
Fix matching for the $ address (last line)

21 years agobe more careful about cleaning up
Eric Andersen [Fri, 7 Mar 2003 18:09:06 +0000 (18:09 -0000)]
be more careful about cleaning up

21 years agoScrub things a bit, shave off a few bytes.
Eric Andersen [Fri, 7 Mar 2003 18:03:02 +0000 (18:03 -0000)]
Scrub things a bit, shave off a few bytes.
 -Erik

21 years agoSave a few bytes and remove a redundant string
Eric Andersen [Fri, 7 Mar 2003 17:59:32 +0000 (17:59 -0000)]
Save a few bytes and remove a redundant string

21 years agoWith nightmares of libbb ending up with 100 .c files starting
Eric Andersen [Fri, 7 Mar 2003 17:43:32 +0000 (17:43 -0000)]
With nightmares of libbb ending up with 100 .c files starting
with "bb_" it seems best to rename this now and avoid starting
an evil KDE style naming trend.

21 years agoaudit for proper error handling, apply a few size optimizations
Eric Andersen [Fri, 7 Mar 2003 17:33:40 +0000 (17:33 -0000)]
audit for proper error handling, apply a few size optimizations
 -Erik

21 years agoDefine bb_xgetlarg as a standard interface for extracting
Eric Andersen [Fri, 7 Mar 2003 17:29:12 +0000 (17:29 -0000)]
Define bb_xgetlarg as a standard interface for extracting
numbers from getopt which includes careful error checking.
 -Erik

21 years agoExplicitly define -DNDEBUG so asserts don't clutter release code
Eric Andersen [Fri, 7 Mar 2003 17:27:51 +0000 (17:27 -0000)]
Explicitly define -DNDEBUG so asserts don't clutter release code

21 years agoAdd all the syslogd help text
Eric Andersen [Fri, 28 Feb 2003 07:20:55 +0000 (07:20 -0000)]
Add all the syslogd help text

21 years agoThere is no good reason to prevent nfs mounts from being mounted
Eric Andersen [Fri, 28 Feb 2003 06:29:27 +0000 (06:29 -0000)]
There is no good reason to prevent nfs mounts from being mounted
during 'mount -a'.  If the user wants to do that, hey, its their
lifs.  If the nfs server is down and they don't want to wait for
nfs to time out, that is their problem.
 -Erik

21 years agoWrite all the help text for the util-linux utilities. Allow
Eric Andersen [Thu, 27 Feb 2003 03:14:04 +0000 (03:14 -0000)]
Write all the help text for the util-linux utilities.  Allow
people to locate the mtab file somewhere other that /etc to
accomodate read only root filesystems.
 -Erik

21 years agomention "katamaran"
Eric Andersen [Tue, 18 Feb 2003 20:17:30 +0000 (20:17 -0000)]
mention "katamaran"

21 years agoFix for big endian machines
Glenn L McGrath [Mon, 17 Feb 2003 12:18:16 +0000 (12:18 -0000)]
Fix for big endian machines

21 years agoNew applet sha1sum
Glenn L McGrath [Mon, 17 Feb 2003 08:23:22 +0000 (08:23 -0000)]
New applet sha1sum

21 years agoPatch from Bastian Blank
Glenn L McGrath [Sat, 15 Feb 2003 11:50:33 +0000 (11:50 -0000)]
Patch from Bastian Blank
 - ip route flush
 - different usage for telnetd in inetd mode
 - changes for the default flags of the ip features
 - if no /usr requested, udhcpc should use the script also without /usr.

21 years agoMerge fileutils, textutils and shellutils into coreuils
Glenn L McGrath [Sat, 15 Feb 2003 10:53:40 +0000 (10:53 -0000)]
Merge fileutils, textutils and shellutils into coreuils

21 years agosync with udhcp bug fixes
Russ Dill [Wed, 12 Feb 2003 22:20:19 +0000 (22:20 -0000)]
sync with udhcp bug fixes

21 years agoDon't use HZ -- use sysconf(_SC_CLK_TCK)
Eric Andersen [Wed, 12 Feb 2003 10:56:53 +0000 (10:56 -0000)]
Don't use HZ -- use sysconf(_SC_CLK_TCK)

21 years agoFix compile error... header problems.
Manuel Novoa III [Tue, 11 Feb 2003 07:06:06 +0000 (07:06 -0000)]
Fix compile error... header problems.

21 years agolast_patch83 by Vladimir N. Oleynik
Glenn L McGrath [Mon, 10 Feb 2003 22:53:37 +0000 (22:53 -0000)]
last_patch83 by Vladimir N. Oleynik

21 years agoFix compile error, last_patch82 by Vladimir N. Oleynik
Glenn L McGrath [Mon, 10 Feb 2003 22:31:09 +0000 (22:31 -0000)]
Fix compile error, last_patch82 by Vladimir N. Oleynik

21 years agoFix compile error, last_patch81 by Vladimir N. Oleynik
Glenn L McGrath [Mon, 10 Feb 2003 22:28:21 +0000 (22:28 -0000)]
Fix compile error, last_patch81 by Vladimir N. Oleynik

21 years agoudhcpc is supposed to be in /sbin, not /usr/sbin/
Eric Andersen [Mon, 10 Feb 2003 09:22:36 +0000 (09:22 -0000)]
udhcpc is supposed to be in /sbin, not /usr/sbin/

21 years agoFix compiler warnings, patch by Steven Scholz
Glenn L McGrath [Sun, 9 Feb 2003 22:40:34 +0000 (22:40 -0000)]
Fix compiler warnings, patch by Steven Scholz

21 years agoWoops, my gunzip fix broke unzip, these cant be static
Glenn L McGrath [Sun, 9 Feb 2003 12:00:17 +0000 (12:00 -0000)]
Woops, my gunzip fix broke unzip, these cant be static

21 years agoMinor update to arping, patch from Nick Fedchik
Glenn L McGrath [Sun, 9 Feb 2003 07:01:33 +0000 (07:01 -0000)]
Minor update to arping, patch from Nick Fedchik

21 years agoNew applet, inetd, make httpd features more configurable, update authors, last_patch_80
Glenn L McGrath [Sun, 9 Feb 2003 06:51:14 +0000 (06:51 -0000)]
New applet, inetd, make httpd features more configurable, update authors, last_patch_80
from Vladimir N. Oleynik

21 years agoDont die if logging remotely fails, patch by Joshua Jackson
Glenn L McGrath [Sun, 9 Feb 2003 05:07:42 +0000 (05:07 -0000)]
Dont die if logging remotely fails, patch by Joshua Jackson

21 years agoSpecify install path, patch by Nick Fedchik
Glenn L McGrath [Sun, 9 Feb 2003 05:00:52 +0000 (05:00 -0000)]
Specify install path, patch by Nick Fedchik

21 years agoMoved to libunarchive/unzip.c
Glenn L McGrath [Sun, 9 Feb 2003 04:49:17 +0000 (04:49 -0000)]
Moved to libunarchive/unzip.c