aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Note that memory allocaiton needs to be cleaned up too.landley2005-06-111-0/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10529 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove com_err.h includesvapier2005-06-113-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10528 69ca8d6d-28ef-0310-b511-8ec308f3f277
* DOS only crapvapier2005-06-112-609/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10527 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import initial fat mke2fsvapier2005-06-115-3/+1536
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import tune2fs supportvapier2005-06-114-3/+54
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix signed/unsigned char pointersvapier2005-06-111-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10524 69ca8d6d-28ef-0310-b511-8ec308f3f277
* oops, we only want to affect local CFLAGSvapier2005-06-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10523 69ca8d6d-28ef-0310-b511-8ec308f3f277
* initial fat tune2fs/findfs/e2label sourcevapier2005-06-111-0/+776
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10522 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace simple is_null func with a memcmp definevapier2005-06-112-51/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10521 69ca8d6d-28ef-0310-b511-8ec308f3f277
* force including of e2fsbb.h and move the HAVE_* defines to itvapier2005-06-111-6/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10520 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move config.h requirement to the actual .depend target rather than the ↵vapier2005-06-111-2/+2
| | | | | | depend alias git-svn-id: svn://busybox.net/trunk/busybox@10518 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure clean removes objects in subdirsvapier2005-06-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10517 69ca8d6d-28ef-0310-b511-8ec308f3f277
* need strings.h for ffs()vapier2005-06-111-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* only define some variables if legacy EXT2FS_ENABLE_SWAPFS is enabledvapier2005-06-113-3/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace simple functions with definesvapier2005-06-112-87/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10514 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace updatesvapier2005-06-111-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace functions with definesvapier2005-06-111-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10512 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace updatesvapier2005-06-111-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10511 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace updatesvapier2005-06-112-8/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10510 69ca8d6d-28ef-0310-b511-8ec308f3f277
* recode functions to shrink sizevapier2005-06-119-109/+92
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* setup the HAVE_* definesvapier2005-06-111-1/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* About time to just apply this and kill off the patchesandersen2005-06-094-324/+197
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito posted a devfsd error message fix. It's highly deprecated and willlandley2005-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. git-svn-id: svn://busybox.net/trunk/busybox@10480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clean up strings.c to use busybox's option processing. Bug 006, apparently.landley2005-06-071-71/+54
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov: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). git-svn-id: svn://busybox.net/trunk/busybox@10478 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Thus spake Brenda J. Butler: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 git-svn-id: svn://busybox.net/trunk/busybox@10477 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman submitted a patch converting an allocation to uselandley2005-05-281-5/+7
| | | | | | | | CONFIG_RESERVE_BUFFER. (Rob Landley removed an #ifdef, per discussion on the list.) git-svn-id: svn://busybox.net/trunk/busybox@10435 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman to save a few bytes.landley2005-05-281-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10433 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tobias Krawutschke found a bug where the DHCP client would accept packetslandley2005-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. git-svn-id: svn://busybox.net/trunk/busybox@10407 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add readprofile applet support.lethal2005-05-205-0/+327
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10350 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Colin Watson (mangled slightly by Rob Landley):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. git-svn-id: svn://busybox.net/trunk/busybox@10347 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doug Swarin pointed out a security bug in the -i option of sed.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. git-svn-id: svn://busybox.net/trunk/busybox@10346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use more busybox functions and remove redundant codevapier2005-05-161-18/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10343 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure we add the local dir to the include pathvapier2005-05-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito pointed out I'd broken -t (argv[optind] can't be before getulflags),landley2005-05-151-17/+13
| | | | | | | and replaced the use of system() (and resulting security implications). git-svn-id: svn://busybox.net/trunk/busybox@10333 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add automatic umount support to eject command. Patch from Tito,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? git-svn-id: svn://busybox.net/trunk/busybox@10325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* as Rob Landley pointed out, need to fix the 1 versus i typo in indexingvapier2005-05-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* blah, forgot to save last time to fix whitespacingvapier2005-05-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10322 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove duplicated code and rework algorithms to end up with smaller codevapier2005-05-131-40/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10321 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use a bunch of if statements since it is a few bytes smaller than a switch; ↵vapier2005-05-121-20/+16
| | | | | | also use bb_xfopen() instead of fopen() so comm doesnt segfault when given non-existant files :( git-svn-id: svn://busybox.net/trunk/busybox@10317 69ca8d6d-28ef-0310-b511-8ec308f3f277
* err, added 2 to the wrong var :) also touchup the option detection to shrink ↵vapier2005-05-121-14/+8
| | | | | | size git-svn-id: svn://busybox.net/trunk/busybox@10316 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix segfault if user only specifies 1 filevapier2005-05-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update usage to match actual behaviorvapier2005-05-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10314 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix whitespace/coding stylevapier2005-05-121-27/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10313 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add missing comm.o rulevapier2005-05-121-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10311 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace touchupsvapier2005-05-121-68/+67
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10310 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This makefile was a mess. Fix it to work as intended.andersen2005-05-111-11/+11
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@10299 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Small comm implementatin from Rob Sullivan. Needed to build perl.landley2005-05-115-0/+177
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10298 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import ether-wake applet by haveaniceday Bug 252vapier2005-05-115-32/+352
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10294 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵vapier2005-05-1111-12/+13
| | | | | | (BB_GETOPT_ERROR) git-svn-id: svn://busybox.net/trunk/busybox@10289 69ca8d6d-28ef-0310-b511-8ec308f3f277