oweals/busybox.git
23 years agoRewrite argv munger.
Matt Kraai [Fri, 15 Dec 2000 00:35:22 +0000 (00:35 -0000)]
Rewrite argv munger.

23 years agoAdd in mkCDrec - make CD-ROM recovery project.
Eric Andersen [Thu, 14 Dec 2000 15:43:57 +0000 (15:43 -0000)]
Add in mkCDrec - make CD-ROM recovery project.

23 years agoSimplify error handling.
Matt Kraai [Thu, 14 Dec 2000 05:44:36 +0000 (05:44 -0000)]
Simplify error handling.

23 years agoShutdown sending on the socket when stdin closes.
Matt Kraai [Thu, 14 Dec 2000 04:34:58 +0000 (04:34 -0000)]
Shutdown sending on the socket when stdin closes.

23 years agoAdded some necessary brackets, removed debug noise.
Mark Whitley [Wed, 13 Dec 2000 23:23:30 +0000 (23:23 -0000)]
Added some necessary brackets, removed debug noise.

23 years agoRan aspell.
Matt Kraai [Wed, 13 Dec 2000 19:50:48 +0000 (19:50 -0000)]
Ran aspell.

23 years agoFormatting fix 0_48
Eric Andersen [Wed, 13 Dec 2000 18:30:59 +0000 (18:30 -0000)]
Formatting fix

23 years agoWebsite update for the release
Eric Andersen [Wed, 13 Dec 2000 18:30:13 +0000 (18:30 -0000)]
Website update for the release

23 years agoAdd a few folks to Authors
Eric Andersen [Wed, 13 Dec 2000 18:14:51 +0000 (18:14 -0000)]
Add a few folks to Authors

23 years agoA few more updates
Eric Andersen [Wed, 13 Dec 2000 18:07:38 +0000 (18:07 -0000)]
A few more updates

23 years agoDocument gzip -d
Eric Andersen [Wed, 13 Dec 2000 17:59:37 +0000 (17:59 -0000)]
Document gzip -d

23 years agoAdd GNU compatibile gzip -d
Eric Andersen [Wed, 13 Dec 2000 17:55:11 +0000 (17:55 -0000)]
Add GNU compatibile gzip -d

23 years agoUpdate the version number to 0.48 (no longer pre).
Eric Andersen [Wed, 13 Dec 2000 16:42:24 +0000 (16:42 -0000)]
Update the version number to 0.48 (no longer pre).

23 years agoA couple of updates to fix some minor cross compiling issues
Eric Andersen [Wed, 13 Dec 2000 16:41:29 +0000 (16:41 -0000)]
A couple of updates to fix some minor cross compiling issues

23 years agoPatch from Matt Kraai:
Eric Andersen [Wed, 13 Dec 2000 15:28:48 +0000 (15:28 -0000)]
Patch from Matt Kraai:
    The following patch makes the -X option to tar behave like GNU,
    which reads one file per line.  It also prevents the last file
    from being appended to the list twice (though that has no
    noticeable impact).

23 years agoFix from Matt Kraai -- a better way to NULL terminate strings for the
Eric Andersen [Wed, 13 Dec 2000 01:52:39 +0000 (01:52 -0000)]
Fix from Matt Kraai -- a better way to NULL terminate strings for the
my_* passwd and group routines.  I should have thought of doing it
this way...

23 years agoFix from Gennady Feldman for error msg
Eric Andersen [Tue, 12 Dec 2000 23:51:43 +0000 (23:51 -0000)]
Fix from Gennady Feldman for error msg

23 years agoMem leak fix from Matt Kraai
Eric Andersen [Tue, 12 Dec 2000 23:45:36 +0000 (23:45 -0000)]
Mem leak fix from Matt Kraai

23 years agoPatch from Matt Kraai to fix 'dirname /'
Eric Andersen [Tue, 12 Dec 2000 23:27:48 +0000 (23:27 -0000)]
Patch from Matt Kraai to fix 'dirname /'

