people/mcb30/busybox.git
21 years agoDon't suppress output of umount and swapoff - it is both unwise
proski [Fri, 15 Sep 2000 01:34:17 +0000 (01:34 +0000)]
Don't suppress output of umount and swapoff - it is both unwise
and incompatible with lash that doesn't support >&1 yet.

git-svn-id: svn://busybox.net/trunk/busybox@1056 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoDon't suppress output of umount and swapoff - it is both unwise
proski [Fri, 15 Sep 2000 01:02:50 +0000 (01:02 +0000)]
Don't suppress output of umount and swapoff - it is both unwise
and incompatible with lash that doesn't support >&1 yet.

git-svn-id: svn://busybox.net/trunk/busybox@1055 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years ago"exit NUMBER" should exit, not return
proski [Fri, 15 Sep 2000 00:46:51 +0000 (00:46 +0000)]
"exit NUMBER" should exit, not return

git-svn-id: svn://busybox.net/trunk/busybox@1054 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFor "askfirst" don't just read one char from stdin,
proski [Thu, 14 Sep 2000 22:47:29 +0000 (22:47 +0000)]
For "askfirst" don't just read one char from stdin,
read the whole line using getc(), so that everything before Enter
gets discarded.

git-svn-id: svn://busybox.net/trunk/busybox@1053 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAdd in a patch from robotti@metconnect.com and Chip Rosenthal to make
andersen [Thu, 14 Sep 2000 22:01:31 +0000 (22:01 +0000)]
Add in a patch from robotti@metconnect.com and Chip Rosenthal to make
init do login shell stuff.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1052 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoNote the syslogd bug fix
andersen [Thu, 14 Sep 2000 21:56:18 +0000 (21:56 +0000)]
Note the syslogd bug fix

git-svn-id: svn://busybox.net/trunk/busybox@1051 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoBug fix for wget, and proper attribution of Chip Rosenthal and
andersen [Thu, 14 Sep 2000 21:46:30 +0000 (21:46 +0000)]
Bug fix for wget, and proper attribution of Chip Rosenthal and
Covad Communications for the contribution of wget.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1050 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix the halt/reboot/poweroff segfault when used from within an initrd...
andersen [Thu, 14 Sep 2000 21:12:20 +0000 (21:12 +0000)]
Fix the halt/reboot/poweroff segfault when used from within an initrd...
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1049 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoBackslashes shouldn't be treated as backticks.
kraai [Thu, 14 Sep 2000 00:43:20 +0000 (00:43 +0000)]
Backslashes shouldn't be treated as backticks.

git-svn-id: svn://busybox.net/trunk/busybox@1048 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoCopy the string terminator.
kraai [Thu, 14 Sep 2000 00:26:50 +0000 (00:26 +0000)]
Copy the string terminator.

git-svn-id: svn://busybox.net/trunk/busybox@1047 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix looping bug, use fullRead
bug1 [Wed, 13 Sep 2000 23:08:07 +0000 (23:08 +0000)]
Fix looping bug, use fullRead

git-svn-id: svn://busybox.net/trunk/busybox@1046 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAdd in BasicLinux by request
andersen [Wed, 13 Sep 2000 23:06:41 +0000 (23:06 +0000)]
Add in BasicLinux by request

git-svn-id: svn://busybox.net/trunk/busybox@1045 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAdded _install
proski [Wed, 13 Sep 2000 16:52:32 +0000 (16:52 +0000)]
Added _install

git-svn-id: svn://busybox.net/trunk/busybox@1044 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoEnsure forked processes always are on a controlling tty, so the
andersen [Wed, 13 Sep 2000 16:15:29 +0000 (16:15 +0000)]
Ensure forked processes always are on a controlling tty, so the
^C can be properly sent to /dev/console.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1043 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoMake syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC.
proski [Wed, 13 Sep 2000 14:14:29 +0000 (14:14 +0000)]
Make syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC.
Also ignore SIGCHLD - it must have been meant.

git-svn-id: svn://busybox.net/trunk/busybox@1042 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoList of signals updated from util-linux-2.10o
proski [Wed, 13 Sep 2000 14:03:48 +0000 (14:03 +0000)]
List of signals updated from util-linux-2.10o
Architecture names are no longer used - should now compile on SPARC

