oweals/busybox.git
23 years agoApplied patch from Vladimir to fix bug where find would stop as soon as it hit
Mark Whitley [Thu, 8 Mar 2001 16:54:44 +0000 (16:54 -0000)]
Applied patch from Vladimir to fix bug where find would stop as soon as it hit
a perms error. Closes bug 1124.

23 years agoEliminate superfluous test.
Matt Kraai [Wed, 7 Mar 2001 21:45:13 +0000 (21:45 -0000)]
Eliminate superfluous test.

23 years agoChanged KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
Mark Whitley [Wed, 7 Mar 2001 18:00:44 +0000 (18:00 -0000)]
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.

23 years agoSome minor cleanups to df.c. Also, with Erik's blessing, changed name of
Mark Whitley [Wed, 7 Mar 2001 17:42:07 +0000 (17:42 -0000)]
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of
'format' function to 'make_human_readable_str'.

23 years agoApplied patch from Christophe Boyaniqu to remove double-slashes printed in
Mark Whitley [Wed, 7 Mar 2001 17:27:04 +0000 (17:27 -0000)]
Applied patch from Christophe Boyaniqu to remove double-slashes printed in
recursive_action.

23 years agoThis patch by Vladimir and Larry saves a few bytes.
Eric Andersen [Wed, 7 Mar 2001 06:33:01 +0000 (06:33 -0000)]
This patch by Vladimir and Larry saves a few bytes.

23 years agoStatic-ify a variable. make du work with all the human-readable variants
Eric Andersen [Wed, 7 Mar 2001 06:04:08 +0000 (06:04 -0000)]
Static-ify a variable.  make du work with all the human-readable variants
since my last pass only fixed 'du -h' but left the others broken.

23 years agoFix up du so it behaves itself also.
Eric Andersen [Wed, 7 Mar 2001 03:53:40 +0000 (03:53 -0000)]
Fix up du so it behaves itself also.
 -Erik

23 years agoremove an unused variable
Eric Andersen [Wed, 7 Mar 2001 03:51:27 +0000 (03:51 -0000)]
remove an unused variable

23 years agoRewrite of format so it behaves itself
Eric Andersen [Wed, 7 Mar 2001 03:50:57 +0000 (03:50 -0000)]
Rewrite of format so it behaves itself
 -Erik

23 years agoFix up df so it works properly
Eric Andersen [Wed, 7 Mar 2001 03:50:03 +0000 (03:50 -0000)]
Fix up df so it works properly
 -Erik

23 years agoFix up ls.c to ensure human readable works properly in all cases
Eric Andersen [Wed, 7 Mar 2001 03:48:02 +0000 (03:48 -0000)]
Fix up ls.c to ensure human readable works properly in all cases

23 years agoThought of another janitorial item for the list.
Mark Whitley [Tue, 6 Mar 2001 23:16:13 +0000 (23:16 -0000)]
Thought of another janitorial item for the list.

23 years agoI made these little simplifications a while back, bug forgot to
Eric Andersen [Tue, 6 Mar 2001 23:14:43 +0000 (23:14 -0000)]
I made these little simplifications a while back, bug forgot to
check this stuff in.
 -Erik

23 years agoFix the memory leak. No really this time.
Eric Andersen [Tue, 6 Mar 2001 22:17:29 +0000 (22:17 -0000)]
Fix the memory leak.  No really this time.
 -Erik

23 years agoApplied patch from Vladimir Oleynik via Magnus Damm that removes newlines from
Mark Whitley [Tue, 6 Mar 2001 20:58:48 +0000 (20:58 -0000)]
Applied patch from Vladimir Oleynik via Magnus Damm that removes newlines from
error_msg() calls and uses 'return EXIT_SUCCESS' instead of return 0.

23 years agoFix up some silly macros and use xmalloc and friends exclusively.
Eric Andersen [Tue, 6 Mar 2001 20:54:43 +0000 (20:54 -0000)]
Fix up some silly macros and use xmalloc and friends exclusively.

23 years agoFix func prototype
Eric Andersen [Tue, 6 Mar 2001 20:47:31 +0000 (20:47 -0000)]
Fix func prototype

