oweals/busybox.git
24 years agoStop leaking file handles.
Matt Kraai [Thu, 7 Sep 2000 04:34:17 +0000 (04:34 -0000)]
Stop leaking file handles.

24 years agoFix more typos.
Matt Kraai [Wed, 6 Sep 2000 03:59:49 +0000 (03:59 -0000)]
Fix more typos.

24 years agoReset optind so that getopt works in busybox applets called directly by sh.
Matt Kraai [Wed, 6 Sep 2000 01:46:18 +0000 (01:46 -0000)]
Reset optind so that getopt works in busybox applets called directly by sh.
Change the behavior of -c to correctly handle $1..$9.

24 years agoFixed a grammatical error.
Matt Kraai [Wed, 6 Sep 2000 00:50:51 +0000 (00:50 -0000)]
Fixed a grammatical error.

24 years agoFixed for when BB_CP_MV is enabled.
Eric Andersen [Tue, 5 Sep 2000 22:17:22 +0000 (22:17 -0000)]
Fixed for when BB_CP_MV is enabled.

24 years agoAdd BB_SH to get_last_path_component()... Fix thanks to
Eric Andersen [Tue, 5 Sep 2000 21:50:52 +0000 (21:50 -0000)]
Add BB_SH to get_last_path_component()...  Fix thanks to
Bj�rn Eriksson.

24 years agoApply segfault on no-args fix from robotti@metconnect.com
Eric Andersen [Tue, 5 Sep 2000 18:21:53 +0000 (18:21 -0000)]
Apply segfault on no-args fix from robotti@metconnect.com

24 years agoSet environment variable to make ash happy. ash is a frequent enough
Eric Andersen [Tue, 5 Sep 2000 17:57:52 +0000 (17:57 -0000)]
Set environment variable to make ash happy.  ash is a frequent enough
target....

24 years agoAdded expr, from Edward Betts <edward@debian.org>, with some fixups
Eric Andersen [Tue, 5 Sep 2000 17:37:48 +0000 (17:37 -0000)]
Added expr, from Edward Betts <edward@debian.org>, with some fixups
and docs added by me.
 -Erik

24 years agoAllow compilation when not using BB_FEATURE_TAR_EXCLUDE, and fix
Matt Kraai [Mon, 4 Sep 2000 16:51:55 +0000 (16:51 -0000)]
Allow compilation when not using BB_FEATURE_TAR_EXCLUDE, and fix
handling of --exclude option.

24 years agoForgot this part of wget
Eric Andersen [Mon, 4 Sep 2000 15:16:51 +0000 (15:16 -0000)]
Forgot this part of wget

24 years agoInitial implementation of wget, from Chip Rosenthal <chip@laserlink.net>.
Eric Andersen [Mon, 4 Sep 2000 15:15:55 +0000 (15:15 -0000)]
Initial implementation of wget, from Chip Rosenthal <chip@laserlink.net>.
Very cool.  Still lacks "chunked" transfer-coding, so not totally RFC
compliant for HTTP1.1, but very nice nonethe less, and very small.
 -Erik

24 years agoAllow selective extraction and listing of files. And fix an unchecked
Matt Kraai [Mon, 4 Sep 2000 08:25:42 +0000 (08:25 -0000)]
Allow selective extraction and listing of files.  And fix an unchecked
return value of realloc (with xrealloc).

24 years agoAdd in byld
Eric Andersen [Fri, 1 Sep 2000 22:24:03 +0000 (22:24 -0000)]
Add in byld

24 years agoFix compile when BB_FEATURE_LINUXRC is defined
Eric Andersen [Fri, 1 Sep 2000 18:43:02 +0000 (18:43 -0000)]
Fix compile when BB_FEATURE_LINUXRC is defined
 -Erik

24 years agoFixed a stupid thinko preventing zcat from doing its job, thanks
Eric Andersen [Fri, 1 Sep 2000 16:25:33 +0000 (16:25 -0000)]
Fixed a stupid thinko preventing zcat from doing its job, thanks
to Torbj�rn Axelsson <torax@cendio.se> for the fix.
 -Erik