23 years agoFix so cross compiling works again...
Eric Andersen [Tue, 12 Dec 2000 23:23:32 +0000 (23:23 -0000)]
Fix so cross compiling works again...

23 years agoCleanup for proper compilation with uClibc.
Eric Andersen [Tue, 12 Dec 2000 23:22:35 +0000 (23:22 -0000)]
Cleanup for proper compilation with uClibc.

23 years agoMount error return code fix from Kent Robotti -- we must reset the error
Eric Andersen [Tue, 12 Dec 2000 23:20:37 +0000 (23:20 -0000)]
Mount error return code fix from Kent Robotti -- we must reset the error
code when looping...

23 years agodu.c error msg cleanup from Kent Robotti
Eric Andersen [Tue, 12 Dec 2000 23:17:26 +0000 (23:17 -0000)]
du.c error msg cleanup from Kent Robotti

23 years agoFix from Matt Kraai so basename / will work as expected.
Eric Andersen [Tue, 12 Dec 2000 23:13:54 +0000 (23:13 -0000)]
Fix from Matt Kraai so basename / will work as expected.

23 years agoOops. Unmatched #if
Eric Andersen [Tue, 12 Dec 2000 18:20:19 +0000 (18:20 -0000)]
Oops.  Unmatched #if

23 years agoSome compile fixes found by Larry Doolittle
Eric Andersen [Tue, 12 Dec 2000 16:55:56 +0000 (16:55 -0000)]
Some compile fixes found by Larry Doolittle

23 years agoScript updates for better portability
Eric Andersen [Tue, 12 Dec 2000 16:49:12 +0000 (16:49 -0000)]
Script updates for better portability

23 years agoMatt Kraai pointed out that we can rely on strncpy to NULL
Eric Andersen [Mon, 11 Dec 2000 20:33:46 +0000 (20:33 -0000)]
Matt Kraai pointed out that we can rely on strncpy to NULL
terminate shorter cases, so we can save a few cycles...

23 years agoPatch from larry doolittle to make sure we don't realloc
Eric Andersen [Mon, 11 Dec 2000 20:29:13 +0000 (20:29 -0000)]
Patch from larry doolittle to make sure we don't realloc
a pointer that was not yet malloced mem.

23 years agoKeep unknown priorities from segfaulting.
Matt Kraai [Mon, 11 Dec 2000 20:13:37 +0000 (20:13 -0000)]
Keep unknown priorities from segfaulting.

23 years agoFix spelling error s/defaut/default/g
Eric Andersen [Mon, 11 Dec 2000 19:39:25 +0000 (19:39 -0000)]
Fix spelling error s/defaut/default/g

23 years agoFix non-NULL terminated strings.
Eric Andersen [Mon, 11 Dec 2000 19:37:19 +0000 (19:37 -0000)]
Fix non-NULL terminated strings.

23 years agoFix a thinko -- when REMOTE_LOG support is compiled in,
Eric Andersen [Mon, 11 Dec 2000 19:28:29 +0000 (19:28 -0000)]
Fix a thinko -- when REMOTE_LOG support is compiled in,
but the user has not specified remote logging, then
be sure to log locally... duh.

23 years agoPatch from Matt Kraai to fox sh.c escape problem such that
Eric Andersen [Mon, 11 Dec 2000 19:14:40 +0000 (19:14 -0000)]
Patch from Matt Kraai to fox sh.c escape problem such that
running things like 'echo "\n\tHi\n\t\!"' and 'echo -e "\n\tHi\n\t\!"'
behave as under bash.

23 years agoTest suite update from Larry Doolittle to disable some problematic
Eric Andersen [Mon, 11 Dec 2000 17:33:08 +0000 (17:33 -0000)]
Test suite update from Larry Doolittle to disable some problematic
ambiguous cases.  Everything now passes the test suite...

23 years agoPatch from kent robotti to fix a buglet where
Eric Andersen [Mon, 11 Dec 2000 17:08:21 +0000 (17:08 -0000)]
Patch from kent robotti to fix a buglet where
    # du doesn't_exist
    du: doesn't_exist: No such file or directory
    0   doesn't_exist
