Robert Griebl [Wed, 24 Jul 2002 01:41:30 +0000 (01:41 -0000)]
Add support for /etc/filesystem when searching for an "auto" filesystem
This is bug #1246
Robert Griebl [Wed, 24 Jul 2002 00:56:56 +0000 (00:56 -0000)]
Commited patch from bug #1182
Although ssrat@mailbag.com says this is not GNU behaviour, it really *is*
(man nslookup)
Robert Griebl [Wed, 24 Jul 2002 00:34:48 +0000 (00:34 -0000)]
Patch for bug #1183: Added a -xdev option to find (configurable)
Eric Andersen [Tue, 23 Jul 2002 23:45:11 +0000 (23:45 -0000)]
Fix indentation. Support killall -q, for pcmcia-cs
-Erik
Robert Griebl [Tue, 23 Jul 2002 22:05:47 +0000 (22:05 -0000)]
Added tar -cz support (creating gzipped tar files without a gzip pipe)
Robert Griebl [Sun, 21 Jul 2002 17:33:27 +0000 (17:33 -0000)]
Fixed two compiler warnings
Robert Griebl [Sun, 21 Jul 2002 16:50:49 +0000 (16:50 -0000)]
Initial checkin of a very primitive hwclock replacement
Robert Griebl [Fri, 19 Jul 2002 20:52:21 +0000 (20:52 -0000)]
Applied syslogd fix submitted by Bart Visscher:
I am using BB 0.60.2 in a floppy distro, and the syslog (and logger) is
unable to log the "<" char. This shows up in ppp logfiles. [...]
#logger "<pcomp>" results in "comp>" arriving at the log.
Robert Griebl [Fri, 19 Jul 2002 20:27:11 +0000 (20:27 -0000)]
- Forgot to cvs add bb_asprintf.c (from vodz' patch #50)
- Applied Joel Coltoff's xconnect patch:
On both my host system and with mipsel-linux for my embedded systems
the function getservbyname() gives the port number already in host order.
In fact, this is how it was used by rdate in version 0.60.3. The snapshot
I have of the development tree from July 12, 2002 takes the port number
and stuffs it into htons() before it uses it. This causes bugs in rdate,
telnet and wget. This patch fixes that.
Robert Griebl [Fri, 19 Jul 2002 00:05:54 +0000 (00:05 -0000)]
Applied vodz' patches #49 and #50 (with a small correction in runshell.c)
#49: I found one memory overflow and memory leak in "ln" applet.
Last patch reduced also 54 bytes. ;)
#50: I found bug in loginutils/Makefile.in.
New patch have also new function to libbb and
aplied this to applets and other cosmetic changes.
Robert Griebl [Thu, 18 Jul 2002 23:59:17 +0000 (23:59 -0000)]
Added a compile time option to suppress the "Using fallback.." message
if no busybox.conf file is existant.
Robert Griebl [Tue, 16 Jul 2002 23:50:05 +0000 (23:50 -0000)]
Fix for the totally broken adduser applet (parts/ideas from vodz and tito)
Robert Griebl [Tue, 16 Jul 2002 21:53:59 +0000 (21:53 -0000)]
Don't treat a non-existant/-readable config file as an empty config, but
use the compiled in _BB_SUID_* flags (same as for parse errors)
Eric Andersen [Sun, 14 Jul 2002 15:39:05 +0000 (15:39 -0000)]
Doh!
Eric Andersen [Sat, 13 Jul 2002 06:24:58 +0000 (06:24 -0000)]
Better clarify the CVS tree situation
-Erik
Eric Andersen [Sat, 13 Jul 2002 06:08:39 +0000 (06:08 -0000)]
Try to be more clear about the current two-CVS-trees
situation.
-Erik
Robert Griebl [Fri, 12 Jul 2002 00:04:46 +0000 (00:04 -0000)]
Accept the --passive-ftp cmd.line option. We always use passive ftp mode,
so it doesn't hurt (adds compatibility though)
Eric Andersen [Thu, 11 Jul 2002 11:11:56 +0000 (11:11 -0000)]
Fixup warnings and undefined operations that show up in gcc-3.1
-Erik
Eric Andersen [Thu, 11 Jul 2002 10:40:43 +0000 (10:40 -0000)]
Brad Campbell <brad@seme.com.au> notes that
xconnect.c needs #include <netinet/in.h>
to compile if CONFIG_FEATURE_IPV6 is not defined
Eric Andersen [Mon, 8 Jul 2002 01:40:02 +0000 (01:40 -0000)]
Some minor bits of scrubbing
Eric Andersen [Thu, 4 Jul 2002 00:19:46 +0000 (00:19 -0000)]
Patch from Stewart Brodie <stewart.brodie@pace.co.uk> to fix ash:
When alias support is not configured, ash believes that command parameters
that look like dd's "if=/dev/zero" are requests to set a temporary
environment variable whilst dd is running, even though it appears after the
command name. This is caused by the re-use of the checkalias global variable
to indicate when both alias checking and environment variable checking. The
failure to reset this flag is due to the reset action being performed only
inside the feature check CHECK_ASH_ALIAS. Hence ash works as expected when
aliases are configured in, and fails when not.
Example script using 'date' with different settings of TZ:
# TZ=Europe/London
# export TZ
# date
Thu May 30 17:18:49 BST 2002
# TZ=America/New_York date
Thu May 30 12:19:10 EDT 2002
# date
Thu May 30 17:19:12 BST 2002
# date TZ=America/New_York
Thu May 30 12:19:30 EDT 2002 <----- wrong, should be BST time (or error!)
# date
Thu May 30 17:19:35 BST 2002
Attached is a patch against revision 1.52 of ash.c which moves the checks so
that checkalias is updated regardless of whether CONFIG_ASH_ALIAS is set.
With this patch applied, the command shown above which should generate an
error does generate an error.
I have tested this patch with the 'dd' command too and that now works
correctly.
Eric Andersen [Wed, 3 Jul 2002 23:50:16 +0000 (23:50 -0000)]
This is last_patch48 from vodz. More cleanups, kills a bit
of dead code, fixes one blatent bug.
Eric Andersen [Wed, 3 Jul 2002 23:19:26 +0000 (23:19 -0000)]
Scrub pwd.h and grp.h handling so we don't have to play any
silly games.
-Erik
Eric Andersen [Wed, 3 Jul 2002 19:50:23 +0000 (19:50 -0000)]
tito <farmatito@tiscali.it> noticed that delgroup was actually
setting CONFIG_DELUSER. Oops.
Eric Andersen [Wed, 3 Jul 2002 11:51:44 +0000 (11:51 -0000)]
A patch from Bart Visscher <magick@linux-fan.com> to add an
xconnect helper routine which does:
-address and port resolving
-tries to connect to all resolved addresses until connected
-uses getaddrinfo, so works for IPv6 too
This patch also ports rdate, telnet, and wget to use the new
xconnect function. Thanks Bart!
Eric Andersen [Wed, 3 Jul 2002 11:46:38 +0000 (11:46 -0000)]
This patch from Bart Visscher <magick@linux-fan.com> adds
IPV6 support to busybox. This patch does the following:
* Add IPv6 support to libbb
* Enable IPv6 interface address display
* Add IPv6 config option
* Adds ping6, an adaptation of the ping applet for IPv6
* Adds support routines for ping6:
- xgethostbyname2
- create_icmp6_socket
* Adds ifconfig support for IPv6
* Add support IPv6 to netstat
* Add IPv6 support to route
Thanks Bart!
Eric Andersen [Wed, 3 Jul 2002 11:08:10 +0000 (11:08 -0000)]
Apply last_patch47 from vodz to fix several problems, such as the ash "job
control turned off" bug, console_setup() was called with a closed file
descriptor, setsid() inconsistancy, and silly string handling bugs. I have
modified his patch to allow the askfirst init actions to have a controlling
terminal.
Eric Andersen [Wed, 3 Jul 2002 09:13:21 +0000 (09:13 -0000)]
hide shadow using stuff when CONFIG_FEATURE_SHADOWPASSWDS
is not set
-Erik
Eric Andersen [Wed, 3 Jul 2002 05:55:14 +0000 (05:55 -0000)]
Patch from Martin Volf <volf@dragon.cz> to fix where I had
screwed up the usage messages
Eric Andersen [Wed, 3 Jul 2002 05:44:18 +0000 (05:44 -0000)]
Fix from vodz so that complex init commands actually work
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