24 years agoTurned off ls file-sorting till it can be fixed.
Eric Andersen [Fri, 1 Sep 2000 16:15:51 +0000 (16:15 -0000)]
Turned off ls file-sorting till it can be fixed.

24 years agoupdated some usage info from a patch from robotti@metconnect.com
Eric Andersen [Fri, 1 Sep 2000 16:12:57 +0000 (16:12 -0000)]
updated some usage info from a patch from robotti@metconnect.com
 -Erik

24 years agoArgh. I *will* compile before checking in.
Matt Kraai [Fri, 1 Sep 2000 02:53:01 +0000 (02:53 -0000)]
Argh.  I *will* compile before checking in.

24 years agoDon't unlink files if we are extracting to stdout.
Matt Kraai [Fri, 1 Sep 2000 02:50:48 +0000 (02:50 -0000)]
Don't unlink files if we are extracting to stdout.

24 years agoCorrect the stdin/stdout behavior when no args are provided.
Eric Andersen [Fri, 1 Sep 2000 00:41:10 +0000 (00:41 -0000)]
Correct the stdin/stdout behavior when no args are provided.
 -Erik

24 years agoSigh. Seems I screwed up last time. This fixed detecting
Eric Andersen [Fri, 1 Sep 2000 00:33:06 +0000 (00:33 -0000)]
Sigh.  Seems I screwed up last time.  This fixed detecting
when on a console or not, and make default behavior compatible
with GNU gzip...
 -Erik

24 years agoAdd an extra sanity check in parse_mode
Eric Andersen [Fri, 1 Sep 2000 00:06:17 +0000 (00:06 -0000)]
Add an extra sanity check in parse_mode
 -Erik

24 years agoFix a spelling error
Eric Andersen [Thu, 31 Aug 2000 23:53:58 +0000 (23:53 -0000)]
Fix a spelling error
 -Erik

24 years agoFix spelling error
Eric Andersen [Thu, 31 Aug 2000 23:52:46 +0000 (23:52 -0000)]
Fix spelling error
 -Erik

24 years agoRewritten by mistake.
Matt Kraai [Mon, 28 Aug 2000 03:53:27 +0000 (03:53 -0000)]
Rewritten by mistake.

24 years agoRemoved dead regular expression code.
Matt Kraai [Mon, 28 Aug 2000 03:12:30 +0000 (03:12 -0000)]
Removed dead regular expression code.

24 years agoCompile xstrdup and xstrndup iff they are needed.
Matt Kraai [Sat, 26 Aug 2000 16:52:28 +0000 (16:52 -0000)]
Compile xstrdup and xstrndup iff they are needed.

24 years agoar.c now uses a linked list to process headers, uses getopt, new internal function...
Glenn L McGrath [Fri, 25 Aug 2000 03:50:10 +0000 (03:50 -0000)]
ar.c now uses a linked list to process headers, uses getopt, new internal function extractAr(srcFD, dstFd, filename) to make it easily accessable to other busybox functions.

moved copySubFile from ar.c to utilities.c

modified dd.c to use fullWrite

modified copyFile in utilities.c to use copySubFile

24 years agoFix tab stops for sed usage.
Eric Andersen [Fri, 25 Aug 2000 00:23:36 +0000 (00:23 -0000)]
Fix tab stops for sed usage.

24 years agoFixed a warning about a label not being used
Pavel Roskin [Tue, 22 Aug 2000 15:47:57 +0000 (15:47 -0000)]
Fixed a warning about a label not being used

24 years agoFixed misuse of type "char"
Pavel Roskin [Tue, 22 Aug 2000 15:38:16 +0000 (15:38 -0000)]
Fixed misuse of type "char"