which was on course wrong.  I simplified it a bit...

23 years agoFix the option parsing to use getopt, which seems to fix bug #1050
Eric Andersen [Mon, 11 Dec 2000 16:48:50 +0000 (16:48 -0000)]
Fix the option parsing to use getopt, which seems to fix bug #1050

23 years agoPatch from Larry Doolittle, fix up logging across multilple lines, hopefully
Eric Andersen [Mon, 11 Dec 2000 16:31:11 +0000 (16:31 -0000)]
Patch from Larry Doolittle, fix up logging across multilple lines, hopefully
fixing bug #1061.

23 years agoReverse logic so when network logging, it by default does not log locally.
Eric Andersen [Mon, 11 Dec 2000 16:24:16 +0000 (16:24 -0000)]
Reverse logic so when network logging, it by default does not log locally.

23 years agoAdd a linker warning for symbol conflicts.
Eric Andersen [Mon, 11 Dec 2000 16:20:40 +0000 (16:20 -0000)]
Add a linker warning for symbol conflicts.

23 years agoSome .deb update
Eric Andersen [Sun, 10 Dec 2000 04:43:49 +0000 (04:43 -0000)]
Some .deb update

23 years agoSupport for tar -z option for uncompressing only
Glenn L McGrath [Sun, 10 Dec 2000 01:57:30 +0000 (01:57 -0000)]
Support for tar -z option for uncompressing only

23 years agoIntroduce new function gunzip_init()
Glenn L McGrath [Sun, 10 Dec 2000 00:51:42 +0000 (00:51 -0000)]
Introduce new function gunzip_init()
gunzip_init() will make it easier to use gunzip from other bb functions.

23 years agoNFS_PORT and NFS_FHSIZE are not defined in the kernel headers that come with libc6...
Glenn L McGrath [Sat, 9 Dec 2000 23:59:04 +0000 (23:59 -0000)]
NFS_PORT and NFS_FHSIZE are not defined in the kernel headers that come with libc6-2.2-5
This just defines that if they arent found in the kernel header

23 years agoFix problem where 'du file_that_exists' doesn't work.
Eric Andersen [Sat, 9 Dec 2000 17:07:12 +0000 (17:07 -0000)]
Fix problem where 'du file_that_exists' doesn't work.

23 years agoMore wget cleanups I've been working on...
Eric Andersen [Sat, 9 Dec 2000 16:55:35 +0000 (16:55 -0000)]
More wget cleanups I've been working on...

23 years agoSome little cleanups from Larry Doolittle
Eric Andersen [Sat, 9 Dec 2000 16:41:42 +0000 (16:41 -0000)]
Some little cleanups from Larry Doolittle

23 years agoPatch from Matt Kraai to implement uniq -[cdu]
Eric Andersen [Sat, 9 Dec 2000 16:37:53 +0000 (16:37 -0000)]
Patch from Matt Kraai to implement uniq -[cdu]

23 years agoadd quiet mode support.
Glenn L McGrath [Sat, 9 Dec 2000 08:12:06 +0000 (08:12 -0000)]
add quiet mode support.
If wget compiled without statusbar then -q option is accepted but has no effect.
If wget compiled with statusbar -q turns it off.

23 years agoForget to set final argv entry to NULL, breaking sh.c amoung
Eric Andersen [Sat, 9 Dec 2000 00:19:30 +0000 (00:19 -0000)]
Forget to set final argv entry to NULL, breaking sh.c amoung
other things...

23 years agoSome updates. Wrong name was on a patch, plus a spelling fix.
Eric Andersen [Fri, 8 Dec 2000 21:05:58 +0000 (21:05 -0000)]
Some updates.  Wrong name was on a patch, plus a spelling fix.

23 years agoPut in i to getopt, so i will work...
Eric Andersen [Fri, 8 Dec 2000 20:50:30 +0000 (20:50 -0000)]
Put in i to getopt, so i will work...