git-svn-id: svn://busybox.net/trunk/busybox@1041 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoDon't fork for the . (source) command so that environment settings are
kraai [Wed, 13 Sep 2000 03:43:36 +0000 (03:43 +0000)]
Don't fork for the . (source) command so that environment settings are
preserved.

git-svn-id: svn://busybox.net/trunk/busybox@1040 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
kraai [Wed, 13 Sep 2000 02:46:14 +0000 (02:46 +0000)]
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
segfaulting or handling errors the same way themselves.

git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix unchecked calls to {m,c,re}alloc so that they print an error and
kraai [Wed, 13 Sep 2000 02:08:21 +0000 (02:08 +0000)]
Fix unchecked calls to {m,c,re}alloc so that they print an error and
exit rather than segfaulting (what an improvement).

git-svn-id: svn://busybox.net/trunk/busybox@1038 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoTypo fix: resolv -> resolve
proski [Tue, 12 Sep 2000 22:05:17 +0000 (22:05 +0000)]
Typo fix: resolv -> resolve

git-svn-id: svn://busybox.net/trunk/busybox@1037 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFormatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.
andersen [Tue, 12 Sep 2000 16:20:49 +0000 (16:20 +0000)]
Formatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1036 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix .deb unpack and experimental TAR support
bug1 [Mon, 11 Sep 2000 05:25:39 +0000 (05:25 +0000)]
Fix .deb unpack and experimental TAR support

The previous ar.c fialed to recognise one record in .debs

Experimental tar support, this is currently *very* cheap because ar and
tar are functionally similar. It  will need lots of testing so by
default tar support code is defined out.
To test uncomment the line "#define BB_AR_EXPERIMENTAL_UNTAR"

git-svn-id: svn://busybox.net/trunk/busybox@1034 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoExtra defines for ar
bug1 [Mon, 11 Sep 2000 05:06:13 +0000 (05:06 +0000)]
Extra defines for ar

git-svn-id: svn://busybox.net/trunk/busybox@1033 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoSimplify a few little things, and merge in a patch from
andersen [Mon, 11 Sep 2000 04:55:31 +0000 (04:55 +0000)]
Simplify a few little things, and merge in a patch from
robotti@metconnect.com so that 'ar -xv' and 'ar -x -v'
both work.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1032 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoNew dd behaviour
bug1 [Mon, 11 Sep 2000 00:33:09 +0000 (00:33 +0000)]
New dd behaviour

git-svn-id: svn://busybox.net/trunk/busybox@1031 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agodd now truncates files at the end its write, this can be turned of by
bug1 [Mon, 11 Sep 2000 00:32:13 +0000 (00:32 +0000)]
dd now truncates files at the end its write, this can be turned of by
specifying conv=notrunc in the command line

This conforms to GNU dd behaviour

git-svn-id: svn://busybox.net/trunk/busybox@1030 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoMAke lsmod act just like modutils lsmod, by printing which modules use
andersen [Sun, 10 Sep 2000 16:16:00 +0000 (16:16 +0000)]
MAke lsmod act just like modutils lsmod, by printing which modules use
other modules, and state info like (deleted) and such.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1029 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoMake init handle current 2.4.x sysinfo behavior
andersen [Sun, 10 Sep 2000 16:13:41 +0000 (16:13 +0000)]
Make init handle current 2.4.x sysinfo behavior
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1028 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoUpdate free for current 2.4.x behavior...
andersen [Sun, 10 Sep 2000 16:10:41 +0000 (16:10 +0000)]
Update free for current 2.4.x behavior...
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1027 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoRemove some debugging code
bug1 [Sun, 10 Sep 2000 04:42:20 +0000 (04:42 +0000)]
Remove some debugging code

git-svn-id: svn://busybox.net/trunk/busybox@1026 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoUsing seek=? used to cause part of the original file to be zero'ed, i
bug1 [Sun, 10 Sep 2000 04:39:37 +0000 (04:39 +0000)]
Using seek=? used to cause part of the original file to be zero'ed, i
think this was caused by opening the file in truncate mode.

