Mark Whitley [Mon, 12 Mar 2001 22:51:50 +0000 (22:51 -0000)]
Applied patch from Gennady Feldman to split up syslogd.c into syslogd and
klogd (as it should be).
Eric Andersen [Mon, 12 Mar 2001 21:36:49 +0000 (21:36 -0000)]
A fix from Larry Doolittle for some nasty segfaults when sh.c tried to free a
corrupted cmd pointer, and where it would truncate a command line at the first
double space.
-Erik
Mark Whitley [Mon, 12 Mar 2001 20:00:00 +0000 (20:00 -0000)]
Program for testing concurrent access to syslogd.
Mark Whitley [Mon, 12 Mar 2001 19:51:09 +0000 (19:51 -0000)]
Applied patch from Gennady Feldman to use single-thread instead of forking.
Manuel Novoa III [Mon, 12 Mar 2001 10:00:17 +0000 (10:00 -0000)]
Add missing dependency -- interface.c needs get_kernel_revision.
Manuel Novoa III [Mon, 12 Mar 2001 09:58:51 +0000 (09:58 -0000)]
Adjust ifconfig usage message for selected options and current functionality.
Manuel Novoa III [Mon, 12 Mar 2001 09:57:59 +0000 (09:57 -0000)]
Reduced code size of interface. Support ifconfig -a and ifconfig interface
display. Change %llu to %Lu in ifconfig for hacked unsigned long long support
in uClibc scanf.
Eric Andersen [Sat, 10 Mar 2001 07:12:12 +0000 (07:12 -0000)]
When using wordexp, only try to use the expand command
when something actually got expanded. Skip it otherwise.
-Erik
Manuel Novoa III [Sat, 10 Mar 2001 02:00:54 +0000 (02:00 -0000)]
Quick mod to enable option -a for ifconfig.
Mark Whitley [Sat, 10 Mar 2001 00:51:29 +0000 (00:51 -0000)]
Created new regression testing framework with a number of testcases (many more
can be added). Also changed 'test' target in makefile to run the new
tester.sh. (Hopefully, we should be able to remove all the tests/*.mk files
soon.)
Mark Whitley [Sat, 10 Mar 2001 00:13:20 +0000 (00:13 -0000)]
/* getopt not needed */
Mark Whitley [Fri, 9 Mar 2001 23:59:51 +0000 (23:59 -0000)]
Added some more '/* getopt not needed */' lines.
Manuel Novoa III [Fri, 9 Mar 2001 23:06:15 +0000 (23:06 -0000)]
Use perror_msg_and_die function where appropriate.
Eric Andersen [Fri, 9 Mar 2001 22:42:26 +0000 (22:42 -0000)]
Fixed df.c so that nfs volumes will display properly (fixing bug #1113).
Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then
cast the result back to an int after the math is done, letting C's type
promotion do its magic for the rest.
-Erik
Eric Andersen [Fri, 9 Mar 2001 22:17:59 +0000 (22:17 -0000)]
Silence a silly warning
Mark Whitley [Fri, 9 Mar 2001 21:49:12 +0000 (21:49 -0000)]
Applied patch from Jeff Garzik to getopt-ify rmmod.
Eric Andersen [Fri, 9 Mar 2001 21:28:09 +0000 (21:28 -0000)]
Patch from Jeff Garzik marking a few 'getopt not needed' apps.
Eric Andersen [Fri, 9 Mar 2001 21:24:12 +0000 (21:24 -0000)]
A cleanup patch from Jeff Garzik to static-ify a number of
namespace polluting things that really should be static.
Eric Andersen [Fri, 9 Mar 2001 20:47:27 +0000 (20:47 -0000)]
patch from Larry to fix pristine source builds
Eric Andersen [Fri, 9 Mar 2001 20:34:46 +0000 (20:34 -0000)]
Fixed a couple more cases. $FOO/bar ${FOO} and such now work
without wordexp. Of course for stuff like ${1:-foo} you still
need wordexp for them to work.
-Erik
Eric Andersen [Fri, 9 Mar 2001 19:45:26 +0000 (19:45 -0000)]
Allow wordexp to be used if available
Eric Andersen [Fri, 9 Mar 2001 19:43:57 +0000 (19:43 -0000)]
Urg. Remove the debug noise
Eric Andersen [Fri, 9 Mar 2001 19:21:37 +0000 (19:21 -0000)]
Ok, sh.c should be working now. Many thanks to Larry Doolittle
for his timely help -- nearly all of the work in this patch is
his.
-Erik
Eric Andersen [Fri, 9 Mar 2001 14:36:42 +0000 (14:36 -0000)]
Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup
warnings with glibc 2.2 and use always use xfopen
-Erik
Mark Whitley [Fri, 9 Mar 2001 01:46:45 +0000 (01:46 -0000)]
Added script that tests turning on features in busybox one at a time and
compiling to see if things break. Initial revision.
Eric Andersen [Fri, 9 Mar 2001 01:24:02 +0000 (01:24 -0000)]
Fix sh.c for the glab case. I was messing things up for
single argument commands. It should now work as expected...
-Erik
Eric Andersen [Fri, 9 Mar 2001 01:08:06 +0000 (01:08 -0000)]
A '.' is a legal seperator.
Mark Whitley [Fri, 9 Mar 2001 00:55:34 +0000 (00:55 -0000)]
Fix to trim to make it trim properly.
Eric Andersen [Fri, 9 Mar 2001 00:42:46 +0000 (00:42 -0000)]
Cleanup patch from Larry
Eric Andersen [Thu, 8 Mar 2001 23:59:45 +0000 (23:59 -0000)]
Add in 'trim' routine. Fix up sh.c so it works when wordexp
is not available.
-Erik
Manuel Novoa III [Thu, 8 Mar 2001 22:57:00 +0000 (22:57 -0000)]
Improved port of ifconfig... smaller and with more features.
Eric Andersen [Thu, 8 Mar 2001 21:42:11 +0000 (21:42 -0000)]
Per Vladimir's suggestion, force the locale to POSIX for all
the scripts so busybox will install properly.
Mark Whitley [Thu, 8 Mar 2001 19:31:12 +0000 (19:31 -0000)]
Whitespace / formatting / bracket cleanup.
Eric Andersen [Thu, 8 Mar 2001 17:44:37 +0000 (17:44 -0000)]
Remember to delete un-expandable variables, and do a better job of expanding
shell-specific things in case the wordexp implementation is broken (ie. the
stubbed out wordexp in uClibc).
-Erik
Eric Andersen [Thu, 8 Mar 2001 17:17:13 +0000 (17:17 -0000)]
Rework environment variable handling to use wordexp, per a suggestion from
Larry Doolittle a couple of months ago. This makes the stuff-expansion in lash
be ever so standards compliant. This change needs testing by everyone, but
appears to be solid enough to let us close bug #1090.
It works for me; however, please test this change!
-Erik
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.
Matt Kraai [Wed, 7 Mar 2001 21:45:13 +0000 (21:45 -0000)]
Eliminate superfluous test.
Mark Whitley [Wed, 7 Mar 2001 18:00:44 +0000 (18:00 -0000)]
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
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'.
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.
Eric Andersen [Wed, 7 Mar 2001 06:33:01 +0000 (06:33 -0000)]
This patch by Vladimir and Larry saves a few bytes.
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.
Eric Andersen [Wed, 7 Mar 2001 03:53:40 +0000 (03:53 -0000)]
Fix up du so it behaves itself also.
-Erik
Eric Andersen [Wed, 7 Mar 2001 03:51:27 +0000 (03:51 -0000)]
remove an unused variable
Eric Andersen [Wed, 7 Mar 2001 03:50:57 +0000 (03:50 -0000)]
Rewrite of format so it behaves itself
-Erik
Eric Andersen [Wed, 7 Mar 2001 03:50:03 +0000 (03:50 -0000)]
Fix up df so it works properly
-Erik
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
Mark Whitley [Tue, 6 Mar 2001 23:16:13 +0000 (23:16 -0000)]
Thought of another janitorial item for the list.
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
Eric Andersen [Tue, 6 Mar 2001 22:17:29 +0000 (22:17 -0000)]
Fix the memory leak. No really this time.
-Erik
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.
Eric Andersen [Tue, 6 Mar 2001 20:54:43 +0000 (20:54 -0000)]
Fix up some silly macros and use xmalloc and friends exclusively.
Eric Andersen [Tue, 6 Mar 2001 20:47:31 +0000 (20:47 -0000)]
Fix func prototype
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
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
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
John Beppu [Tue, 6 Mar 2001 19:25:25 +0000 (19:25 -0000)]
minor cleanup
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
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
Eric Andersen [Mon, 5 Mar 2001 18:26:50 +0000 (18:26 -0000)]
Fix up the freshmeat appindex record.
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...
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.
David Kimdon [Mon, 5 Mar 2001 08:43:26 +0000 (08:43 -0000)]
add wget, tr, telnet, ping, md5sum and loadkmap to .deb
Eric Andersen [Mon, 5 Mar 2001 04:00:06 +0000 (04:00 -0000)]
Enable INSTALLER for the deb
Eric Andersen [Sun, 4 Mar 2001 06:47:33 +0000 (06:47 -0000)]
Patch from Vladimir to make sure PATH is set correctly.
Eric Andersen [Sun, 4 Mar 2001 06:07:34 +0000 (06:07 -0000)]
If umount2 is not available, stub it out.
Mark Whitley [Sat, 3 Mar 2001 00:44:55 +0000 (00:44 -0000)]
Added some words on use of getopt in applets.
Glenn L McGrath [Fri, 2 Mar 2001 22:21:34 +0000 (22:21 -0000)]
Dont try to automount some specific filesystem types
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.
Mark Whitley [Fri, 2 Mar 2001 19:15:01 +0000 (19:15 -0000)]
Removed section on testing that is now in contributing.txt.
Mark Whitley [Fri, 2 Mar 2001 19:14:25 +0000 (19:14 -0000)]
Added 'How to contribute to Busybox' doc.
Mark Whitley [Fri, 2 Mar 2001 19:11:26 +0000 (19:11 -0000)]
Whoops! BB_TFTP should prolly be off by default.
Mark Whitley [Fri, 2 Mar 2001 19:08:50 +0000 (19:08 -0000)]
Added Magnus Damm's tftp applet to Busybox.
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.)
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.
Eric Andersen [Thu, 1 Mar 2001 07:55:49 +0000 (07:55 -0000)]
Bah. I missed a header file.
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
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).
Eric Andersen [Tue, 27 Feb 2001 22:24:45 +0000 (22:24 -0000)]
libpwd was getting added twice.
Mark Whitley [Tue, 27 Feb 2001 19:53:48 +0000 (19:53 -0000)]
Little patchlet to make linking against libc5 work a little better
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
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.
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
-------------------------------
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
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
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
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.
John Beppu [Sat, 24 Feb 2001 14:44:25 +0000 (14:44 -0000)]
...
John Beppu [Sat, 24 Feb 2001 14:37:48 +0000 (14:37 -0000)]
refinement
John Beppu [Fri, 23 Feb 2001 17:55:03 +0000 (17:55 -0000)]
formatting ...
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.
Eric Andersen [Fri, 23 Feb 2001 17:47:51 +0000 (17:47 -0000)]
Another usage cleanup from kent robotti
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.
Eric Andersen [Fri, 23 Feb 2001 16:58:44 +0000 (16:58 -0000)]
More cleanups
John Beppu [Fri, 23 Feb 2001 16:16:08 +0000 (16:16 -0000)]
forgot to remove some debugging noise
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.
Eric Andersen [Fri, 23 Feb 2001 13:23:03 +0000 (13:23 -0000)]
Make HUMAN_READABLE be single argument like the others.
John Beppu [Fri, 23 Feb 2001 13:04:39 +0000 (13:04 -0000)]
forgot a comma.
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.
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>