23 years agoUpdate inittab docs
Eric Andersen [Fri, 8 Dec 2000 20:38:00 +0000 (20:38 -0000)]
Update inittab docs

23 years agoMake no local logging a runtime option for network logging...
Eric Andersen [Fri, 8 Dec 2000 19:52:01 +0000 (19:52 -0000)]
Make no local logging a runtime option for network logging...

23 years agoPatch from Gennady Feldman <gfeldman@mail.com> to make syslogd not log
Eric Andersen [Fri, 8 Dec 2000 19:41:21 +0000 (19:41 -0000)]
Patch from Gennady Feldman <gfeldman@mail.com> to make syslogd not log
when compiled for remote logging.  Not the ideal way to fix it (it should
really be a runtime switch), but good enough for now I guess...

23 years agoPatch from Matt Kraai to make logger log all arguments.
Eric Andersen [Fri, 8 Dec 2000 19:35:51 +0000 (19:35 -0000)]
Patch from Matt Kraai to make logger log all arguments.

23 years agowhen invoked as 'busybox foo args' remove the "busybox"
Eric Andersen [Fri, 8 Dec 2000 19:03:12 +0000 (19:03 -0000)]
when invoked as 'busybox foo args' remove the "busybox"
so ps shows only what we want it to show...

23 years agoPatch from Matt Kraai to enable proxy support.
Eric Andersen [Thu, 7 Dec 2000 22:42:11 +0000 (22:42 -0000)]
Patch from Matt Kraai to enable proxy support.

23 years agoChanged names of functions in utility.c and all affected files, to make
Mark Whitley [Thu, 7 Dec 2000 19:56:48 +0000 (19:56 -0000)]
Changed names of functions in utility.c and all affected files, to make
compliant with the style guide. Everybody rebuild your tags file!

23 years agoFix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format
Matt Kraai [Thu, 7 Dec 2000 16:22:04 +0000 (16:22 -0000)]
Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format
strings from being passed to syslog(3).

23 years agoGet rid of redundant TRUE and FALSE definitions.
Matt Kraai [Thu, 7 Dec 2000 16:11:50 +0000 (16:11 -0000)]
Get rid of redundant TRUE and FALSE definitions.

23 years agooops, didn't mean to commit that last one... reverting
Randolph Chung [Thu, 7 Dec 2000 03:56:10 +0000 (03:56 -0000)]
oops, didn't mean to commit that last one... reverting

23 years agoWrite progress meter to stderr instead of stdout
Randolph Chung [Thu, 7 Dec 2000 03:55:35 +0000 (03:55 -0000)]
Write progress meter to stderr instead of stdout

23 years agoFixed URL parsing bug
Randolph Chung [Thu, 7 Dec 2000 03:53:47 +0000 (03:53 -0000)]
Fixed URL parsing bug
Fixed -O - output-to-stdout bug

23 years agoPatch from Jim Gleason <jimg@lineo.com> to fix tar so it no longer breaks hard
Eric Andersen [Thu, 7 Dec 2000 00:34:58 +0000 (00:34 -0000)]
Patch from Jim Gleason <jimg@lineo.com> to fix tar so it no longer breaks hard
links, and no longer segfault in a certain wierd case.

23 years agoAdd some more changlog stuff suggested by Larry Doolittle.
Eric Andersen [Thu, 7 Dec 2000 00:29:50 +0000 (00:29 -0000)]
Add some more changlog stuff suggested by Larry Doolittle.

23 years agoBettwr document the hidden internal sh.c #defines, and which folks
Eric Andersen [Wed, 6 Dec 2000 23:47:38 +0000 (23:47 -0000)]
Bettwr document the hidden internal sh.c #defines, and which folks
might want to use...

23 years agoClose but #1071...
Eric Andersen [Wed, 6 Dec 2000 23:17:37 +0000 (23:17 -0000)]
Close but #1071...

23 years agoIgnore the newdocs as well
Eric Andersen [Wed, 6 Dec 2000 23:12:43 +0000 (23:12 -0000)]
Ignore the newdocs as well