git-svn-id: svn://busybox.net/trunk/busybox@1025 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoMy previous attempt to make dd use fullRead, fullWrite was very broken,
bug1 [Sun, 10 Sep 2000 01:54:27 +0000 (01:54 +0000)]
My previous attempt to make dd use fullRead, fullWrite was very broken,
this should actually work.

git-svn-id: svn://busybox.net/trunk/busybox@1024 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoremove some printf statements i forgot about
bug1 [Sat, 9 Sep 2000 15:04:34 +0000 (15:04 +0000)]
remove some printf statements i forgot about

git-svn-id: svn://busybox.net/trunk/busybox@1023 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoUpdated to match new -R ar functionality
bug1 [Sat, 9 Sep 2000 14:57:15 +0000 (14:57 +0000)]
Updated to match new -R ar functionality

git-svn-id: svn://busybox.net/trunk/busybox@1022 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoImplemented new ar functionality unique to busybox ar (i think), the -R
bug1 [Sat, 9 Sep 2000 14:50:04 +0000 (14:50 +0000)]
Implemented new ar functionality unique to busybox ar (i think), the -R
option enable a Recursive extraction (or listing) to take place.

i.e. if any files being extracted are themselves ar archives then
busybox ar will extract their contents as well.

e.g. take bar.deb and do (with GNU ar) ar -q foo.deb b.ar
then with busybox ar can do ar -x b.ar data.tar.gz

-R isnt used for anything in GNU ar so i think it should be ok, could
have used long options

This functionality will become (more) usufull with tar, gz support.

git-svn-id: svn://busybox.net/trunk/busybox@1021 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoChanged getopt so that options can be grouped together, the source
bug1 [Sat, 9 Sep 2000 13:38:26 +0000 (13:38 +0000)]
Changed getopt so that options can be grouped together, the source
archive is now assumed to be the first non parameter.

This is how GNU ar behaves.

git-svn-id: svn://busybox.net/trunk/busybox@1020 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix permisions
bug1 [Sat, 9 Sep 2000 12:48:40 +0000 (12:48 +0000)]
Fix permisions

git-svn-id: svn://busybox.net/trunk/busybox@1019 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoNow supports GNU style long filenames.
bug1 [Sat, 9 Sep 2000 08:35:45 +0000 (08:35 +0000)]
Now supports GNU style long filenames.

If no filenames are specifed to be (extracted/listed) it will act on
all files in the archive (i dont think the old version did this)

Code is structured to better support upcoming recursive extraction
functionality.

The old code was a bit strange in places, dont know what i was thinking.

git-svn-id: svn://busybox.net/trunk/busybox@1018 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoNew ls sorting patch, as written by Sterling Huxley, and then updated
andersen [Thu, 7 Sep 2000 17:24:47 +0000 (17:24 +0000)]
New ls sorting patch, as written by Sterling Huxley, and then updated
by kent robotti.  I then updated it to use my_getpwuid and my_getgrgid
(per busybox policy).
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1017 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoStop leaking file handles.
kraai [Thu, 7 Sep 2000 04:34:17 +0000 (04:34 +0000)]
Stop leaking file handles.

git-svn-id: svn://busybox.net/trunk/busybox@1016 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix more typos.
kraai [Wed, 6 Sep 2000 03:59:49 +0000 (03:59 +0000)]
Fix more typos.

git-svn-id: svn://busybox.net/trunk/busybox@1015 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoReset optind so that getopt works in busybox applets called directly by sh.
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.

git-svn-id: svn://busybox.net/trunk/busybox@1014 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFixed a grammatical error.
kraai [Wed, 6 Sep 2000 00:50:51 +0000 (00:50 +0000)]
Fixed a grammatical error.

git-svn-id: svn://busybox.net/trunk/busybox@1013 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFixed for when BB_CP_MV is enabled.
andersen [Tue, 5 Sep 2000 22:17:22 +0000 (22:17 +0000)]
Fixed for when BB_CP_MV is enabled.

git-svn-id: svn://busybox.net/trunk/busybox@1012 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAdd BB_SH to get_last_path_component()... Fix thanks to
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.

