Matt Kraai
5de909873a
Eliminate superfluous test.
2001-03-07 21:45:13 +00:00
Mark Whitley
4cc8f31ffe
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
2001-03-07 18:00:44 +00:00
Mark Whitley
ae5612ca6e
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of
...
'format' function to 'make_human_readable_str'.
2001-03-07 17:42:07 +00:00
Mark Whitley
ae20128e9f
Applied patch from Christophe Boyaniqu to remove double-slashes printed in
...
recursive_action.
2001-03-07 17:27:04 +00:00
Eric Andersen
26d53eb197
This patch by Vladimir and Larry saves a few bytes.
2001-03-07 06:33:01 +00:00
Eric Andersen
ec9fad9a49
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.
2001-03-07 06:04:08 +00:00
Eric Andersen
a7db19bb81
Fix up du so it behaves itself also.
...
-Erik
2001-03-07 03:53:40 +00:00
Eric Andersen
11ae573320
remove an unused variable
2001-03-07 03:51:27 +00:00
Eric Andersen
7850f1e2ac
Rewrite of format so it behaves itself
...
-Erik
2001-03-07 03:50:57 +00:00
Eric Andersen
5986f8d1c6
Fix up df so it works properly
...
-Erik
2001-03-07 03:50:03 +00:00
Eric Andersen
651f8c04ef
Fix up ls.c to ensure human readable works properly in all cases
2001-03-07 03:48:02 +00:00
Mark Whitley
6c563bc1a1
Thought of another janitorial item for the list.
2001-03-06 23:16:13 +00:00
Eric Andersen
8b728a25a3
I made these little simplifications a while back, bug forgot to
...
check this stuff in.
-Erik
2001-03-06 23:14:43 +00:00
Eric Andersen
702ec5926f
Fix the memory leak. No really this time.
...
-Erik
2001-03-06 22:17:29 +00:00
Mark Whitley
8bb7df49c2
Applied patch from Vladimir Oleynik via Magnus Damm that removes newlines from
...
error_msg() calls and uses 'return EXIT_SUCCESS' instead of return 0.
2001-03-06 20:58:48 +00:00
Eric Andersen
0f430e34af
Fix up some silly macros and use xmalloc and friends exclusively.
2001-03-06 20:54:43 +00:00
Eric Andersen
36278b9576
Fix func prototype
2001-03-06 20:47:31 +00:00
Eric Andersen
54851d3c65
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
2001-03-06 20:44:39 +00:00
Eric Andersen
07f2f3917a
Close open files before calling builtin_exec(). I've tested this
...
and it fixes bug #1121 .
-Erik
2001-03-06 20:28:22 +00:00
Eric Andersen
1a046d5f9d
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
2001-03-06 19:35:58 +00:00
John Beppu
138ece09b5
minor cleanup
2001-03-06 19:25:25 +00:00
Eric Andersen
e6c4de03c6
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
2001-03-06 18:46:10 +00:00
Eric Andersen
f15d4dad66
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
2001-03-06 00:48:59 +00:00
Eric Andersen
5efa2291aa
Fix up the freshmeat appindex record.
2001-03-05 18:26:50 +00:00
Eric Andersen
c27b9544b6
Make sure libpwd.a is linked _last_ so it overrides the system pwd/grp
...
implementation. It wasn't doing that as expected...
2001-03-05 17:57:34 +00:00
Eric Andersen
47cdcdd359
Try to do a little better at documenting how to use
...
alternate C libraries, thanks to David Douthitt.
2001-03-05 17:08:52 +00:00
David Kimdon
21b7459add
add wget, tr, telnet, ping, md5sum and loadkmap to .deb
2001-03-05 08:43:26 +00:00
Eric Andersen
afbff22e6e
Enable INSTALLER for the deb
2001-03-05 04:00:06 +00:00
Eric Andersen
452fd33ffa
Patch from Vladimir to make sure PATH is set correctly.
2001-03-04 06:47:33 +00:00
Eric Andersen
076cdc24fc
If umount2 is not available, stub it out.
2001-03-04 06:07:34 +00:00
Mark Whitley
9ead68975c
Added some words on use of getopt in applets.
2001-03-03 00:44:55 +00:00
Glenn L McGrath
323434be42
Dont try to automount some specific filesystem types
2001-03-02 22:21:34 +00:00
Mark Whitley
446dd27843
Applied patch from Vladimir N. Oleynik that fixes incorrect behaviour in
...
recovery_mode and changed option processing.
2001-03-02 20:00:54 +00:00
Mark Whitley
42ab250709
Removed section on testing that is now in contributing.txt.
2001-03-02 19:15:01 +00:00
Mark Whitley
3b565cdf91
Added 'How to contribute to Busybox' doc.
2001-03-02 19:14:25 +00:00
Mark Whitley
85adecb668
Whoops! BB_TFTP should prolly be off by default.
2001-03-02 19:11:26 +00:00
Mark Whitley
450736cd3c
Added Magnus Damm's tftp applet to Busybox.
2001-03-02 19:08:50 +00:00
Mark Whitley
016771834a
Changed exit code from -1 to 0 when busybox is invoked with no args.
...
(Closes bug #1114.)
2001-03-02 17:47:17 +00:00
Mark Whitley
39842defda
Applied patch from David Douthitt to fix build error in df.c when
...
BB_FEATURE_HUMAN_READABLE was disabled.
2001-03-01 18:51:33 +00:00
Eric Andersen
de4406747b
Bah. I missed a header file.
2001-03-01 07:55:49 +00:00
Eric Andersen
7b91f02021
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
2001-03-01 07:50:04 +00:00
Matt Kraai
93ba60f01d
Keep trying if an NFS mount fails, and eliminate a call to exit(3).
2001-02-28 15:33:12 +00:00
Eric Andersen
1b6cff3df4
libpwd was getting added twice.
2001-02-27 22:24:45 +00:00
Mark Whitley
4f76bb6f3e
Little patchlet to make linking against libc5 work a little better
2001-02-27 19:53:48 +00:00
Eric Andersen
4142d4dc66
Patch from Vladimir N. Oleynik to save 128 bytes by moving error
...
checking for some my_* functions to utility.c
2001-02-27 18:22:03 +00:00
Mark Whitley
e677dfedd1
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.
2001-02-26 17:45:58 +00:00
John Beppu
d11578f916
- 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
-------------------------------
2001-02-26 02:50:11 +00:00
Eric Andersen
2bf658d5cd
This patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support
...
to busybox insmod. Thanks Quinn!!!
-Erik
2001-02-24 20:01:53 +00:00
Eric Andersen
afeb96547f
Make output match the real lsmod -- print (autoclean) type
...
stuff first not last.
-Erik
2001-02-24 19:51:54 +00:00
Eric Andersen
d160a27ec1
Stub out the syscall, not the whole application. The stubbed
...
out syscall sets errno properly and whines about missing kernel
support.
-Erik
2001-02-24 19:17:07 +00:00