aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* import eject by Peter Willis / Tito Ragusavapier2005-05-117-178/+112
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* now that mjn3 explained it to me, add documentation for the 3rd field in ↵vapier2005-05-111-5/+12
| | | | | | long opts git-svn-id: svn://busybox.net/trunk/busybox@10287 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jason Schoon to add IPV6 support to telnetd. Reworked by Roblandley2005-05-101-2/+16
| | | | | | | | Landley to remove an #ifdef and move another one out of the flow of code. git-svn-id: svn://busybox.net/trunk/busybox@10286 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add documentation for long options and touch up the current docs now that i ↵vapier2005-05-101-39/+62
| | | | | | actually understand how to use the function myself :) git-svn-id: svn://busybox.net/trunk/busybox@10285 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import more libs to prep for new e2fsprogsvapier2005-05-0930-0/+5277
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10281 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import ext2fs lib to prep for new e2fsprogsvapier2005-05-0982-0/+17575
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10280 69ca8d6d-28ef-0310-b511-8ec308f3f277
* no longer appliesvapier2005-05-091-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import base_device.c for fsckvapier2005-05-091-0/+147
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10278 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove unused filesvapier2005-05-095-271/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10277 69ca8d6d-28ef-0310-b511-8ec308f3f277
* trim out useless defines and use some busybox funcsvapier2005-05-091-24/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10276 69ca8d6d-28ef-0310-b511-8ec308f3f277
* override nls P_() macrovapier2005-05-091-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10275 69ca8d6d-28ef-0310-b511-8ec308f3f277
* abort if user passes -r or if they dont pass anythingvapier2005-05-091-3/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10274 69ca8d6d-28ef-0310-b511-8ec308f3f277
* syntax/whitespace touchupvapier2005-05-091-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10273 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman: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. git-svn-id: svn://busybox.net/trunk/busybox@10272 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Manuel points out that if printf needs a flush to act like dprintf, the resultlandley2005-05-071-2/+1
| | | | | | | | is bigger. Revert last patch. git-svn-id: svn://busybox.net/trunk/busybox@10268 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This one's from me. Fix ash "standalone shell".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. git-svn-id: svn://busybox.net/trunk/busybox@10264 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.landley2005-05-071-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* patch by Tito which uses a lot more busybox functions to reduce size nicelyvapier2005-05-072-49/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10262 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update e2p target to match condensed filesvapier2005-05-071-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10261 69ca8d6d-28ef-0310-b511-8ec308f3f277
* patch by Tito which unifies common get/set functions into 1 get/set function ↵vapier2005-05-074-144/+39
| | | | | | and cuts down on the size used significantly :) git-svn-id: svn://busybox.net/trunk/busybox@10260 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add/remove defines to handle more e2fsprogsvapier2005-05-071-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10259 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use shared busybox error messages to save a few bytesvapier2005-05-071-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10258 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make the exec (-e) an optional feature of netcatvapier2005-05-063-18/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In bug 247, haveaniceday writes:vapier2005-05-062-2/+22
| | | | | | | | The option "-w secs" adds a timeout for writing. git-svn-id: svn://busybox.net/trunk/busybox@10253 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tweak the "pretty lsmod for 2.6" patch to be seperately selectable.landley2005-05-042-5/+14
| | | | | | | Patch from Takeharu Kato. git-svn-id: svn://busybox.net/trunk/busybox@10248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert the uptime() removal. Let the list sort it out...landley2005-05-044-5/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10247 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman:landley2005-05-044-14/+5
| | | | | | | | | Replace uptime with time(NULL). time is more portable than uptime and eliminates the need to define uptime, reducing code size slightly. git-svn-id: svn://busybox.net/trunk/busybox@10245 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Takeharu Kato's patch added 2.6 support to lsmod; this changes menuconfiglandley2005-05-041-7/+7
| | | | | | | | dependencies so 2.6 support depends on insmod or lsmod... git-svn-id: svn://busybox.net/trunk/busybox@10244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Takeharu Kato said:landley2005-05-031-1/+42
| | | | | | | | | | I found that lsmod in busybox does not support linux-2.6. I fix this issue(it is caused by changes of /proc/modules format). If you use lsmod in busybox with kernel-2.6, please use this patch. git-svn-id: svn://busybox.net/trunk/busybox@10243 69ca8d6d-28ef-0310-b511-8ec308f3f277