git-svn-id: svn://busybox.net/trunk/busybox@1011 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@1010 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoSet environment variable to make ash happy. ash is a frequent enough
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....

git-svn-id: svn://busybox.net/trunk/busybox@1009 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAdded expr, from Edward Betts <edward@debian.org>, with some fixups
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

git-svn-id: svn://busybox.net/trunk/busybox@1008 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAllow compilation when not using BB_FEATURE_TAR_EXCLUDE, and fix
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.

git-svn-id: svn://busybox.net/trunk/busybox@1007 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoForgot this part of wget
andersen [Mon, 4 Sep 2000 15:16:51 +0000 (15:16 +0000)]
Forgot this part of wget

git-svn-id: svn://busybox.net/trunk/busybox@1006 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoInitial implementation of wget, from Chip Rosenthal <chip@laserlink.net>.
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

git-svn-id: svn://busybox.net/trunk/busybox@1005 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAllow selective extraction and listing of files. And fix an unchecked
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).

git-svn-id: svn://busybox.net/trunk/busybox@1004 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@1003 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@1000 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFixed a stupid thinko preventing zcat from doing its job, thanks
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

git-svn-id: svn://busybox.net/trunk/busybox@996 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@995 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@994 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@993 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@992 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@991 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoSigh. Seems I screwed up last time. This fixed detecting
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

git-svn-id: svn://busybox.net/trunk/busybox@990 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@989 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@988 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@987 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoRewritten by mistake.
kraai [Mon, 28 Aug 2000 03:53:27 +0000 (03:53 +0000)]
Rewritten by mistake.

git-svn-id: svn://busybox.net/trunk/busybox@986 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoRemoved dead regular expression code.
kraai [Mon, 28 Aug 2000 03:12:30 +0000 (03:12 +0000)]
Removed dead regular expression code.

git-svn-id: svn://busybox.net/trunk/busybox@985 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@984 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoar.c now uses a linked list to process headers, uses getopt, new internal function...
bug1 [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

git-svn-id: svn://busybox.net/trunk/busybox@983 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@982 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@981 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFixed misuse of type "char"
proski [Tue, 22 Aug 2000 15:38:16 +0000 (15:38 +0000)]
Fixed misuse of type "char"

git-svn-id: svn://busybox.net/trunk/busybox@980 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFrom Ken Chalmers <chalmers@norscan.com>:
proski [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).

git-svn-id: svn://busybox.net/trunk/busybox@979 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@978 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@977 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoFix an option parsing bug where things like
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

git-svn-id: svn://busybox.net/trunk/busybox@976 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@975 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@974 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@973 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@972 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoScript to do regression test, by combining all possible options.
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

git-svn-id: svn://busybox.net/trunk/busybox@971 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoAdded the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.
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

git-svn-id: svn://busybox.net/trunk/busybox@970 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@969 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@967 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoRemoved since this patch is now in the current 2.4.x kernel
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

git-svn-id: svn://busybox.net/trunk/busybox@966 69ca8d6d-28ef-0310-b511-8ec308f3f277

21 years agoApplied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option in
markw [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.

git-svn-id: svn://busybox.net/trunk/busybox@965 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@964 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@963 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@962 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@961 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@960 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@959 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@958 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@957 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@956 69ca8d6d-28ef-0310-b511-8ec308f3f277

22 years agoFix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>
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

git-svn-id: svn://busybox.net/trunk/busybox@955 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@954 69ca8d6d-28ef-0310-b511-8ec308f3f277

22 years agoAdd optional ls file sorting, thanks to a patch from
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

git-svn-id: svn://busybox.net/trunk/busybox@953 69ca8d6d-28ef-0310-b511-8ec308f3f277

22 years agoAdded fix from David Vrabel <dvrabel@arcom.co.uk> for a
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

git-svn-id: svn://busybox.net/trunk/busybox@951 69ca8d6d-28ef-0310-b511-8ec308f3f277

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

git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277

22 years agoApplied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where
markw [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.

git-svn-id: svn://busybox.net/trunk/busybox@945 69ca8d6d-28ef-0310-b511-8ec308f3f277