aboutsummaryrefslogtreecommitdiff
path: root/utility.c
AgeCommit message (Collapse)Author
2000-08-21Yet another patch to fixup lsmodEric Andersen
-Erik
2000-08-21Some leftover stuff I forgot to commit for the lsmod change.Eric Andersen
-Erik
2000-08-11Added fix from David Vrabel <dvrabel@arcom.co.uk> for aEric Andersen
buffer overrun in find_real_root_device(), fixing bug #1019 -Erik
2000-08-10Some #include updates.Eric Andersen
-Erik
2000-08-02Merge in two patches from Dave Cinege:Eric Andersen
the first is a cleanup of tar --exclude the second changes mount so mtab works more as it should, and also allows mount to use the traditional short form (i.e. 'mount / -o remount,rw' now works. While inside tar, I changed it to use getopt... -Erik
2000-08-01Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn'tMatt Kraai
exist. Also allow early search termination (per the comments).
2000-07-28More sh updates (with related changes to everything else). SwitchedEric Andersen
to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik
2000-07-19Moved some code and add a coupld #defines to support use of dmalloc.Eric Andersen
-Erik
2000-07-17New message added to messages.c: full_versionPavel Roskin
Used where possible
2000-07-17Moved functions used by "lsmod" from cat.c to utility.cPavel Roskin
Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes
2000-07-17Now it's possible to compile Busybox with only one app definedPavel Roskin
(unless it's lsmod, to be fixed by the next commit)
2000-07-14More cleanups.Eric Andersen
-Erik
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-07-12Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cMark Whitley
(maybe I'll remove it later).
2000-07-12Always report the applet name when doing error reporting.Matt Kraai
2000-07-11Forgot to commit these cleanups it seems.Eric Andersen
-Erik
2000-07-11Applied patch from Matt Kraai which does the following:Mark Whitley
- adds case-insensitive matching in sed s/// epxressions - consolodates common regcomp code in grep & sed into bb_regcomp and put in utility.c - cleans up a bunch of cruft
2000-07-10Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009.Eric Andersen
-Erik
2000-07-10Comment on kernel stuffEric Andersen
-Erik
2000-07-10Remove yet more kernel header dependancies.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-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-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-08Argh. More cross libc cleanup. Should be ok now...Eric Andersen
-Erik
2000-07-08Update files to reduce dependance on kernel version...Eric Andersen
-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-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
2000-06-28Yanked out the cstring_alloc() and cstring_lineFromFile() functions fromMark Whitley
utility.c and replaced them with get_line_from_file() from the new grep.c. Also changed declaration in internal.h and replaced instances of cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested them and they worked fine.
2000-06-28Better cross libc support.Eric Andersen
-Erik
2000-06-26Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries inEric Andersen
/proc/mounts, added a hack to make sysinfo work with both old and new kernels). -Erik
2000-06-12+ utility.cJohn Beppu
CSTRING_BUFFER_LENGTH = 1024 /* so it recurses less often */ + grep.c uses cstring_lineFromFile(), and doesn't ever say Line is too long, anymore
2000-06-12Added a slightly modified version of Ron Alder's insmod patch.Eric Andersen
Very cool stuff. -Erik
2000-06-02Fix /etc/passwd misspelling.Eric Andersen
-Erik
2000-06-02A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik
2000-05-19More libc portability updates, add in the website (which has not beenErik Andersen
archived previously). Wrote 'which' during the meeting today. -Erik
2000-05-17Some more portability updatesErik Andersen
-Erik
2000-05-13So much for my evil optimization. Doesn't seem to work. Will testErik Andersen
more on it later. -Erik
2000-05-12Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen
which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
2000-05-10* cp -fa now works as expected for symlinks (it didn't before)Erik Andersen
* zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik
2000-05-08Fix umount dependency on find_real_root_device_nameErik Andersen
-Erik
2000-05-02More stuffErik Andersen
-Erik
2000-05-01Some accrued fixes/updates.Erik Andersen
* cp/mv now accepts (and ignores) the -f flag, since it always does force anyway * tail can now accept -<num> commands (e.g. -10) for better compatibility with the standard tail command * added a simple id implementation; doesn't support supp. groups yet
2000-04-28Latest and greatest. Some effort at libc5 (aiming towards newlib)Erik Andersen
compatability. -Erik
2000-04-18Fix creation of /linuxrcErik Andersen
-Erik
2000-04-18Really fix the killall segfault this time.Erik Andersen
-Erik
2000-04-18Fix symlink following bug in chmod -R and friends. Allow SYSV styleErik Andersen
'chown foo:bar' in addition to 'chown foo.bar', and fix a bug in the busybox globbing routine such that 'find /dir -name [i]' no longer segfaults. -Erik
2000-04-18Fix stupid bug (wrong variable)Erik Andersen
-Erik
2000-04-18More little stuff.Erik Andersen
-Erik
2000-04-18Fix killallErik Andersen
-Erik