23 years agoFixed a memory leak in lash. It seems that close_all was calling close()
Eric Andersen [Tue, 6 Mar 2001 20:44:39 +0000 (20:44 -0000)]
Fixed a memory leak in lash.  It seems that close_all was calling close()
directly instead of calling mark_closed(), which allowed the memory allocated
by mark_open() to never be freed.
 -Erik

23 years agoClose open files before calling builtin_exec(). I've tested this
Eric Andersen [Tue, 6 Mar 2001 20:28:22 +0000 (20:28 -0000)]
Close open files before calling builtin_exec().  I've tested this
and it fixes bug #1121.
 -Erik

23 years agoBug 1110 reported that the LOOP_GET_STATUS ioctl apparently returnes non-zero
Eric Andersen [Tue, 6 Mar 2001 19:35:58 +0000 (19:35 -0000)]
Bug 1110 reported that the LOOP_GET_STATUS ioctl apparently returnes non-zero
error messages, contrary to the documentation.  Whatever.  This patch from
zhaoway <zw@debian.org> looks safe enough.
 -Erik

23 years agominor cleanup
John Beppu [Tue, 6 Mar 2001 19:25:25 +0000 (19:25 -0000)]
minor cleanup

23 years agoFirst pass at trying to retrofit a changelog for 0.50. Please everyone
Eric Andersen [Tue, 6 Mar 2001 18:46:10 +0000 (18:46 -0000)]
First pass at trying to retrofit a changelog for 0.50.  Please everyone
look over this and if I forgot something, misattributed your work, or
spelled something badly, please let me know.
 -Erik

23 years agoAdd in a first pass at ifconfig status reporting. It took a long while
Eric Andersen [Tue, 6 Mar 2001 00:48:59 +0000 (00:48 -0000)]
Add in a first pass at ifconfig status reporting.  It took a long while
hacking on the mess in net-tools-1.59, but it currently adds 12k and
supports ethernet, loop, ppp, and treats everything else as a generic
interface.  Works ok for me.
 -Erik

23 years agoFix up the freshmeat appindex record.
Eric Andersen [Mon, 5 Mar 2001 18:26:50 +0000 (18:26 -0000)]
Fix up the freshmeat appindex record.

23 years agoMake sure libpwd.a is linked _last_ so it overrides the system pwd/grp
Eric Andersen [Mon, 5 Mar 2001 17:57:34 +0000 (17:57 -0000)]
Make sure libpwd.a is linked _last_ so it overrides the system pwd/grp
implementation.  It wasn't doing that as expected...

23 years agoTry to do a little better at documenting how to use
Eric Andersen [Mon, 5 Mar 2001 17:08:52 +0000 (17:08 -0000)]
Try to do a little better at documenting how to use
alternate C libraries, thanks to David Douthitt.

23 years agoadd wget, tr, telnet, ping, md5sum and loadkmap to .deb
David Kimdon [Mon, 5 Mar 2001 08:43:26 +0000 (08:43 -0000)]
add wget, tr, telnet, ping, md5sum and loadkmap to .deb

23 years agoEnable INSTALLER for the deb
Eric Andersen [Mon, 5 Mar 2001 04:00:06 +0000 (04:00 -0000)]
Enable INSTALLER for the deb

23 years agoPatch from Vladimir to make sure PATH is set correctly.
Eric Andersen [Sun, 4 Mar 2001 06:47:33 +0000 (06:47 -0000)]
Patch from Vladimir to make sure PATH is set correctly.

23 years agoIf umount2 is not available, stub it out.
Eric Andersen [Sun, 4 Mar 2001 06:07:34 +0000 (06:07 -0000)]
If umount2 is not available, stub it out.

23 years agoAdded some words on use of getopt in applets.
Mark Whitley [Sat, 3 Mar 2001 00:44:55 +0000 (00:44 -0000)]
Added some words on use of getopt in applets.

23 years agoDont try to automount some specific filesystem types
Glenn L McGrath [Fri, 2 Mar 2001 22:21:34 +0000 (22:21 -0000)]
Dont try to automount some specific filesystem types

23 years agoApplied patch from Vladimir N. Oleynik that fixes incorrect behaviour in
Mark Whitley [Fri, 2 Mar 2001 20:00:54 +0000 (20:00 -0000)]
Applied patch from Vladimir N. Oleynik that fixes incorrect behaviour in
recovery_mode and changed option processing.

