aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* recode functions to shrink sizeMike Frysinger2005-06-119-109/+92
|
* setup the HAVE_* definesMike Frysinger2005-06-111-1/+21
|
* About time to just apply this and kill off the patchesEric Andersen2005-06-094-324/+197
|
* Tito posted a devfsd error message fix. It's highly deprecated and willRob Landley2005-06-071-31/+28
| | | | | | | | | | | | | | | | | | presumably be removed eventually (use udev), but as long as it's in there. Tito says: The sense of this patch is to call: read_config_file_err: #ifdef CONFIG_DEVFSD_VERBOSE msg_logger(((optional == 0 ) && (errno == ENOENT))? DIE : NO_DIE, LOG_ERR, "read config file: %s: %m\n", path); #else if(optional == 0 && errno == ENOENT) exit(EXIT_FAILURE); #endif just after the failure of the call that set errno ( stat and fopen) to avoid false error messages.
* Clean up strings.c to use busybox's option processing. Bug 006, apparently.Rob Landley2005-06-071-71/+54
|
* Patch from Dmitry Zakharov:Rob Landley2005-06-071-2/+1
| | | | | | | | | | | | | | | Charlie Brady wrote: > Here's another awk parsing problem - unary post increment - pre is fine: > >bash-2.05a$ echo 2,3 | gawk -F , '{ $2++ }' >bash-2.05a$ echo 2,3 | /tmp/busybox/busybox awk -F , '{ $2++ }' >awk: cmd. line:1: Unexpected token > Here's a fix for this. There is another problem with constructions like "print (A+B) ++C", I don't know whether somebody uses such constructions (fixing both these problems would require very serious change in awk code).
* Thus spake Brenda J. Butler:Rob Landley2005-06-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were seeing some timeouts when getting files with the busybox tftp client. With tcpdump, we saw that the tftp client was receiving blocks and ack'ing them, but the server was failing to receive the occasional ack. When that happened, the server would send the last block over again, but the tftp client was expecting the next block. This patch allows the client to recover from this situation (it sends an ack for the repeat block but does not write it to the local file). I hope it meets your approval, please don't hesitate to send me comments for improvement. The patch is against "head" in svn, I tested it on an older version of busybox in our environment. It applied cleanly to the older version. Credit for this goes to my co-worker John McCarthy for finding it and me for fixing it (assuming it works for everyone else too). cheerio, bjb
* Shaun Jackman submitted a patch converting an allocation to useRob Landley2005-05-281-5/+7
| | | | | CONFIG_RESERVE_BUFFER. (Rob Landley removed an #ifdef, per discussion on the list.)
* Patch from Shaun Jackman to save a few bytes.Rob Landley2005-05-281-4/+3
|
* Tobias Krawutschke found a bug where the DHCP client would accept packetsRob Landley2005-05-261-0/+3
| | | | | with the wrong ARP address, meaning we could easily get somebody else's IP. That is a bad thing, and this is the minimal two-line fix.
* Add readprofile applet support.Paul Mundt2005-05-205-0/+327
|
* Patch from Colin Watson (mangled slightly by Rob Landley):Rob Landley2005-05-182-6/+24
| | | | | | | | | | This patch implements the 'T' command in sed. This is a GNU extension, but one of the udev hotplug scripts uses it, so I need it in busybox anyway. Includes a test; 'svn add testsuite/sed/sed-branch-conditional-inverted' after applying.
* Doug Swarin pointed out a security bug in the -i option of sed.Rob Landley2005-05-181-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the permissions on the temp file are correct to prevent it from being maliciously mangled by passing strangers, (created with 600, opened O_EXCL, etc), the permissions on the _directory_ might not be, and we re-open the file to convert the filehandle to a FILE * (and automatically get an error message and exit if the directory's read-only or out of space or some such). This opens a potential race condition if somebody's using dnotify on the directory, deletes/renames the tempfile, and drops a symlink or something there. Somebody running sed -i as root in a world writeable directory could do damage. I dug up notes on an earlier discussion where we looked at the security implications of this (unfortunately on the #uclibc channel rather than email; I don't have a transcript, just notes-to-self) which pointed out that if the permissions on the directory allow other people's files to be deleted/renamed then the original file is vulnerable to sabotage anyway. However, there are two cases that discussion apparently didn't take into account: 1) Using another user's permissions to damage files in other directories you can't access (standard symlink attack). 2) Reading data another user couldn't otherwise access by having the new file belong to that other user. This patch uses fdopen to convert the filehandle into a FILE *, rather than reopening the file.
* use more busybox functions and remove redundant codeMike Frysinger2005-05-161-18/+17
|
* make sure we add the local dir to the include pathMike Frysinger2005-05-161-1/+1
|
* Tito pointed out I'd broken -t (argv[optind] can't be before getulflags),Rob Landley2005-05-151-17/+13
| | | | and replaced the use of system() (and resulting security implications).
* Add automatic umount support to eject command. Patch from Tito,Rob Landley2005-05-143-34/+24
| | | | | | | | with tweaks from Mike Frysinger and Rob Landley. Note: this will still fail to umount a path that contains an ' or \ character. Is it worth the extra size to filter for that?
* as Rob Landley pointed out, need to fix the 1 versus i typo in indexingMike Frysinger2005-05-131-1/+1
|
* blah, forgot to save last time to fix whitespacingMike Frysinger2005-05-131-1/+1
|
* remove duplicated code and rework algorithms to end up with smaller codeMike Frysinger2005-05-131-40/+38
|
* use a bunch of if statements since it is a few bytes smaller than a switch; ↵Mike Frysinger2005-05-121-20/+16
| | | | also use bb_xfopen() instead of fopen() so comm doesnt segfault when given non-existant files :(
* err, added 2 to the wrong var :) also touchup the option detection to shrink ↵Mike Frysinger2005-05-121-14/+8
| | | | size
* fix segfault if user only specifies 1 fileMike Frysinger2005-05-121-1/+1
|
* update usage to match actual behaviorMike Frysinger2005-05-121-2/+2
|
* fix whitespace/coding styleMike Frysinger2005-05-121-27/+28
|
* add missing comm.o ruleMike Frysinger2005-05-121-0/+1
|
* whitespace touchupsMike Frysinger2005-05-121-68/+67
|
* This makefile was a mess. Fix it to work as intended.Eric Andersen2005-05-111-11/+11
| | | | -Erik
* Small comm implementatin from Rob Sullivan. Needed to build perl.Rob Landley2005-05-115-0/+177
|
* import ether-wake applet by haveaniceday Bug 252Mike Frysinger2005-05-115-32/+352
|
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵Mike Frysinger2005-05-1111-12/+13
| | | | (BB_GETOPT_ERROR)
* import eject by Peter Willis / Tito RagusaMike Frysinger2005-05-117-178/+112
|
* now that mjn3 explained it to me, add documentation for the 3rd field in ↵Mike Frysinger2005-05-111-5/+12
| | | | long opts
* Patch from Jason Schoon to add IPV6 support to telnetd. Reworked by RobRob Landley2005-05-101-2/+16
| | | | | Landley to remove an #ifdef and move another one out of the flow of code.
* add documentation for long options and touch up the current docs now that i ↵Mike Frysinger2005-05-101-39/+62
| | | | actually understand how to use the function myself :)
* import more libs to prep for new e2fsprogsMike Frysinger2005-05-0930-0/+5277
|
* import ext2fs lib to prep for new e2fsprogsMike Frysinger2005-05-0982-0/+17575
|
* no longer appliesMike Frysinger2005-05-091-4/+0
|
* import base_device.c for fsckMike Frysinger2005-05-091-0/+147
|
* remove unused filesMike Frysinger2005-05-095-271/+0
|
* trim out useless defines and use some busybox funcsMike Frysinger2005-05-091-24/+3
|
* override nls P_() macroMike Frysinger2005-05-091-0/+1
|
* abort if user passes -r or if they dont pass anythingMike Frysinger2005-05-091-3/+8
|
* syntax/whitespace touchupMike Frysinger2005-05-091-2/+2
|
* Patch from Shaun Jackman:Rob Landley2005-05-091-22/+15
| | | | | | | | | | | | | | | | | | > This patch modfies expr to use portable POSIX regex rather than BSD > regex. ... > This updated patch implements an anchored regex by checking that the > match starts at offset 0. More to the point, this patch uses the same regex that sed.c is already using (opportunity to suck in less library code), and even building a dynamically linked busybox with just expr the result is a slightly smaller binary (by 94 bytes, I dunno what nm --size-sort has to say about it because I didn't build with debug info, since that changes the binary size a lot by disabling optimization...) Your mileage may vary. Handle with caution. Do not taunt happy fun ball.
* Manuel points out that if printf needs a flush to act like dprintf, the resultRob Landley2005-05-071-2/+1
| | | | | is bigger. Revert last patch.
* This one's from me. Fix ash "standalone shell".Rob Landley2005-05-071-21/+7
| | | | | | | | | If we exec /proc/self/exe and only fall back to /bin/busybox if /proc isn't there, then we have a reasonable chance of having the standalone shell work even if busybox isn't installed in /bin on the system in question. Still won't work in a chroot environment, but it's an improvement.
* Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.Rob Landley2005-05-071-1/+2
|
* patch by Tito which uses a lot more busybox functions to reduce size nicelyMike Frysinger2005-05-072-49/+37
|
* update e2p target to match condensed filesMike Frysinger2005-05-071-2/+1
|