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