Aaron Lehmann [Sat, 22 Jun 2002 06:35:29 +0000 (06:35 -0000)]
Major revamp. I've been trying to clean up the code. the bzerror stuff
still needs major attention (i.e. removal).
Removed references to uninitialized variables like progName,
smallMode, noisy, etc. Remove functions and code for handling "small"
decompression mode, since it is all unreachable. Remove
total_{in,out}* counters - they are never used. Remove panic()
function and assert_h and their uses because they are all for "should
never happen" circumstances. Replace internal malloc/free wrappers
with xmalloc and free. Remove conditional in if(foo)free(foo);
situations. Remove bogus
if (sizeof(int) != 4) {
return BZ_CONFIG_ERROR;
}
(...etc...) code and code for handling BZ_CONFIG_ERROR. Someone should
go through and change the applet to use well-defined types when
appropriate - it expects sizeof(short)==2 && sizeof(int)==4. Until
this commit these were explicitly checked for, and the applet would
exit if these types were not the right size. (I think this is wrong
even as an interim solution.)
With gcc 3.1 reduces size of binary on i386-linux by about 700 bytes.
Lightly tested.
Eric Andersen [Tue, 18 Jun 2002 05:16:25 +0000 (05:16 -0000)]
As noted by Yves Lavoie ing. <yves.lavoie.ing@sympatico.ca>, don't
lose the last letter of the module name.
Eric Andersen [Sat, 15 Jun 2002 14:37:46 +0000 (14:37 -0000)]
Fix a potential macro expansion problem... isspace can be
a macro causing a double decrement...
Eric Andersen [Sat, 15 Jun 2002 14:33:06 +0000 (14:33 -0000)]
Don't use pointless GNU-isms
Robert Griebl [Tue, 11 Jun 2002 23:43:27 +0000 (23:43 -0000)]
Patch from Simon Krahnke:
I wrote a patch for busybox for our company's (www.lisa.de)
private use. [...] To sed it adds the '!'-inversion of addresses.
Matt Kraai [Tue, 11 Jun 2002 13:29:08 +0000 (13:29 -0000)]
* testsuite/sed/sed-recurses-properly: Mark XFAIL.
Matt Kraai [Tue, 11 Jun 2002 13:25:26 +0000 (13:25 -0000)]
* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.
Eric Andersen [Sat, 8 Jun 2002 12:44:17 +0000 (12:44 -0000)]
vodz' last_patch42_2, which is an updated fix for buffer overflows
noted by Gerardo Puga
Robert Griebl [Thu, 6 Jun 2002 17:30:16 +0000 (17:30 -0000)]
If config file can not be parsed, use compiled in BB_SUID_... values as a
fallback method
Eric Andersen [Thu, 6 Jun 2002 14:36:07 +0000 (14:36 -0000)]
Fix buffer overflows noted by Gerardo Puga
-Erik
Eric Andersen [Thu, 6 Jun 2002 14:24:57 +0000 (14:24 -0000)]
Fix buffer overflows noted by Gerardo Puga
-Erik
Eric Andersen [Thu, 6 Jun 2002 13:33:01 +0000 (13:33 -0000)]
Fix a buffer overflow found by Gerardo Puga <gpuga@gioia.ing.unlp.edu.ar>
-Erik
Eric Andersen [Thu, 6 Jun 2002 13:00:47 +0000 (13:00 -0000)]
Lets give this a try...
Eric Andersen [Thu, 6 Jun 2002 12:59:13 +0000 (12:59 -0000)]
Email addr fix
Eric Andersen [Thu, 6 Jun 2002 12:24:51 +0000 (12:24 -0000)]
Patch from Gyepi SAM <gyepi@praxis-sw.com>:
Fixed up domain removal for local domains. GNU traceroute does not do this. I
don't know why we do. Fixed incorrect argument for reverse resolution. Clean
up cruft that appears when CONFIG_FEATURE_TRACEROUTE_VERBOSE is defined
Eric Andersen [Thu, 6 Jun 2002 12:11:55 +0000 (12:11 -0000)]
Patch from Gyepi SAM <gyepi@praxis-sw.com>:
When DEBUG is defined
1. need to include resolv.h (for _resinit())
2. remove _() call around string. It appears to be a remnant of i18n or some such notion
Eric Andersen [Thu, 6 Jun 2002 12:07:28 +0000 (12:07 -0000)]
Patch from vodz to only setenv PATH when PATH changes, which is much
smarter than my quick fix.
Eric Andersen [Thu, 6 Jun 2002 11:47:00 +0000 (11:47 -0000)]
Per discussion with vodz, Tim's changes do not seem to make sense.
Revert them.
-Erik
Eric Andersen [Thu, 6 Jun 2002 11:35:29 +0000 (11:35 -0000)]
last_patch41 from vodz to fix stty -F and similar
Eric Andersen [Wed, 5 Jun 2002 07:11:32 +0000 (07:11 -0000)]
plug fd leak noticed by Russ Dill
-Erik
Robert Griebl [Tue, 4 Jun 2002 20:45:46 +0000 (20:45 -0000)]
Bigger patch for (partial) tinylogin integration
- Made a new dir loginutils
- Moved all applets from pwd_grp to loginutils
- Added new applets su.c login.c to loginutils
- Made a new dir libpwdgrp
- Moved everything from pwd_grp/libpwd_grp there
- Added shadow.c to libpwdgrp
- Removed dir pwd_grp
- Added usage strings for login and su to usage.h
- Changed main Makefile to reflect the dir rearrangements
[Parts of this patch may overlap with my other two patches]
Robert Griebl [Tue, 4 Jun 2002 20:10:23 +0000 (20:10 -0000)]
Fix for broken handling off BusyBox's own pwd/grp implementations
[Parts of this patch may overlap with my other two patches]
Robert Griebl [Tue, 4 Jun 2002 20:06:25 +0000 (20:06 -0000)]
Implement two types of suid/sgid support for BusyBox:
1) tinylogin like with compile time selection and a chown root.root
2) Runtime configurable via /etc/busybox.conf (docu is in the works)
[Parts of this patch may overlap with my other two patches]
Robert Griebl [Tue, 4 Jun 2002 19:33:58 +0000 (19:33 -0000)]
Cleaned up Erik's fgets -> read patch and fixed a buffer overflow
Eric Andersen [Tue, 4 Jun 2002 13:28:43 +0000 (13:28 -0000)]
Avoid stack munching stdio implementations.
-Erik
Robert Griebl [Sun, 2 Jun 2002 09:36:12 +0000 (09:36 -0000)]
Fixed a realloc bug found by Martin Volf
Manuel Novoa III [Wed, 29 May 2002 19:08:41 +0000 (19:08 -0000)]
Include busybox.h before testing CONFIG_LOCALE_SUPPORT.
Glenn L McGrath [Wed, 29 May 2002 13:45:34 +0000 (13:45 -0000)]
Patch from Randolfe Averty to fixup package conflict checks, cleanup some memory leaks and reorganise dependency checking.
Some further memory leaks fixed by me.
Robert Griebl [Tue, 28 May 2002 21:32:10 +0000 (21:32 -0000)]
Added support for /etc/modules.conf parsing
for now only the 'alias' entries are evaluated
Robert Griebl [Mon, 27 May 2002 22:24:53 +0000 (22:24 -0000)]
Added include for isdigit(); simplified -<num> detection
Eric Andersen [Fri, 24 May 2002 06:59:22 +0000 (06:59 -0000)]
Ensure that insmod supports at least one MODULE_INTERFACE
-Erik
Eric Andersen [Fri, 24 May 2002 06:50:15 +0000 (06:50 -0000)]
Patch from Magnus Damm <damm@opensource.se> to rework things
greatly, and keep the arch specific relocations together,
fixes R_PPC_ADDR32 handling so powerpc can work, and changes the
tlb tables to be linked lists (again so powerpc can work).
Robert Griebl [Wed, 22 May 2002 23:38:12 +0000 (23:38 -0000)]
Made exit code SysV compliant. Also added -s (single pid) flag.
Robert Griebl [Wed, 22 May 2002 23:34:35 +0000 (23:34 -0000)]
Some cleanups, some size reductions and some buffer overflow checks
Most of it based on ideas from vodz
Robert Griebl [Sun, 19 May 2002 19:00:14 +0000 (19:00 -0000)]
Support old-style compress (.Z) files via libbb / unzip( ) calls
(configurable) - When enabled an applet "uncompress" is also made
available (oddname to gunzip)
[the cvs add for this file got lost somehow...]
Tim Riker [Sat, 18 May 2002 09:16:04 +0000 (09:16 -0000)]
ping return 1 if can't ping
Robert Griebl [Fri, 17 May 2002 22:18:04 +0000 (22:18 -0000)]
SUpport old style -[::digit::] options for head and tail
Also make head behave like GNU head (-0/-n 0 is valid)
Robert Griebl [Thu, 16 May 2002 19:14:15 +0000 (19:14 -0000)]
Reduced code size for new -e flag (suggested by vodz)
Eric Andersen [Wed, 15 May 2002 22:19:09 +0000 (22:19 -0000)]
Doh! Remember to close /etc/inittab
Robert Griebl [Wed, 15 May 2002 22:13:47 +0000 (22:13 -0000)]
Support old-style compress (.Z) files via libbb / unzip( ) calls
(configurable) - When enabled an applet "uncompress" is also made
available (oddname to gunzip)
Robert Griebl [Wed, 15 May 2002 21:57:42 +0000 (21:57 -0000)]
gunzip'ing many files to stdout works now
Fixed a missing initialisation and made a for loop more readable.
Robert Griebl [Wed, 15 May 2002 21:45:52 +0000 (21:45 -0000)]
Don't delete source file when decompressing to stdout
This is the normal GNU gunzip behaviour
Robert Griebl [Tue, 14 May 2002 23:42:08 +0000 (23:42 -0000)]
Complete rewrite to support stack loading/unloading with proper
handling of duplicates in the dependencies list.
Robert Griebl [Tue, 14 May 2002 23:36:45 +0000 (23:36 -0000)]
Added support for -Y|--proxy=on/off to wget
Robert Griebl [Tue, 14 May 2002 23:22:06 +0000 (23:22 -0000)]
Add --login support. This is the bash way of starting a shell that should
parse the profile files.
Robert Griebl [Tue, 14 May 2002 23:10:58 +0000 (23:10 -0000)]
This patch adds -e (extended information) to route and -r/-e (show routing
tables/extended information) to netstat.
This makes them behave (more) like their GNU counterparts.
Robert Griebl [Tue, 14 May 2002 23:03:23 +0000 (23:03 -0000)]
This patch adds -e (extended information) to route and -r/-e (show routing
tables/extended information) to netstat.
This makes them behave (more) like their GNU counterparts.
Robert Griebl [Tue, 14 May 2002 22:56:29 +0000 (22:56 -0000)]
Entries with "noauto" options are ignored correctly when mounting all
("mount -a"), but mount fails when these entries are specified explicitly
In these cases the "noauto" option has to be simply ignored.
Eric Andersen [Sun, 5 May 2002 03:40:14 +0000 (03:40 -0000)]
Tom Oehser noticed that we were lacking the SO_REUSEADDR flag.
Eric Andersen [Fri, 3 May 2002 15:48:26 +0000 (15:48 -0000)]
Patch from Robert Griebl <griebl@gmx.de> to support modprobe -r properly,
merged in with the latest and greatest.
Eric Andersen [Fri, 3 May 2002 15:22:42 +0000 (15:22 -0000)]
Make verbose and show_only work as expected
-Erik
Eric Andersen [Fri, 3 May 2002 10:34:35 +0000 (10:34 -0000)]
Patch from Robert Griebl <griebl@gmx.de> to ignore the -s flag
Tim Riker [Wed, 1 May 2002 05:57:16 +0000 (05:57 -0000)]
fix and shrink uuencode
Matt Kraai [Mon, 29 Apr 2002 15:32:32 +0000 (15:32 -0000)]
* archival/gunzip.c (gunzip_file): New.
(gunzip_main): Handle no arguments correctly.
Eric Andersen [Sat, 27 Apr 2002 12:16:48 +0000 (12:16 -0000)]
Update website
Eric Andersen [Sat, 27 Apr 2002 09:19:39 +0000 (09:19 -0000)]
Fix silly combinitorial oversight
Eric Andersen [Sat, 27 Apr 2002 06:06:11 +0000 (06:06 -0000)]
Patch from Cliff L. Biffle <cbiffle@safety.net> to display memory
usage in the ps listing
Eric Andersen [Sat, 27 Apr 2002 04:06:55 +0000 (04:06 -0000)]
uClibc supports struct _res these days...
Eric Andersen [Sat, 27 Apr 2002 01:31:43 +0000 (01:31 -0000)]
Support noerror option
Eric Andersen [Sat, 27 Apr 2002 00:06:47 +0000 (00:06 -0000)]
When the .config file is missing, supply a default one
and run menuconfig
Eric Andersen [Fri, 26 Apr 2002 23:59:12 +0000 (23:59 -0000)]
Add netcat -i option, per patch from Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn@axis.com>
Eric Andersen [Fri, 26 Apr 2002 23:53:10 +0000 (23:53 -0000)]
Add the who applet, supplied by Da Chen <dchen@ayrnetworks.com>
Eric Andersen [Fri, 26 Apr 2002 23:40:09 +0000 (23:40 -0000)]
Ensure that getenv("PATH") stays current, since otherwise cmdedit
(which calls getenv("PATH")) would not operate upon the current
PATH settings, which was really quite iritating.
-Erik
Eric Andersen [Fri, 26 Apr 2002 08:44:17 +0000 (08:44 -0000)]
Fix bugs
Eric Andersen [Fri, 26 Apr 2002 08:00:33 +0000 (08:00 -0000)]
Minor formatting
Tim Riker [Fri, 26 Apr 2002 07:53:39 +0000 (07:53 -0000)]
add missing void, still has issues though
Tim Riker [Fri, 26 Apr 2002 07:41:22 +0000 (07:41 -0000)]
fix from kergoth
Eric Andersen [Fri, 26 Apr 2002 07:20:47 +0000 (07:20 -0000)]
Forward port patch from Przemyslaw Czerpak <druzus@polbox.com>:
1. busybox-telnet dosn't inform server about the size of terminal screen.
In the world of xterminals and frame buffers it's rather horrible
to use fixed 80x24 region in upper-left corner of screen/window.
2. If client sends character 0x0d to the server then sends character 0x0a
the server eat the second byte (0x0a) - it's described in telnet RFC.
Client should send two bytes ( 0x0d + 0x0a or 0x0d + 0x00 ) insted of
one 0x0d byte.
3. busybox telnet implementation wasn't 8bit clean (look at 0xff byte).
I need it because I have to use binray transfer like rz/sz. So when
I resloved the problem (2) I corrected this one two.
This also contains a small cleanup patch from vodz, and some minor editing
by me.
Eric Andersen [Fri, 26 Apr 2002 06:04:01 +0000 (06:04 -0000)]
Reworked by Robert Griebl <griebl@gmx.de> to support proper
module dependancies.
Eric Andersen [Wed, 24 Apr 2002 23:14:06 +0000 (23:14 -0000)]
vodz noted this line (as imported from Debian) is wrong, and has since
been fixed upstream.
Eric Andersen [Wed, 24 Apr 2002 23:08:23 +0000 (23:08 -0000)]
Apply last_patch37 from vodz
Eric Andersen [Wed, 17 Apr 2002 20:21:45 +0000 (20:21 -0000)]
ls could mis-color certain entries when previous commands
had failed. Explicitly 0 out errno to prevent that.
Matt Kraai [Wed, 17 Apr 2002 15:33:24 +0000 (15:33 -0000)]
* networking/wget.c (wget_main): Check return value of safe_fwrite.
Matt Kraai [Mon, 15 Apr 2002 15:01:37 +0000 (15:01 -0000)]
* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard
output.
* testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New.
Eric Andersen [Mon, 15 Apr 2002 07:40:27 +0000 (07:40 -0000)]
Patch from Ben Low <ben@titr.uow.edu.au> to allow tftp to work
with stdin as well as stdout.
Eric Andersen [Sat, 13 Apr 2002 14:48:51 +0000 (14:48 -0000)]
Patch from Jim Treadway -- fix a missing "\" in usage.h
Eric Andersen [Sat, 13 Apr 2002 14:44:42 +0000 (14:44 -0000)]
Silly me
Eric Andersen [Sat, 13 Apr 2002 14:26:44 +0000 (14:26 -0000)]
Teach makedevs to not segfault quite so much
Eric Andersen [Sat, 13 Apr 2002 14:07:32 +0000 (14:07 -0000)]
Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTR
Eric Andersen [Sat, 13 Apr 2002 13:52:13 +0000 (13:52 -0000)]
Cleanup make clean
Eric Andersen [Sat, 13 Apr 2002 13:47:39 +0000 (13:47 -0000)]
Patch from Kevin Hilman <khilman@equator.com> to fix potential
memory corruption from long pathnames in /etc/fstab.
Eric Andersen [Sat, 13 Apr 2002 13:39:48 +0000 (13:39 -0000)]
Add a 'make uninstall' target
Eric Andersen [Sat, 13 Apr 2002 13:32:30 +0000 (13:32 -0000)]
Patch from Jim Treadway <jim@stardot-tech.com> to teach
pidof to not add trailing spaces when not needed.
Eric Andersen [Sat, 13 Apr 2002 13:26:49 +0000 (13:26 -0000)]
Patch from Jim Treadway and Vladimir Oleynik to Add CTRL-K
and fix CTRL-L support for cmdedit.c
Eric Andersen [Sat, 13 Apr 2002 13:18:15 +0000 (13:18 -0000)]
Sed can go into an infinite loop
Eric Andersen [Sat, 13 Apr 2002 13:02:03 +0000 (13:02 -0000)]
Stupid gcc always includes its own builtin strlen()...
Eric Andersen [Sat, 13 Apr 2002 12:33:41 +0000 (12:33 -0000)]
Nice patch from Wolfgang Denk <wd@denx.de> to provide hush with
shell loops (for, while, until) and control operators (||, &&)
Eric Andersen [Sat, 13 Apr 2002 09:30:25 +0000 (09:30 -0000)]
Teach tftp to direct the fetched file to stdout when the
user specifies "-l -"
-Erik
Eric Andersen [Sat, 13 Apr 2002 09:10:34 +0000 (09:10 -0000)]
Rework per how I did things in version in 0.60.3 so it can
properly uncompress multiple files now.
-Erik
Eric Andersen [Sat, 13 Apr 2002 08:43:01 +0000 (08:43 -0000)]
Patch from Laurence Anderson <L.D.Anderson@warwick.ac.uk> for
better tape drive support in tar/cpio by using an intervening
pipe...
Eric Andersen [Sat, 13 Apr 2002 08:31:59 +0000 (08:31 -0000)]
Update some missing copyright notices
Tim Riker [Sat, 13 Apr 2002 05:37:10 +0000 (05:37 -0000)]
make ash prompt the same as other shells if cmdedit and fancyprompt
Eric Andersen [Fri, 12 Apr 2002 12:05:57 +0000 (12:05 -0000)]
Completely rework the config system so that it no longer annoys me to work on
the busybox development tree. This eliminates the use of recursive make, and
once again allows us to run 'make' in a subdirectory with the expected result.
And things are now much faster too. Greatly improved IMHO...
-Erik
Eric Andersen [Fri, 12 Apr 2002 00:28:59 +0000 (00:28 -0000)]
Fix handling of endianness.
-Erik
Eric Andersen [Thu, 11 Apr 2002 20:40:00 +0000 (20:40 -0000)]
Oldnews
Eric Andersen [Sat, 6 Apr 2002 23:16:44 +0000 (23:16 -0000)]
Patch from Edward Betts <edward@debian.org> to add -x switch to du.c
Eric Andersen [Sat, 6 Apr 2002 05:17:57 +0000 (05:17 -0000)]
Apply lash_patch35 from vodz, which brings several nice size_optimizations.
Eric Andersen [Sat, 6 Apr 2002 05:15:46 +0000 (05:15 -0000)]
Fix email addr
Eric Andersen [Wed, 3 Apr 2002 14:30:58 +0000 (14:30 -0000)]
Add fli4l
Matt Kraai [Mon, 1 Apr 2002 16:17:37 +0000 (16:17 -0000)]
* editors/sed.c (process_file): Stop processing deleted lines.
* testsuite/sed/sed-does-not-substitute-in-delete-line: New.