23 years agoPatch from Matt Kraai to fix 'echo "1 2 3" | tr -s " "'
Eric Andersen [Wed, 6 Dec 2000 22:53:06 +0000 (22:53 -0000)]
Patch from Matt Kraai to fix 'echo "1 2   3" | tr -s " "'
so it properly outputs "1 2 3".

23 years agopatch from Larry Doolittle to rename BB_FEATURE_SH_BUILTINS_ALWAYS_WIN
Eric Andersen [Wed, 6 Dec 2000 19:07:39 +0000 (19:07 -0000)]
patch from Larry Doolittle to rename BB_FEATURE_SH_BUILTINS_ALWAYS_WIN
to the more pedantically correct BB_FEATURE_SH_APPLETS_ALWAYS_WIN.

23 years agoAdded insmod support for ARM, and lsmod support for older kernels,
Eric Andersen [Wed, 6 Dec 2000 18:18:26 +0000 (18:18 -0000)]
Added insmod support for ARM, and lsmod support for older kernels,
thanks to Alcove, Julien Gaulmin <julien.gaulmin@alcove.fr> and
Nicolas Ferre <nicolas.ferre@alcove.fr>.
 -Erik

23 years agoMust compile before committing.
Matt Kraai [Wed, 6 Dec 2000 15:56:31 +0000 (15:56 -0000)]
Must compile before committing.

23 years agoFix exit status on failure.
Matt Kraai [Wed, 6 Dec 2000 15:55:23 +0000 (15:55 -0000)]
Fix exit status on failure.

