ff5a9033f9
Reduced the number of "signed vs. unsigned" warnings. Sometimes such warnings matter (esp. on PPC with char default to unsigned)
Pavel Roskin
2000-07-14 16:23:32 +00:00
f626dcbc84
More fixes for "missing initializers"
Pavel Roskin
2000-07-14 15:55:41 +00:00
9027bcf2f4
Fixed a warning about missing initializer
Pavel Roskin
2000-07-14 15:44:25 +00:00
93c0d9f090
The result of getopt() should not be converted to "char" - it breaks on PPC
Pavel Roskin
2000-07-14 15:18:57 +00:00
fad04fdd12
More cleanups. -Erik
Eric Andersen
2000-07-14 06:49:52 +00:00
b870af09ae
Fix argument parsing.
Matt Kraai
2000-07-14 06:47:33 +00:00
d6912c97de
Be more pedantic aboutthe terminating null applet. -Erik
Eric Andersen
2000-07-14 06:29:10 +00:00
58361a44b5
uid and gid were unsigned, but were compared vs signed values (-1) -Erik
Eric Andersen
2000-07-14 06:27:54 +00:00
e7413a9cde
A couple of minor warning cleanups. -Erik
Eric Andersen
2000-07-14 06:19:41 +00:00
d537a95fdb
Use errorMsg rather than fprintf.
Matt Kraai
2000-07-14 01:51:25 +00:00
4ac6cb534d
Fix some stupid memory bugs. -Erik
Eric Andersen
2000-07-14 01:13:37 +00:00
ec10b9d534
Add in redimentary backtick suport (doesn't work properly yet, but is close). -Erik
Eric Andersen
2000-07-14 01:13:11 +00:00
34623db618
It dawned on me that I would need to grow a char buffer one extra char bigger to accomodate a trailing '\n'ewline that I append to it later one. This is only necessary for the case of one inserted, appended, or changed line, but it's still necessary.
Mark Whitley
2000-07-14 00:49:59 +00:00
02008346c0
Added error checking for edit commands; only a beginning address can be specified.
Mark Whitley
2000-07-14 00:13:52 +00:00
94074a980c
Added support for (a)ppend, (i)nsert, and (c)hange commands to sed.
Mark Whitley
2000-07-14 00:00:15 +00:00
496e33feeb
Fixed bug where sed '/foo/p' was printing "invalid command".
Mark Whitley
2000-07-13 22:52:02 +00:00
4f7fe77d07
(Something I should have done in the previous checkin...) Also broke out substitution command execution from do_sed_command() and put it in it's own do_subst_command() function.
Mark Whitley
2000-07-13 20:01:58 +00:00
06f3529ada
Minor code reorg: Changed the interface to index_of_next_unescaped_slash to an interface that seems a little more sensible to me. Also broke out s/// expression parsing into it's own subroutine.
Mark Whitley
2000-07-13 19:58:04 +00:00
156959ea93
Fix uninitialized variable. -Erik
Eric Andersen
2000-07-13 19:49:12 +00:00
f4c022649b
Patch from Marc Nijdam <marc_nijdam@hp.com> > First (of many more) patch of cp_mv to getopt use. I'm using the most > simplistic approach, just get getopt used, then worry about a cleaner > option parsing style using getopt later. > > Marc
Eric Andersen
2000-07-13 18:42:58 +00:00
55380700d8
Added a smallish TODO comment.
Mark Whitley
2000-07-13 17:20:23 +00:00
00143ba921
From Matt Kraai <kraai@alumni.carnegiemellon.edu> > Here is a patch so that tr can handle NULL characters as well. Give it > a shot and let me know what you think. It is against the latest CVS > version. > > In my tests, the following now works as expected. > > tr '\0' '\n' > > Later, > Matt
Eric Andersen
2000-07-13 16:40:41 +00:00
ac48461da9
Correct argument parsing and other minor cleanups.
Matt Kraai
2000-07-13 06:33:12 +00:00
37653aaf9c
Added some smallish comments to help folks understand why we have two tables of builtins and the reasoning behind it.
Mark Whitley
2000-07-12 23:36:17 +00:00
c41e8c840f
Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c (maybe I'll remove it later).
Mark Whitley
2000-07-12 23:35:21 +00:00
6f96e674b9
Patch from Jon McClintock <jonm@bluemug.com> >The attached patch adds the ability to parse the actual mode specifier in >fbset. So now > > fbset -n 640x480-72 > >Will actually work. I don't know if I've reinvented the wheel though...
Eric Andersen
2000-07-12 23:01:04 +00:00
be84cd4ef6
Always report the applet name when doing error reporting.
Matt Kraai
2000-07-12 17:02:35 +00:00
e58771e73c
Use global applet_name instead of local versions.
Matt Kraai
2000-07-12 15:38:49 +00:00
e714bce003
Use global applet_name instead of local versions.
Matt Kraai
2000-07-12 00:53:06 +00:00
3ecbe9f4dc
The applet name isn't constant.
Matt Kraai
2000-07-12 00:43:28 +00:00
97426e082a
Changed verbiage. -Erik
Eric Andersen
2000-07-11 23:06:48 +00:00
8fbaeece53
Replaced projects with products/projects. -Erik
Eric Andersen
2000-07-11 23:05:38 +00:00
68fda241d2
Added the Kerbango Internet Radio to projects/products using BusyBox. -Erik
Eric Andersen
2000-07-11 23:03:40 +00:00
858c1adf2b
Applied patch from Matt Kraai to call destroy_cmd_strs in atexit(), rather than peppering it throughout the code.
Mark Whitley
2000-07-11 21:38:47 +00:00
7719008a85
Added applet_name to contain the applet name.
Matt Kraai
2000-07-11 20:03:24 +00:00
aec27bca98
Final updates for release. -Erik
0_46
Eric Andersen
2000-07-11 18:18:40 +00:00
960be79964
Final update for the release.
Eric Andersen
2000-07-11 18:06:01 +00:00
be909b1cd5
Forgot to commit these cleanups it seems. -Erik
Eric Andersen
2000-07-11 17:52:22 +00:00
d006c9e630
More changelog updates -Erik
Eric Andersen
2000-07-11 17:45:42 +00:00
9ebccb2891
Added changelog entries for grep/sed/regex changes.
Mark Whitley
2000-07-11 17:43:42 +00:00
f1f6d58598
Some changelog updates. -Erik
Eric Andersen
2000-07-11 17:42:56 +00:00
0c838af50b
Re-enable ln -n in the help. -Erik
Eric Andersen
2000-07-11 17:38:27 +00:00
195fa15caf
Another patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>: > > The following patch allows ln -n to function like GNU. It also fixes a > typo with my previous patch to add support for ln FILE DIRECTORY. And > it removes some code that checks the maximum length of the filenames. I > can't figure out why that code is necessary. Anyone know? > > Matt
Eric Andersen
2000-07-11 17:35:32 +00:00
61dc057183
Added 'dumpkmap' to allow people to dump a binary keymap, which can then be loaded in by 'loadkmap' -- submitted by Arne Bernin <arne@matrix.loopback.org> -Erik
Eric Andersen
2000-07-11 17:29:36 +00:00
df5f6ba115
Applied patch from Matt Kraai which does the following: - 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
Mark Whitley
2000-07-11 16:53:56 +00:00
da9841efc1
Fix dead link. -Matt
Matt Kraai
2000-07-11 16:09:01 +00:00
da1d1e763d
Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009. -Erik
Eric Andersen
2000-07-10 23:39:44 +00:00
cc54d12ef7
Removed all trace of hand-tooled regexp routines. Bye bye, baby.
Mark Whitley
2000-07-10 23:07:54 +00:00
dd23b8bb43
Added a rule to make tags files for vi(m).
Mark Whitley
2000-07-10 23:00:47 +00:00
c674d70699
Comment on kernel stuff -Erik
Eric Andersen
2000-07-10 22:57:14 +00:00
6315ce603b
Brand, new sed that uses libc regex routines. 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.
Mark Whitley
2000-07-10 22:55:51 +00:00
85c552035e
More linux kernel header file removal. -Erik
Eric Andersen
2000-07-10 22:46:55 +00:00
9b2297a34e
Remove yet more kernel header dependancies. -Erik
Eric Andersen
2000-07-10 20:08:44 +00:00
a0053735dc
Remove unused variable. -Erik
Eric Andersen
2000-07-10 20:08:09 +00:00
3849f9bfcc
Remove the problematic CTRLCHAR macro. -Erik
Eric Andersen
2000-07-10 19:56:47 +00:00
9a8243aa1e
Put the GROWBY variable inside the get_line_from_file function, as that is the only function where it's used and it's always good to keep the namespace clean. :-)
Mark Whitley
2000-07-10 19:31:31 +00:00
928faac503
Removed unnecessary #include "regexp.h" line from find.c as per Matt Kraai's suggestion on the mailing list.
Mark Whitley
2000-07-10 19:29:09 +00:00
34e1941c32
Function name cleanup. -Erik
Eric Andersen
2000-07-10 18:47:24 +00:00
44735f8744
Applied patch from Matt Kraai as per his email:
Mark Whitley
2000-07-10 15:50:26 +00:00
999bf72f49
More portability updates. Now compiles cleanly vs glibc, libc5, and uclibc (except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due to missing stuff in the library). -Erik
Eric Andersen
2000-07-09 06:59:58 +00:00
e9b527ae48
include getopt.h -Erik
Eric Andersen
2000-07-09 05:56:14 +00:00
161cf93404
Fix a bug in get_line_from_file. If the length of the line is (GROWBY * n) + 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
Eric Andersen
2000-07-09 02:38:01 +00:00
f12724c21a
The build depends were too strict. I depended on on debhelper (>= 2.0.80) while debhelper 1.1.24 is available for slink. Just forget the dependancy -- it isn't needed. -Erik
Eric Andersen
2000-07-09 01:54:33 +00:00
a57ba4db64
Argh. More cross libc cleanup. Should be ok now... -Erik
Eric Andersen
2000-07-08 19:20:49 +00:00
2cd439f7f0
More cleanup on umount -Erik
Eric Andersen
2000-07-08 19:10:29 +00:00
bd22ed8067
Update files to reduce dependance on kernel version... -Erik
Eric Andersen
2000-07-08 18:55:24 +00:00
877a71bbf0
Add in tinynet -Erik
Eric Andersen
2000-07-08 16:19:10 +00:00
9cf44e79aa
Doc updates to remove sfdisk. -Erik
Eric Andersen
2000-07-08 00:09:30 +00:00
8f282f1b02
Better description of the BB_FEATURE_USE_DEVPS_PATCH option. -Erik
Eric Andersen
2000-07-07 23:51:37 +00:00
acecc47261
Add in my fix for 2.4.x kernels so /proc/mounts will not have useless deg entries which break mount, df, and friends. Renamed WillThisGoIntoTheKernel to avoid any confision. -Erik
Eric Andersen
2000-07-07 21:22:19 +00:00
e6b9dfa967
Removed sfdisk from BusyBox. It was buggy, fat, and we really couldn't 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
Eric Andersen
2000-07-07 20:54:30 +00:00
53a955786d
Added in Matt Kraai. -Erik
Eric Andersen
2000-07-07 20:53:16 +00:00
a2c83d885e
Fix a dependancy bug for the docs. -Erik
Eric Andersen
2000-07-07 20:52:56 +00:00
03f9c81cec
Naming fix -Erik
Eric Andersen
2000-07-07 20:37:12 +00:00
4c95a28461
Fix for bug #1003 -- BusyBox should now poweroff when asked to do so... Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu> -Erik
Eric Andersen
2000-07-07 19:30:28 +00:00
2158092344
This patch finishes the cleanup of all the commands. It also cleans up the remaining chapters -- Matt Kraai <kraai@alumni.carnegiemellon.edu> -Erik
Eric Andersen
2000-07-07 19:07:47 +00:00
b0b732bfe4
Update 'make release' to remove all the .#filename files the CVS leaves lying about... -Erik
Eric Andersen
2000-07-06 23:17:16 +00:00
03f4c27bd6
Turned some stuff into features that really are features, not apps. -Erik
Eric Andersen
2000-07-06 23:10:29 +00:00
67536ffa43
Fix doc building so the dependancies work properly. -Erik
Eric Andersen
2000-07-06 22:53:22 +00:00
8845adc545
* Fixed tar creation support when reading from stdin ('tar -cf - . ') thanks to Daniel Quinlan <quinlan@transmeta.com> -Erik
Eric Andersen
2000-07-06 22:51:35 +00:00
02bc25be56
Fixed backspace and delete so they work properly again -- broken since 0.44. -Erik
Eric Andersen
2000-07-06 21:29:32 +00:00
62bb2d02b6
Remove leftovers of block_device, which disapperared around busybox 0.28. -Erik
Eric Andersen
2000-07-06 19:46:22 +00:00
a5dbb39dac
Change order. -Erik
Eric Andersen
2000-07-06 19:11:34 +00:00
c8c10c5715
Added (fixed) the '-n' option to fbset. Renumbered the command parameters to 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
Eric Andersen
2000-07-06 17:23:23 +00:00
f86aee74ce
setkeycodes needs get_console_fd(), so if you disable chvt and deallocvt, but leave setkeycodes active, busybox will not link. Also fix a trivial use-before-initialize warning. Both fixes from Jon McClintock <jonm@bluemug.com>.
Eric Andersen
2000-07-06 17:20:46 +00:00
b1e379f7f3
Remove some warning with glibc. -Erik
Eric Andersen
2000-07-06 17:08:38 +00:00
78eab2f6c6
Comment on kill.c change. -Erik
Eric Andersen
2000-07-06 17:06:08 +00:00
3cfa9ec09c
Reorganized signal names for better architecture support -- patch thanks to simon wood <simon@mungewell.uklinux.net> -Erik
Eric Andersen
2000-07-06 17:05:33 +00:00
b2731b11ef
Had an extra tcsetpgrp. -Erik
Eric Andersen
2000-07-06 16:56:56 +00:00
1e03add675
a few minor cleanups. -Erik
Eric Andersen
2000-07-06 09:56:35 +00:00
5d893b6beb
Remove MAXNAMLEN and use BUFSIZ instead. -Erik
Eric Andersen
2000-07-06 01:57:20 +00:00
89bc256c94
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro will be removing this stuff from /proc/mounts real soon now I am assured. -Erik
Eric Andersen
2000-07-05 19:29:59 +00:00
f7cf2f7ef9
* Fix to tr so it recognizes standard escape sequences. Merged common 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
Eric Andersen
2000-07-05 17:26:35 +00:00