aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-07-08Some minor bits of scrubbingEric Andersen
2002-07-04Patch from Stewart Brodie <stewart.brodie@pace.co.uk> to fix ash:Eric Andersen
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.
2002-07-03This is last_patch48 from vodz. More cleanups, kills a bitEric Andersen
of dead code, fixes one blatent bug.
2002-07-03Scrub pwd.h and grp.h handling so we don't have to play anyEric Andersen
silly games. -Erik
2002-07-03tito <farmatito@tiscali.it> noticed that delgroup was actuallyEric Andersen
setting CONFIG_DELUSER. Oops.
2002-07-03A patch from Bart Visscher <magick@linux-fan.com> to add anEric Andersen
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!
2002-07-03This patch from Bart Visscher <magick@linux-fan.com> addsEric Andersen
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!
2002-07-03Apply last_patch47 from vodz to fix several problems, such as the ash "jobEric Andersen
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.
2002-07-03hide shadow using stuff when CONFIG_FEATURE_SHADOWPASSWDSEric Andersen
is not set -Erik
2002-07-03Patch from Martin Volf <volf@dragon.cz> to fix where I hadEric Andersen
screwed up the usage messages
2002-07-03Fix from vodz so that complex init commands actually workEric Andersen
2002-07-03Patch from Danny Lepage <danny.lepage@cognicase.com> to fixEric Andersen
dutmp for uClibc.
2002-07-03Patch from till busch <buti@gmx.at> -- unblock all signalsEric Andersen
in exec_signal() before calling exec()
2002-07-03Fix text alignment, thanks to Sander Klein <s.klein@quicknet.nl>Eric Andersen
2002-07-03Cleanup shadow.h stuff so it behaves as intendedEric Andersen
-Erik
2002-07-03Little fix to avoid overflowEric Andersen
2002-07-03Silly spelling fixEric Andersen
-Erik
2002-07-02David Frascone <dave@frascone.com> noticed two problems. First, modprobe wasEric Andersen
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
2002-06-23Remove advertising clauses in accordance withAaron Lehmann
ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
2002-06-23inline many functions that are only called once. saves about 300 bytesAaron Lehmann
on i386. also staticify most functions.
2002-06-23Needs shadow.h; otherwise wont compile without CONFIG_USE_BB_SHADOWAaron Lehmann
2002-06-23remove cleanUpAndFail, and replace it with exit(). because that's whatAaron Lehmann
it does unless srcMode was set, and srcMode is never set.
2002-06-23Rework optimization code. Be more compiler aware.Eric Andersen
-Erik
2002-06-23Port over the last of the tinylogin appletsEric Andersen
-Erik
2002-06-22Several login cleanups from vodzEric Andersen
2002-06-22Apply vodz' last_patch44 -- cleanup several chars to be const, fixEric Andersen
rotten error handling, kill spare \n's, etc
2002-06-22Kill dead email addressEric Andersen
-Erik
2002-06-22Apply last_patch46 from vodz, to fix buffer overflows noted byEric Andersen
Gerardo Puga, and to optimize for size a little bit. Thanks vodz
2002-06-22Apply vodz' cleanup for insmod buffer overflows, which was cleanerEric Andersen
than my first effort.
2002-06-22Major revamp. I've been trying to clean up the code. the bzerror stuffAaron Lehmann
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.
2002-06-18As noted by Yves Lavoie ing. <yves.lavoie.ing@sympatico.ca>, don'tEric Andersen
lose the last letter of the module name.
2002-06-15Fix a potential macro expansion problem... isspace can beEric Andersen
a macro causing a double decrement...
2002-06-15Don't use pointless GNU-ismsEric Andersen
2002-06-11Patch from Simon Krahnke:Robert Griebl
I wrote a patch for busybox for our company's (www.lisa.de) private use. [...] To sed it adds the '!'-inversion of addresses.
2002-06-11* testsuite/sed/sed-recurses-properly: Mark XFAIL.Matt Kraai
2002-06-11* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.Matt Kraai
2002-06-08vodz' last_patch42_2, which is an updated fix for buffer overflowsEric Andersen
noted by Gerardo Puga
2002-06-06If config file can not be parsed, use compiled in BB_SUID_... values as aRobert Griebl
fallback method
2002-06-06Fix buffer overflows noted by Gerardo PugaEric Andersen
-Erik
2002-06-06Fix buffer overflows noted by Gerardo PugaEric Andersen
-Erik
2002-06-06Fix a buffer overflow found by Gerardo Puga <gpuga@gioia.ing.unlp.edu.ar>Eric Andersen
-Erik
2002-06-06Lets give this a try...Eric Andersen
2002-06-06Email addr fixEric Andersen
2002-06-06Patch from Gyepi SAM <gyepi@praxis-sw.com>:Eric Andersen
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
2002-06-06Patch from Gyepi SAM <gyepi@praxis-sw.com>:Eric Andersen
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
2002-06-06Patch from vodz to only setenv PATH when PATH changes, which is muchEric Andersen
smarter than my quick fix.
2002-06-06Per discussion with vodz, Tim's changes do not seem to make sense.Eric Andersen
Revert them. -Erik
2002-06-06last_patch41 from vodz to fix stty -F and similarEric Andersen
2002-06-05plug fd leak noticed by Russ DillEric Andersen
-Erik
2002-06-04Bigger patch for (partial) tinylogin integrationRobert Griebl
- 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]