23 years agoRemoved isBlank and isWildCard macros that were totally unused (should anyone
Mark Whitley [Tue, 5 Dec 2000 20:42:48 +0000 (20:42 -0000)]
Removed isBlank and isWildCard macros that were totally unused (should anyone
need isBlank, please use isblank() in ctype.h). Converted isDecimal and
isOctal into inline functions. Compiled, tested, worked.

23 years agoChanged some #define strings to static const char [] variables. Tested ls
Mark Whitley [Tue, 5 Dec 2000 20:10:27 +0000 (20:10 -0000)]
Changed some #define strings to static const char [] variables. Tested ls
after changing, it worked.

23 years agoUse perrorMsg and clean up exit status.
Matt Kraai [Tue, 5 Dec 2000 20:07:27 +0000 (20:07 -0000)]
Use perrorMsg and clean up exit status.

23 years agoFixed the comments to match the code and renamed the function to a (hopefully)
Mark Whitley [Tue, 5 Dec 2000 20:03:17 +0000 (20:03 -0000)]
Fixed the comments to match the code and renamed the function to a (hopefully)
more descriptive name, and as per the style guide.

23 years agoApplied patch from Matt Kraai to add v*error functions for handling vararg
Mark Whitley [Tue, 5 Dec 2000 19:27:13 +0000 (19:27 -0000)]
Applied patch from Matt Kraai to add v*error functions for handling vararg
lists in a safe 'n sane fashion.

23 years agoUse perrorMsg instead of perror and keep removing files if we encounter
Matt Kraai [Tue, 5 Dec 2000 05:11:41 +0000 (05:11 -0000)]
Use perrorMsg instead of perror and keep removing files if we encounter
an error.

23 years agoChangelog update
Eric Andersen [Mon, 4 Dec 2000 23:52:19 +0000 (23:52 -0000)]
Changelog update

23 years agoFlag day warning!
Eric Andersen [Mon, 4 Dec 2000 20:31:45 +0000 (20:31 -0000)]
Flag day warning!
Change TRUE and FALSE defines to normal C style TRUE=1, FALSE=0.
 -Erik

23 years agoPatch to add in the -X option and fix the --exclude bug, originally by
Eric Andersen [Mon, 4 Dec 2000 18:51:09 +0000 (18:51 -0000)]
Patch to add in the -X option and fix the --exclude bug, originally by
Sebastien Huet, and now ported to the latest and greatest by both Arne Bernin
<ab@netropol.de> and kent robotti <robotti@metconnect.com>.

23 years agoFix typo
Eric Andersen [Sat, 2 Dec 2000 06:32:14 +0000 (06:32 -0000)]
Fix typo

23 years agoPatch from Larry Doolittle so it will build the newdocs right.
Eric Andersen [Sat, 2 Dec 2000 00:44:48 +0000 (00:44 -0000)]
Patch from Larry Doolittle so it will build the newdocs right.

23 years agoUpdate for handling .udebs and building using a pristine source dir...
Eric Andersen [Fri, 1 Dec 2000 22:59:04 +0000 (22:59 -0000)]
Update for handling .udebs and building using a pristine source dir...

23 years agoMore doc handling updates
Eric Andersen [Fri, 1 Dec 2000 22:57:44 +0000 (22:57 -0000)]
More doc handling updates

23 years agoUpdate some descriptions
Eric Andersen [Fri, 1 Dec 2000 22:57:09 +0000 (22:57 -0000)]
Update some descriptions

23 years agoFix yet another blunder. Create symlink correctly this time.
Eric Andersen [Fri, 1 Dec 2000 20:26:30 +0000 (20:26 -0000)]
Fix yet another blunder.  Create symlink correctly this time.

23 years agoI forgot a "/". Oops.
Eric Andersen [Fri, 1 Dec 2000 20:02:10 +0000 (20:02 -0000)]
I forgot a "/".  Oops.

23 years agoMore pristine source directory updates. It now works
Eric Andersen [Fri, 1 Dec 2000 19:55:04 +0000 (19:55 -0000)]
More pristine source directory updates.  It now works
for me (including doing install).  How about you?
 -Erik

23 years agoMore updates for the Makefile to do BB_SRC_DIR. This is
Eric Andersen [Fri, 1 Dec 2000 19:40:18 +0000 (19:40 -0000)]
More updates for the Makefile to do BB_SRC_DIR.  This is
primarily a patch from Larry Doolittle, but with updates
from me to handle docs and link creation properly...

23 years agoMake tar shutup on compile
Eric Andersen [Fri, 1 Dec 2000 19:04:52 +0000 (19:04 -0000)]
Make tar shutup on compile

23 years agoRemove #ifdef __STDC__ junk. We don't do K&R round these parts,
Eric Andersen [Fri, 1 Dec 2000 19:02:24 +0000 (19:02 -0000)]
Remove #ifdef __STDC__ junk.  We don't do K&R round these parts,
so no point acting like we do.

23 years agoStop using TRUE and FALSE for exit status.
Matt Kraai [Fri, 1 Dec 2000 02:55:13 +0000 (02:55 -0000)]
Stop using TRUE and FALSE for exit status.

23 years agoApply some patches from Gennady Feldman <gfeldman@mail.com> to
Eric Andersen [Thu, 30 Nov 2000 22:43:16 +0000 (22:43 -0000)]
Apply some patches from Gennady Feldman <gfeldman@mail.com> to
. /etc/profile, and to emulate bash prompt.  I've cleaned up
his patches a bit and all looks good now...

23 years agoNote new dependency.
Matt Kraai [Thu, 30 Nov 2000 04:55:40 +0000 (04:55 -0000)]
Note new dependency.

23 years agoNote an error if we are unable to list/extract specified files.
Matt Kraai [Thu, 30 Nov 2000 04:44:54 +0000 (04:44 -0000)]
Note an error if we are unable to list/extract specified files.

23 years agoPatch from Larry Doolittle (with minor touchups from me so everything compiles
Eric Andersen [Thu, 30 Nov 2000 00:27:06 +0000 (00:27 -0000)]
Patch from Larry Doolittle (with minor touchups from me so everything compiles
and works) to use the applet definitions in applets.h to autogenerate the applet
function and usage prototypes.

23 years agoFix escape char problem.
Eric Andersen [Thu, 30 Nov 2000 00:03:57 +0000 (00:03 -0000)]
Fix escape char problem.