23 years agoRemoved section on testing that is now in contributing.txt.
Mark Whitley [Fri, 2 Mar 2001 19:15:01 +0000 (19:15 -0000)]
Removed section on testing that is now in contributing.txt.

23 years agoAdded 'How to contribute to Busybox' doc.
Mark Whitley [Fri, 2 Mar 2001 19:14:25 +0000 (19:14 -0000)]
Added 'How to contribute to Busybox' doc.

23 years agoWhoops! BB_TFTP should prolly be off by default.
Mark Whitley [Fri, 2 Mar 2001 19:11:26 +0000 (19:11 -0000)]
Whoops! BB_TFTP should prolly be off by default.

23 years agoAdded Magnus Damm's tftp applet to Busybox.
Mark Whitley [Fri, 2 Mar 2001 19:08:50 +0000 (19:08 -0000)]
Added Magnus Damm's tftp applet to Busybox.

23 years agoChanged exit code from -1 to 0 when busybox is invoked with no args.
Mark Whitley [Fri, 2 Mar 2001 17:47:17 +0000 (17:47 -0000)]
Changed exit code from -1 to 0 when busybox is invoked with no args.
(Closes bug #1114.)

23 years agoApplied patch from David Douthitt to fix build error in df.c when
Mark Whitley [Thu, 1 Mar 2001 18:51:33 +0000 (18:51 -0000)]
Applied patch from David Douthitt to fix build error in df.c when
BB_FEATURE_HUMAN_READABLE was disabled.

23 years agoBah. I missed a header file.
Eric Andersen [Thu, 1 Mar 2001 07:55:49 +0000 (07:55 -0000)]
Bah.  I missed a header file.

23 years agoReduce the size of mount (and bypass /proc/filesystems) by using the sysfs
Eric Andersen [Thu, 1 Mar 2001 07:50:04 +0000 (07:50 -0000)]
Reduce the size of mount (and bypass /proc/filesystems) by using the sysfs
system call, based on work done by Glenn McGrath in December.
 -Erik

23 years agoKeep trying if an NFS mount fails, and eliminate a call to exit(3).
Matt Kraai [Wed, 28 Feb 2001 15:33:12 +0000 (15:33 -0000)]
Keep trying if an NFS mount fails, and eliminate a call to exit(3).

23 years agolibpwd was getting added twice.
Eric Andersen [Tue, 27 Feb 2001 22:24:45 +0000 (22:24 -0000)]
libpwd was getting added twice.

23 years agoLittle patchlet to make linking against libc5 work a little better
Mark Whitley [Tue, 27 Feb 2001 19:53:48 +0000 (19:53 -0000)]
Little patchlet to make linking against libc5 work a little better

23 years agoPatch from Vladimir N. Oleynik to save 128 bytes by moving error
Eric Andersen [Tue, 27 Feb 2001 18:22:03 +0000 (18:22 -0000)]
Patch from Vladimir N. Oleynik to save 128 bytes by moving error
checking for some my_* functions to utility.c

23 years agoApplied patch from Magnus Damm <damm@opensource.se> to fix a 'inner scope var
Mark Whitley [Mon, 26 Feb 2001 17:45:58 +0000 (17:45 -0000)]
Applied patch from Magnus Damm <damm@opensource.se> to fix a 'inner scope var
masking outer scope var with same name' bug that was preventing the loopback
device from being unmounted if mount() fails.

23 years ago- changed the way POD is generated such that the dashed
John Beppu [Mon, 26 Feb 2001 02:50:11 +0000 (02:50 -0000)]
- changed the way POD is generated such that the dashed
  line appears at the bottom instead of the top.  The
  indentation semantics of POD make the first item in
  the (=over,=back) block look weird the other way.
- implemented a way to encode example usage into usage.h
  One would define a macro called "${applet}_example_usage"
  which would expand to the example text.
- The example usage is considered optional, but trivial and
  full usage are not.

  Here's an example using chown.

---- before

#define chown_trivial_usage \
"[OPTION]...  OWNER[<.|:>[GROUP] FILE..."
#define chown_full_usage \
"Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
"\nOptions:\n" \
"\t-R\tChanges files and directories recursively."
#define chown_example_usage \
"\t$ ls -l /tmp/foo\n" \
"\t-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
"\t$ chown root /tmp/foo\n" \
"\t$ ls -l /tmp/foo\n" \
"\t-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo\n" \
"\t$ chown root.root /tmp/foo\n" \
"\tls -l /tmp/foo\n" \
"\t-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"

---- after

=item I<chown>

chown [OPTION]...  OWNER[<.|:>[GROUP] FILE...

Change the owner and/or group of each FILE to OWNER and/or GROUP.

Options:

-R Changes files and directories recursively.

Example:

$ ls -l /tmp/foo
-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo
$ chown root /tmp/foo
$ ls -l /tmp/foo
-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo
$ chown root.root /tmp/foo
ls -l /tmp/foo
-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo

-------------------------------

23 years agoThis patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support
Eric Andersen [Sat, 24 Feb 2001 20:01:53 +0000 (20:01 -0000)]
This patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support
to busybox insmod.  Thanks Quinn!!!
 -Erik

23 years agoMake output match the real lsmod -- print (autoclean) type
Eric Andersen [Sat, 24 Feb 2001 19:51:54 +0000 (19:51 -0000)]
Make output match the real lsmod -- print (autoclean) type
stuff first not last.
 -Erik

23 years agoStub out the syscall, not the whole application. The stubbed
Eric Andersen [Sat, 24 Feb 2001 19:17:07 +0000 (19:17 -0000)]
Stub out the syscall, not the whole application.  The stubbed
out syscall sets errno properly and whines about missing kernel
support.
 -Erik

23 years agoThe usage message for syslogd had stuff longer then 80 chars and wrapped.
Eric Andersen [Sat, 24 Feb 2001 18:52:36 +0000 (18:52 -0000)]
The usage message for syslogd had stuff longer then 80 chars and wrapped.

23 years ago...
John Beppu [Sat, 24 Feb 2001 14:44:25 +0000 (14:44 -0000)]
...

23 years agorefinement
John Beppu [Sat, 24 Feb 2001 14:37:48 +0000 (14:37 -0000)]
refinement

23 years agoformatting ...
John Beppu [Fri, 23 Feb 2001 17:55:03 +0000 (17:55 -0000)]
formatting ...

23 years agoAdded some documentation and made --sgml use sgml_from_usage().
John Beppu [Fri, 23 Feb 2001 17:51:08 +0000 (17:51 -0000)]
Added some documentation and made --sgml use sgml_from_usage().
pod_from_usage() is the default generator.

23 years agoAnother usage cleanup from kent robotti
Eric Andersen [Fri, 23 Feb 2001 17:47:51 +0000 (17:47 -0000)]
Another usage cleanup from kent robotti

23 years agoDuring POD generation, it inserts a blank line before lines
John Beppu [Fri, 23 Feb 2001 17:41:41 +0000 (17:41 -0000)]
During POD generation, it inserts a blank line before lines
that were intended to be indented.

23 years agoMore cleanups
Eric Andersen [Fri, 23 Feb 2001 16:58:44 +0000 (16:58 -0000)]
More cleanups

23 years agoforgot to remove some debugging noise
John Beppu [Fri, 23 Feb 2001 16:16:08 +0000 (16:16 -0000)]
forgot to remove some debugging noise

23 years agoThis one should be able to deal with the USAGE macros a little
John Beppu [Fri, 23 Feb 2001 16:15:34 +0000 (16:15 -0000)]
This one should be able to deal with the USAGE macros a little
more robustly.  I also blow away any USAGE_NOT_\w+ macros.

23 years agoMake HUMAN_READABLE be single argument like the others.
Eric Andersen [Fri, 23 Feb 2001 13:23:03 +0000 (13:23 -0000)]
Make HUMAN_READABLE be single argument like the others.

23 years agoforgot a comma.
John Beppu [Fri, 23 Feb 2001 13:04:39 +0000 (13:04 -0000)]
forgot a comma.

23 years agoMore usage cleanups from kent robotti. I know some of these were
Eric Andersen [Fri, 23 Feb 2001 10:07:09 +0000 (10:07 -0000)]
More usage cleanups from kent robotti.  I know some of these were
applied previously but apparently lost with some of the latest changes.

23 years agoFix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>
Eric Andersen [Fri, 23 Feb 2001 06:36:53 +0000 (06:36 -0000)]
Fix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>

23 years agospace after \ make preprocessor sad
David Kimdon [Fri, 23 Feb 2001 06:03:22 +0000 (06:03 -0000)]
space after \ make preprocessor sad

23 years agoutility.c must include stdarg.h
David Kimdon [Fri, 23 Feb 2001 03:55:24 +0000 (03:55 -0000)]
utility.c must include stdarg.h

23 years agoI can't leave it alone.
John Beppu [Fri, 23 Feb 2001 03:12:45 +0000 (03:12 -0000)]
I can't leave it alone.

23 years agominor cleanup... all that's left to do is
John Beppu [Fri, 23 Feb 2001 02:54:31 +0000 (02:54 -0000)]
minor cleanup...  all that's left to do is
* make headers and footers for both the POD and SGML content
* make an SGML generator
* finish the command-line handling

Also, some of the documentation in usage.h will have to
be adjusted.  expr needs some lines to be indented, and
ls has a stray comma.  I may have missed some things...
but it looks OK for the most part.

23 years agoThis is the remixed autodocufier.pl.
John Beppu [Fri, 23 Feb 2001 02:33:28 +0000 (02:33 -0000)]
This is the remixed autodocufier.pl.

23 years agoStub out pivot_root so it won't fail to compile.
Eric Andersen [Fri, 23 Feb 2001 02:31:03 +0000 (02:31 -0000)]
Stub out pivot_root so it won't fail to compile.
 -Erik

23 years agoSomewhere along the line, MAKE_LINKS got broken, thereby breaking
Eric Andersen [Fri, 23 Feb 2001 02:16:29 +0000 (02:16 -0000)]
Somewhere along the line, MAKE_LINKS got broken, thereby breaking
'make install'.  Fix that.

23 years agoArgh. I should know to compile first.
Eric Andersen [Fri, 23 Feb 2001 02:04:33 +0000 (02:04 -0000)]
Argh.  I should know to compile first.

23 years agoOnly default to BB_FEATURE_NEW_MODULE_INTERFACE when
Eric Andersen [Fri, 23 Feb 2001 02:00:35 +0000 (02:00 -0000)]
Only default to BB_FEATURE_NEW_MODULE_INTERFACE when
BB_FEATURE_OLD_MODULE_INTERFACE is not defined.
 -Erik

23 years agoMake utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
Eric Andersen [Fri, 23 Feb 2001 01:58:18 +0000 (01:58 -0000)]
Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
is enabled.
 -Erik

23 years agoYet another fix. I think I got it this time.
Eric Andersen [Fri, 23 Feb 2001 01:39:26 +0000 (01:39 -0000)]
Yet another fix.  I think I got it this time.
 -Erik

23 years agoI should be more careful...
Eric Andersen [Fri, 23 Feb 2001 00:05:56 +0000 (00:05 -0000)]
I should be more careful...

23 years agoTurn off the printf attribute for the ?error_msg* functions, since it
Eric Andersen [Thu, 22 Feb 2001 23:38:48 +0000 (23:38 -0000)]
Turn off the printf attribute for the ?error_msg* functions, since it
is ok to pass them a NULL, unlike printf.  This silences a pointless
warning message.
 -Erik

23 years agoAdd in kent robotti's updated dos2unix.c
Eric Andersen [Thu, 22 Feb 2001 23:37:30 +0000 (23:37 -0000)]
Add in kent robotti's updated dos2unix.c

23 years agoFix up Makefile -- uClibc nfs works these days
Eric Andersen [Thu, 22 Feb 2001 23:36:30 +0000 (23:36 -0000)]
Fix up Makefile -- uClibc nfs works these days

23 years agoCommit a few updates to the usage messages.
Eric Andersen [Thu, 22 Feb 2001 23:32:59 +0000 (23:32 -0000)]
Commit a few updates to the usage messages.

23 years agoFirst pass at making up an automagical usage message extractor, which
Eric Andersen [Thu, 22 Feb 2001 22:47:06 +0000 (22:47 -0000)]
First pass at making up an automagical usage message extractor, which
will be used (when it works) to autogenerate documentation.  Based on
code written by Mark Whitley.

23 years agoAccount for remainder, and reset page_height for each and every page.
Eric Andersen [Thu, 22 Feb 2001 21:49:32 +0000 (21:49 -0000)]
Account for remainder, and reset page_height for each and every page.

23 years agoMake busybox and busybox-static conflict/replace each other
Eric Andersen [Thu, 22 Feb 2001 05:21:35 +0000 (05:21 -0000)]
Make busybox and busybox-static conflict/replace each other

23 years agoFix malformed build-depends. Update list of bugs to close
Eric Andersen [Thu, 22 Feb 2001 05:08:16 +0000 (05:08 -0000)]
Fix malformed build-depends.  Update list of bugs to close
 -Erik

23 years agoMake md5sum not display filename when reading stdin
Eric Andersen [Thu, 22 Feb 2001 04:59:16 +0000 (04:59 -0000)]
Make md5sum not display filename when reading stdin
 -Erik

23 years agoMake init compile when DEBUG_INIT is enabled
Eric Andersen [Thu, 22 Feb 2001 04:55:33 +0000 (04:55 -0000)]
Make init compile when DEBUG_INIT is enabled
 -Erik

23 years agoAnother update to the way usage messages are done by Evin Robertson
Eric Andersen [Thu, 22 Feb 2001 01:15:47 +0000 (01:15 -0000)]
Another update to the way usage messages are done by Evin Robertson
<nitfol@my-deja.com>, which makes things just a little bit smaller, but makes
usage.h more readable/maintainable IMHO.
 -Erik

23 years agoRevert my change to do extra termType checking. That is done elsewhere.
Eric Andersen [Thu, 22 Feb 2001 00:50:20 +0000 (00:50 -0000)]
Revert my change to do extra termType checking.  That is done elsewhere.
Silly me.
 -Erik

23 years agoAdjust the terminal height for any overlap, so that no lines
Eric Andersen [Thu, 22 Feb 2001 00:22:46 +0000 (00:22 -0000)]
Adjust the terminal height for any overlap, so that no lines
get lost off the top
 -Erik

23 years agoOops! I left in my debug noise.
Eric Andersen [Wed, 21 Feb 2001 00:27:22 +0000 (00:27 -0000)]
Oops!  I left in my debug noise.

23 years agodf was totally broken. So I fixed it.
Eric Andersen [Wed, 21 Feb 2001 00:24:51 +0000 (00:24 -0000)]
df was totally broken.  So I fixed it.
 -Erik

23 years agoSmall patch from Kent Robotti to show megabytes in human-readable output.
Mark Whitley [Tue, 20 Feb 2001 21:57:55 +0000 (21:57 -0000)]
Small patch from Kent Robotti to show megabytes in human-readable output.

23 years agoMinor cleanup.
Eric Andersen [Tue, 20 Feb 2001 21:52:49 +0000 (21:52 -0000)]
Minor cleanup.

23 years agoApply a patch from Magnus Damm <damm@opensource.se> to support
Eric Andersen [Tue, 20 Feb 2001 20:47:08 +0000 (20:47 -0000)]
Apply a patch from Magnus Damm <damm@opensource.se> to support
powerpc with busybox insmod
 -Erik

23 years agoCommit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
Eric Andersen [Tue, 20 Feb 2001 18:01:50 +0000 (18:01 -0000)]
Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
environment variables set from the kernel command line to be inherited
bu application programs.  Slightly changed to special case handling of
TERM, so that it has sane defaults when on a serial console.
 -Erik

23 years agoOops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
Eric Andersen [Tue, 20 Feb 2001 06:42:29 +0000 (06:42 -0000)]
Oops.  Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
after busybox.h is included.

23 years agoThis fixes lash so it handles environment variable expansion, regardless
Eric Andersen [Tue, 20 Feb 2001 06:38:44 +0000 (06:38 -0000)]
This fixes lash so it handles environment variable expansion, regardless
of where the environment variables are located in an argument.  This allows
things like 'echo foo$1$SHELL' to expand the same way bash would expand it.
Of course, to make this work I introduced a memory leak, and I am too tired
to find a way to fix it.
 -Erik

23 years agoCleanup the use of 'find' to prevent error msgs.
Eric Andersen [Tue, 20 Feb 2001 06:22:54 +0000 (06:22 -0000)]
Cleanup the use of 'find' to prevent error msgs.
 -Erik

23 years agoOops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS
Eric Andersen [Tue, 20 Feb 2001 06:16:29 +0000 (06:16 -0000)]
Oops.  Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS
 -Erik