24 years agoFrom Ken Chalmers <chalmers@norscan.com>:
Pavel Roskin [Tue, 22 Aug 2000 15:35:31 +0000 (15:35 -0000)]
From Ken Chalmers <chalmers@norscan.com>:
The current CVS mount.c is missing a semicolon, causing building to fail
if NFS is enabled (#define BB_NFSMOUNT).

24 years agoFix a unterminated string.
Eric Andersen [Tue, 22 Aug 2000 05:18:30 +0000 (05:18 -0000)]
Fix a unterminated string.
 -Erik

24 years agoNote the chmod fix.
Eric Andersen [Tue, 22 Aug 2000 01:02:05 +0000 (01:02 -0000)]
Note the chmod fix.
 -Erik

24 years agoFix an option parsing bug where things like
Eric Andersen [Tue, 22 Aug 2000 01:00:56 +0000 (01:00 -0000)]
Fix an option parsing bug where things like
    chmod -r /tmp/file
wholdn't work (since it thought -r was an option).  Doh!
 -Erik

24 years agoSome additional tips and formatting changes.
Mark Whitley [Tue, 22 Aug 2000 00:20:21 +0000 (00:20 -0000)]
Some additional tips and formatting changes.

24 years agoFix a silly bug so it compiles up properly
Eric Andersen [Mon, 21 Aug 2000 23:29:45 +0000 (23:29 -0000)]
Fix a silly bug so it compiles up properly
 -Erik

24 years agoOops. Forgot to commit rdate.c.
Eric Andersen [Mon, 21 Aug 2000 23:04:00 +0000 (23:04 -0000)]
Oops.  Forgot to commit rdate.c.
 -Erik

24 years agoScript to do regression test, by combining all possible options.
Eric Andersen [Mon, 21 Aug 2000 23:01:39 +0000 (23:01 -0000)]
Script to do regression test, by combining all possible options.
 -Erik

24 years agoScript to do regression test, by combining all possible options.
Eric Andersen [Mon, 21 Aug 2000 23:01:20 +0000 (23:01 -0000)]
Script to do regression test, by combining all possible options.
Run this to check for combinitorial type build errors.
 -Erik

24 years agoAdded the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.
Eric Andersen [Mon, 21 Aug 2000 22:46:33 +0000 (22:46 -0000)]
Added the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.
I added the docs, and made behavior identical to the GNU version.
 -Erik

24 years agoTurn off some debug noise.
Eric Andersen [Mon, 21 Aug 2000 22:34:23 +0000 (22:34 -0000)]
Turn off some debug noise.
 -Erik

24 years agoAdded getopt(1) from "Alfred M. Szmidt" <ams@trillian.itslinux.org>
Eric Andersen [Mon, 21 Aug 2000 22:02:34 +0000 (22:02 -0000)]
Added getopt(1) from "Alfred M. Szmidt" <ams@trillian.itslinux.org>
 -Erik

24 years agoRemoved since this patch is now in the current 2.4.x kernel
Eric Andersen [Mon, 21 Aug 2000 21:44:52 +0000 (21:44 -0000)]
Removed since this patch is now in the current 2.4.x kernel
tree.
 -Erik

24 years agoApplied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option in
Mark Whitley [Mon, 21 Aug 2000 21:29:20 +0000 (21:29 -0000)]
Applied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option in
substitution expressions.

24 years agoOops. Forgot to add in reset.c. Doh!
Eric Andersen [Mon, 21 Aug 2000 21:26:33 +0000 (21:26 -0000)]
Oops.  Forgot to add in reset.c.  Doh!
 -Erik

24 years agoFix a thinko, thanks to Klaasjan <klaasjan@europe.com>
Eric Andersen [Mon, 21 Aug 2000 21:23:48 +0000 (21:23 -0000)]
Fix a thinko, thanks to Klaasjan <klaasjan@europe.com>
 -Erik

24 years agoAdd in the "reset" command.
Eric Andersen [Mon, 21 Aug 2000 21:18:52 +0000 (21:18 -0000)]
Add in the "reset" command.
 -Erik

24 years agoYet another patch to fixup lsmod
Eric Andersen [Mon, 21 Aug 2000 19:40:42 +0000 (19:40 -0000)]
Yet another patch to fixup lsmod
 -Erik

24 years agoSome leftover stuff I forgot to commit for the lsmod change.
Eric Andersen [Mon, 21 Aug 2000 19:38:49 +0000 (19:38 -0000)]
Some leftover stuff I forgot to commit for the lsmod change.
 -Erik

24 years agolsmod now uses the query_module syscall, rather then /proc
Eric Andersen [Mon, 21 Aug 2000 19:25:16 +0000 (19:25 -0000)]
lsmod now uses the query_module syscall, rather then /proc
 -Erik

24 years agosyslogd was leaking processes that could forever busyloop. Fixed.
Eric Andersen [Sun, 20 Aug 2000 06:11:32 +0000 (06:11 -0000)]
syslogd was leaking processes that could forever busyloop.  Fixed.
 -Erik

24 years agoMinor fixups.
Eric Andersen [Sat, 19 Aug 2000 20:16:16 +0000 (20:16 -0000)]
Minor fixups.
 -Erik

24 years agoBetter 'mt' docs, thanks to Kent Robotti <robotti@metconnect.com>
Eric Andersen [Fri, 11 Aug 2000 20:14:11 +0000 (20:14 -0000)]
Better 'mt' docs, thanks to Kent Robotti <robotti@metconnect.com>
 -Erik

24 years agoFix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>
Eric Andersen [Fri, 11 Aug 2000 20:11:35 +0000 (20:11 -0000)]
Fix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>
 -Erik

24 years agoMinor link update
Eric Andersen [Fri, 11 Aug 2000 18:13:21 +0000 (18:13 -0000)]
Minor link update
 -Erik

24 years agoAdd optional ls file sorting, thanks to a patch from
Eric Andersen [Fri, 11 Aug 2000 18:10:21 +0000 (18:10 -0000)]
Add optional ls file sorting, thanks to a patch from
Sterling Huxley <sterling@europa.com>
 -Erik

24 years agoAdded fix from David Vrabel <dvrabel@arcom.co.uk> for a
Eric Andersen [Fri, 11 Aug 2000 17:45:02 +0000 (17:45 -0000)]
Added fix from David Vrabel <dvrabel@arcom.co.uk> for a
buffer overrun in find_real_root_device(), fixing bug #1019
 -Erik

24 years agoSome #include updates.
Eric Andersen [Thu, 10 Aug 2000 17:59:11 +0000 (17:59 -0000)]
Some #include updates.
 -Erik

24 years agoApplied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where
Mark Whitley [Thu, 10 Aug 2000 00:09:47 +0000 (00:09 -0000)]
Applied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where
sed was only printing the first line and then exiting.

24 years agoWe complained if the total number of arguments was greater than 3 and
Matt Kraai [Sun, 6 Aug 2000 15:36:50 +0000 (15:36 -0000)]
We complained if the total number of arguments was greater than 3 and
the destination wasn't a directory.  We should only complain if the
there are multiple sources and target isn't a directory.

24 years agoExit with the appropriate value when grepping multiple files.
Matt Kraai [Sun, 6 Aug 2000 15:25:53 +0000 (15:25 -0000)]
Exit with the appropriate value when grepping multiple files.

24 years agoCleaner way to handle -NUM and +NUM, reduces the mem usage as well.
Eric Andersen [Wed, 2 Aug 2000 19:57:18 +0000 (19:57 -0000)]
Cleaner way to handle -NUM and +NUM, reduces the mem usage as well.
 -Erik

24 years agoFixed the "-f" option.
Eric Andersen [Wed, 2 Aug 2000 18:56:25 +0000 (18:56 -0000)]
Fixed the "-f" option.
 -Erik

24 years agoMerge in two patches from Dave Cinege:
Eric Andersen [Wed, 2 Aug 2000 18:48:26 +0000 (18:48 -0000)]
Merge in two patches from Dave Cinege:
    the first is a cleanup of tar --exclude
    the second changes mount so mtab works more as it should, and
    also allows mount to use the traditional short form (i.e.
    'mount / -o remount,rw' now works.

While inside tar, I changed it to use getopt...
 -Erik

24 years agoMinor cleanup thingy. fprintf(stderr, ...) -> errorMsg().
Mark Whitley [Wed, 2 Aug 2000 18:34:41 +0000 (18:34 -0000)]
Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg().

24 years agoBrand, new version of cut. This fixes the bugs in the old cut, is smaller, and
Mark Whitley [Wed, 2 Aug 2000 18:30:11 +0000 (18:30 -0000)]
Brand, new version of cut. This fixes the bugs in the old cut, is smaller, and
is a sight easier to understand than the Minix cut.

24 years agoUpdate to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>
Eric Andersen [Wed, 2 Aug 2000 16:42:58 +0000 (16:42 -0000)]
Update to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>
 -Erik

24 years agoMinor fix to clean target
Eric Andersen [Tue, 1 Aug 2000 22:44:32 +0000 (22:44 -0000)]
Minor fix to clean target
 -Erik

24 years agoFix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
Matt Kraai [Tue, 1 Aug 2000 18:16:56 +0000 (18:16 -0000)]
Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
exist.  Also allow early search termination (per the comments).

24 years agoCommit the rewrite of tail by Allen Soard
Eric Andersen [Mon, 31 Jul 2000 17:05:58 +0000 (17:05 -0000)]
Commit the rewrite of tail by Allen Soard
<esp-software@mail.hypermart.net>.  Thanks Allen for
you work at getting this into shape,
 -Erik

24 years agoNew variable WARNINGS to hold all warning options
Pavel Roskin [Fri, 28 Jul 2000 19:41:32 +0000 (19:41 -0000)]
New variable WARNINGS to hold all warning options

24 years agoFixed to pass -Wundef
Pavel Roskin [Fri, 28 Jul 2000 19:38:27 +0000 (19:38 -0000)]
Fixed to pass -Wundef

24 years agoDisabled debugging output
Pavel Roskin [Fri, 28 Jul 2000 19:34:02 +0000 (19:34 -0000)]
Disabled debugging output
Fine-grained checks for possible errors instead of "set -e"
The standard output shows what is being linked to what

24 years agoFix for a potential uninitialized variable, thx to
Eric Andersen [Fri, 28 Jul 2000 19:05:20 +0000 (19:05 -0000)]
Fix for a potential uninitialized variable, thx to
Ken Chalmers <chalmers@norscan.com>
 -Erik

24 years agoClean up the nasty blunder I'd made of how different behaviors happen.
Eric Andersen [Fri, 28 Jul 2000 17:08:36 +0000 (17:08 -0000)]
Clean up the nasty blunder I'd made of how different behaviors happen.
 -Erik

24 years agoSome cleanups, based on a patch from Ken Chalmers
Eric Andersen [Fri, 28 Jul 2000 16:22:51 +0000 (16:22 -0000)]
Some cleanups, based on a patch from Ken Chalmers
 -Erik

24 years agoFix from Robert Kaiser for stdin behavior.
Eric Andersen [Fri, 28 Jul 2000 15:20:24 +0000 (15:20 -0000)]
Fix from Robert Kaiser for stdin behavior.
 -Erik

24 years agoOops. Forgot an ifdef
Eric Andersen [Fri, 28 Jul 2000 15:19:30 +0000 (15:19 -0000)]
Oops.  Forgot an ifdef
 -Erik

24 years agoFix from Arne Bernin for return code -- now reflects whether the rmmod
Eric Andersen [Fri, 28 Jul 2000 15:16:37 +0000 (15:16 -0000)]
Fix from Arne Bernin for return code -- now reflects whether the rmmod
failed or not.
 -Erik

24 years agoMore sh updates (with related changes to everything else). Switched
Eric Andersen [Fri, 28 Jul 2000 15:14:45 +0000 (15:14 -0000)]
More sh updates (with related changes to everything else).  Switched
to using getopt and cleaned up the resulting mess.  if-then-else-fi
is now basically working (given a bunch of constraints).
 -Erik

24 years agoMore shell features.... if-then-else-fi is now basically usable (disable
Eric Andersen [Thu, 27 Jul 2000 00:15:20 +0000 (00:15 -0000)]
More shell features.... if-then-else-fi is now basically usable (disable
by default pending further debugging).  Added in some basic shell environment
support (i.e. $?, $0-$9, $$, $!, $#).
 -Erik

24 years agoFixed a syntax error & superfluous param decl that was causing the build to
Mark Whitley [Wed, 26 Jul 2000 18:09:22 +0000 (18:09 -0000)]
Fixed a syntax error & superfluous param decl that was causing the build to
fail.

24 years agoMinor style cleanups.
Eric Andersen [Wed, 26 Jul 2000 00:53:56 +0000 (00:53 -0000)]
Minor style cleanups.

24 years agoBetter description
Eric Andersen [Wed, 26 Jul 2000 00:53:34 +0000 (00:53 -0000)]
Better description

24 years agoFix some bitrot.
Eric Andersen [Wed, 26 Jul 2000 00:52:04 +0000 (00:52 -0000)]
Fix some bitrot.
 -Erik

24 years agoModified print_subst_w_backrefs() so it will print backslash escaped
Mark Whitley [Tue, 25 Jul 2000 20:48:44 +0000 (20:48 -0000)]
Modified print_subst_w_backrefs() so it will print backslash escaped
characters properly, just like GNU sed.

24 years agoAdded a note in the "Tips and Pointer" section on the correct way to test for
Mark Whitley [Tue, 25 Jul 2000 20:30:00 +0000 (20:30 -0000)]
Added a note in the "Tips and Pointer" section on the correct way to test for
string equivalence with strcmp().

24 years agoFinish off fixing up the memleaks (I think). Added the beginnings of
Eric Andersen [Tue, 25 Jul 2000 18:06:52 +0000 (18:06 -0000)]
Finish off fixing up the memleaks (I think).  Added the beginnings of
some if-then-else-fi support (nonfunctional and turned off)
 -Erik

24 years agoUse BB_FEATURE_CLEAN_UP where appropriate
Eric Andersen [Tue, 25 Jul 2000 18:01:20 +0000 (18:01 -0000)]
Use BB_FEATURE_CLEAN_UP where appropriate
 -Erik

24 years agoAdd in BB_FEATURE_CLEAN_UP, which is whether to clean up mem leaks and close
Eric Andersen [Tue, 25 Jul 2000 17:59:37 +0000 (17:59 -0000)]
Add in BB_FEATURE_CLEAN_UP, which is whether to clean up mem leaks and close
files, or not.  Usually safe to leave it off and let the OS clean up...
 -Erik

24 years agoRemove some noise.
Eric Andersen [Tue, 25 Jul 2000 17:58:01 +0000 (17:58 -0000)]
Remove some noise.
 -Erik

24 years agoClean up $1=$prefix
Eric Andersen [Tue, 25 Jul 2000 16:47:03 +0000 (16:47 -0000)]
Clean up $1=$prefix
 -Erik

24 years agoFirst revision of the Busybox Style Guide and an accompanying .indent.pro
Mark Whitley [Mon, 24 Jul 2000 22:36:06 +0000 (22:36 -0000)]
First revision of the Busybox Style Guide and an accompanying .indent.pro
file.

24 years agochroot can now call the builtin shell
Pavel Roskin [Mon, 24 Jul 2000 20:15:30 +0000 (20:15 -0000)]
chroot can now call the builtin shell

24 years agoFixed stdin/stdout paths so things like
Eric Andersen [Fri, 21 Jul 2000 22:17:39 +0000 (22:17 -0000)]
Fixed stdin/stdout paths so things like
    tar cvf - /etc/* | gzip -c9 >test.tgz
will now work.  Fix thanks to Dave Cinege <dcinege@psychosis.com>
with some adjustments by me to be mroe GNU-like.
 -Erik

24 years agoAdded 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
Eric Andersen [Fri, 21 Jul 2000 21:32:12 +0000 (21:32 -0000)]
Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
 -Erik

24 years agoBump version number.
Eric Andersen [Fri, 21 Jul 2000 21:27:11 +0000 (21:27 -0000)]
Bump version number.
 -Erik

24 years agoAdd in the LinuxMagic VPN Firewall
Eric Andersen [Fri, 21 Jul 2000 17:22:19 +0000 (17:22 -0000)]
Add in the LinuxMagic VPN Firewall
 -Erik