Eric Andersen [Wed, 3 Jul 2002 05:32:02 +0000 (05:32 -0000)]
Patch from Danny Lepage <danny.lepage@cognicase.com> to fix
dutmp for uClibc.
Eric Andersen [Wed, 3 Jul 2002 05:15:23 +0000 (05:15 -0000)]
Patch from till busch <buti@gmx.at> -- unblock all signals
in exec_signal() before calling exec()
Eric Andersen [Wed, 3 Jul 2002 04:54:52 +0000 (04:54 -0000)]
Fix text alignment, thanks to Sander Klein <s.klein@quicknet.nl>
Eric Andersen [Wed, 3 Jul 2002 04:47:43 +0000 (04:47 -0000)]
Cleanup shadow.h stuff so it behaves as intended
-Erik
Eric Andersen [Wed, 3 Jul 2002 04:24:08 +0000 (04:24 -0000)]
Little fix to avoid overflow
Eric Andersen [Wed, 3 Jul 2002 02:52:35 +0000 (02:52 -0000)]
Silly spelling fix
-Erik
Eric Andersen [Tue, 2 Jul 2002 19:14:23 +0000 (19:14 -0000)]
David Frascone <dave@frascone.com> noticed two problems. First, modprobe was
trying to call 'insmod -q', which wasn't supported. Secondly, when modprobe
was fed blank lines from modules.dep, we ended up calling xstrndup(ptr, -1),
which with suitably bad results. David provided a patch to catch the blank
lines, and I have added insmod -q support. So modprobe should work again.
-Erik
Aaron Lehmann [Sun, 23 Jun 2002 22:25:24 +0000 (22:25 -0000)]
Remove advertising clauses in accordance with
ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
Aaron Lehmann [Sun, 23 Jun 2002 22:13:22 +0000 (22:13 -0000)]
inline many functions that are only called once. saves about 300 bytes
on i386. also staticify most functions.
Aaron Lehmann [Sun, 23 Jun 2002 22:00:41 +0000 (22:00 -0000)]
Needs shadow.h; otherwise wont compile without CONFIG_USE_BB_SHADOW
Aaron Lehmann [Sun, 23 Jun 2002 21:56:13 +0000 (21:56 -0000)]
remove cleanUpAndFail, and replace it with exit(). because that's what
it does unless srcMode was set, and srcMode is never set.
Eric Andersen [Sun, 23 Jun 2002 04:50:49 +0000 (04:50 -0000)]
Rework optimization code. Be more compiler aware.
-Erik
Eric Andersen [Sun, 23 Jun 2002 04:24:25 +0000 (04:24 -0000)]
Port over the last of the tinylogin applets
-Erik
Eric Andersen [Sat, 22 Jun 2002 17:49:29 +0000 (17:49 -0000)]
Several login cleanups from vodz
Eric Andersen [Sat, 22 Jun 2002 17:32:58 +0000 (17:32 -0000)]
Apply vodz' last_patch44 -- cleanup several chars to be const, fix
rotten error handling, kill spare \n's, etc
Eric Andersen [Sat, 22 Jun 2002 17:23:45 +0000 (17:23 -0000)]
Kill dead email address
-Erik
Eric Andersen [Sat, 22 Jun 2002 17:20:50 +0000 (17:20 -0000)]
Apply last_patch46 from vodz, to fix buffer overflows noted by
Gerardo Puga, and to optimize for size a little bit. Thanks vodz
Eric Andersen [Sat, 22 Jun 2002 17:15:42 +0000 (17:15 -0000)]
Apply vodz' cleanup for insmod buffer overflows, which was cleaner
than my first effort.
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