aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-07-10Brand, new sed that uses libc regex routines.Mark Whitley
There is some common code used by both sed & grep that should be put into utility.c as per Mat Kraai's suggestions/patch on the mailing list. Specifically, a common regex_compile() and a regex_subst() function need to be made.
2000-07-10More linux kernel header file removal.Eric Andersen
-Erik
2000-07-10Remove yet more kernel header dependancies.Eric Andersen
-Erik
2000-07-10Remove unused variable.Eric Andersen
-Erik
2000-07-10Remove the problematic CTRLCHAR macro.Eric Andersen
-Erik
2000-07-10Put the GROWBY variable inside the get_line_from_file function, as that is theMark Whitley
only function where it's used and it's always good to keep the namespace clean. :-)
2000-07-10Removed unnecessary #include "regexp.h" line from find.c as per Matt Kraai'sMark Whitley
suggestion on the mailing list.
2000-07-10Function name cleanup.Eric Andersen
-Erik
2000-07-10From Matt Kraai <kraai@alumni.carnegiemellon.edu>:Eric Andersen
Howdy, Bug #1006 reports that ln -s /tmp/foo . does not work correctly. In fact, it appears that any instantiation of ln -s FILE... DIRECTORY does not work. The following patch adds support for this form, which then fixes the particular instance noted in the bug report. In the process, I needed the basename function. This appears in the string.h provided by glibc, but not uC-libc. So I wrote my own to go in utility.c, called get_last_path_component. I also modified the basename utility to use this function. At some point it might be desirous to use the basename from the library if it exists, and otherwise compile our own. But I don't know how to do this. Matt
2000-07-10Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:Eric Andersen
GNU tr complains on the following: $ tr a '' tr: when not truncating set1, string2 must be non-empty BusyBox tr does not complain: $ tr a '' a ^D 0 It should result in an error, not in some spurious output. The attached patch generates an error. Matt
2000-07-10Applied patch from Matt Kraai as per his email:Mark Whitley
However, the case of grep foo$ file didn't work, due to a problem with the flags used in regular expression compilation. The attached patch fixes this problem. ---patch------- Index: grep.c =================================================================== RCS file: /var/cvs/busybox/grep.c,v retrieving revision 1.30 diff -u -r1.30 grep.c --- grep.c 2000/07/04 22:17:01 1.30 +++ grep.c 2000/07/10 08:57:04 @@ -141,8 +141,10 @@ if (argv[optind] == NULL) usage(grep_usage); - /* compile the regular expression */ - reflags = REG_NOSUB; /* we're not going to mess with sub-expressions */ + /* compile the regular expression + * we're not going to mess with sub-expressions, and we need to + * treat newlines right. */ + reflags = REG_NOSUB | REG_NEWLINE; if (ignore_case) reflags |= REG_ICASE; if ((ret = regcomp(&regex, argv[optind], reflags)) != 0) { ---patch------- Thanks, Matt, it works great.
2000-07-09More portability updates. Now compiles cleanly vs glibc, libc5, and uclibcEric Andersen
(except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due to missing stuff in the library). -Erik
2000-07-09include getopt.hEric Andersen
-Erik
2000-07-09Fix a bug in get_line_from_file. If the length of the line is (GROWBY * n) +Eric Andersen
GROWBY - 1, then it writes the null character just after the buffer. Yipe. Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu> Thanks Matt! -Erik
2000-07-09The build depends were too strict. I depended on on debhelper (>= 2.0.80)Eric Andersen
while debhelper 1.1.24 is available for slink. Just forget the dependancy -- it isn't needed. -Erik
2000-07-08Argh. More cross libc cleanup. Should be ok now...Eric Andersen
-Erik
2000-07-08More cleanup on umountEric Andersen
-Erik
2000-07-08Update files to reduce dependance on kernel version...Eric Andersen
-Erik
2000-07-08Add in tinynetEric Andersen
-Erik
2000-07-08Doc updates to remove sfdisk.Eric Andersen
-Erik
2000-07-07Better description of the BB_FEATURE_USE_DEVPS_PATCH option.Eric Andersen
-Erik
2000-07-07Add in my fix for 2.4.x kernels so /proc/mounts will not have uselessEric Andersen
deg entries which break mount, df, and friends. Renamed WillThisGoIntoTheKernel to avoid any confision. -Erik
2000-07-07Removed sfdisk from BusyBox. It was buggy, fat, and we really couldn'tEric Andersen
maintain it very well, so including it was not very appropriate. Those wanting an fdisk are invited to grab a copy from util-linux. -Erik
2000-07-07Added in Matt Kraai.Eric Andersen
-Erik
2000-07-07Fix a dependancy bug for the docs.Eric Andersen
-Erik
2000-07-07Naming fixEric Andersen
-Erik
2000-07-07Recognize Matt's poweroff fix.Eric Andersen
-Erik
2000-07-07Fix for bug #1003 -- BusyBox should now poweroff when asked toEric Andersen
do so... Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu> -Erik
2000-07-07Web page update from Matt Kraai <kraai@alumni.carnegiemellon.edu>Eric Andersen
-Erik
2000-07-07This patch finishes the cleanup of all the commands. It also cleans upEric Andersen
the remaining chapters -- Matt Kraai <kraai@alumni.carnegiemellon.edu> -Erik
2000-07-07Yet another busybox documentation update from Matt Kraai ↵Eric Andersen
<kraai@alumni.carnegiemellon.edu> -Erik
2000-07-06Update 'make release' to remove all the .#filename filesEric Andersen
the CVS leaves lying about... -Erik
2000-07-06Turned some stuff into features that really are features, not apps.Eric Andersen
-Erik
2000-07-06Fix doc building so the dependancies work properly.Eric Andersen
-Erik
2000-07-06* Fixed tar creation support when reading from stdin ('tar -cf - . ')Eric Andersen
thanks to Daniel Quinlan <quinlan@transmeta.com> -Erik
2000-07-06Fixed backspace and delete so they work properly again -- brokenEric Andersen
since 0.44. -Erik
2000-07-06More doc patches from Matt Kraai <kraai@alumni.carnegiemellon.edu>.Eric Andersen
Thanks Matt! -Erik
2000-07-06Remove leftovers of block_device, which disapperared aroundEric Andersen
busybox 0.28. -Erik
2000-07-06Change order.Eric Andersen
-Erik
2000-07-06Added (fixed) the '-n' option to fbset. Renumbered the command parameters toEric Andersen
put a gap between the normal commands and the fancy commands. This makes it cleaner to add normal commands. Patch from Jon McClintock <jonm@bluemug.com>. -Erik
2000-07-06setkeycodes needs get_console_fd(), so if you disable chvt and deallocvt, butEric Andersen
leave setkeycodes active, busybox will not link. Also fix a trivial use-before-initialize warning. Both fixes from Jon McClintock <jonm@bluemug.com>. -Erik
2000-07-06Remove some warning with glibc.Eric Andersen
-Erik
2000-07-06Comment on kill.c change.Eric Andersen
-Erik
2000-07-06Reorganized signal names for better architecture support -- patchEric Andersen
thanks to simon wood <simon@mungewell.uklinux.net> -Erik
2000-07-06DocBook documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>Eric Andersen
-Erik
2000-07-06Had an extra tcsetpgrp.Eric Andersen
-Erik
2000-07-06a few minor cleanups.Eric Andersen
-Erik
2000-07-06Remove MAXNAMLEN and use BUFSIZ instead.Eric Andersen
-Erik
2000-07-05Remove misguided klude around for 2.4.x-test* brokenness. Al ViroEric Andersen
will be removing this stuff from /proc/mounts real soon now I am assured. -Erik
2000-07-05* Fix to tr so it recognizes standard escape sequences. Merged commonEric Andersen
escape seq. code from tr and echo into utility.c. Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>. * This should close Bug #1015. Please test. -Erik