53302f80da
Add -i option to sed, to edit files in-place.
Rob Landley
2004-02-18 09:54:15 +00:00
be8a6ae6eb
Fix vstype[] to match VS* defines. Patch from OpenWrt by mbm.
Manuel Novoa III
2004-02-18 09:40:41 +00:00
37aac6489e
Remove the unused CONFIG_FEATURE_HTTPD_SET_CGI_VARS_TO_ENV option.
Eric Andersen
2004-02-17 20:08:11 +00:00
60bb3f31af
Mark Lord writes:
Eric Andersen
2004-02-17 20:04:34 +00:00
01cdb66987
Add the -r option, patch from Rob with some help from myself.
Glenn L McGrath
2004-02-17 12:22:21 +00:00
a8f756fc7f
Remove debugging
Glenn L McGrath
2004-02-17 12:04:13 +00:00
6aa52234e8
Dont strip trailing '/' until _after_ i test to set if its there !
Glenn L McGrath
2004-02-17 11:55:06 +00:00
7b565a0c8a
Patch from Florian Schirmer <jolt@tuxbox.org>. When I rewrote the parser, I overlooked the case of someone wanting to use a valid but empty suid config file.
Manuel Novoa III
2004-02-17 10:16:21 +00:00
c2266bd519
Woops, im getting ahead of myself, we dont have the -r (refernece) option yet
Glenn L McGrath
2004-02-17 07:58:04 +00:00
5f11541bd4
define option names to be clearer, simplify nested if statements, remove un-needed if statement, minor indenting change
Glenn L McGrath
2004-02-17 07:51:31 +00:00
7e8f41cb5b
Avoid naming conflict with symbol in newer glibc headers
Eric Andersen
2004-02-14 21:33:39 +00:00
ec359e9ebb
Accomodate the fact that newer libc versions may in fact not contain query_module and friends and more
Eric Andersen
2004-02-13 08:09:43 +00:00
95b26250a7
oops. Leave the default feature set enbled for now...
Eric Andersen
2004-02-10 01:30:21 +00:00
37032b4d6c
Initial effort at disabling job control as well
Eric Andersen
2004-02-10 01:28:36 +00:00
ff9ad47d79
Support disabling pipe and redirect support
Eric Andersen
2004-02-10 01:07:45 +00:00
a0e4c3f119
Update URL
Eric Andersen
2004-02-09 10:57:04 +00:00
2af7f4c404
Buffalo appears to have resolved their GPL problems
Eric Andersen
2004-02-09 10:01:01 +00:00
5cc90eade5
Richard Kojedzinszky writes:
Eric Andersen
2004-02-06 10:36:08 +00:00
fa06a77040
Patch from vodz, based on bug report from Richard Kojedzinszky:
Eric Andersen
2004-02-06 10:33:19 +00:00
ef8cd3be17
Make the loop support stuff be much less evil, and make it cope with 2.6.x asm/posix_types.h, which has done singularly evil thing by yanking __kernel_dev_t and renaming it. The loop interface was really poorly designed in the first place. The new 64 bit loop interface looks to be somewhat less horrible, too bad it is only present in 2.6.x kernels. -Erik
Eric Andersen
2004-02-06 07:16:36 +00:00
7495b0d4b1
Eliminate use of a kernel scsi header file.
Eric Andersen
2004-02-06 05:26:58 +00:00
68474f3b36
Make sure stdlib.h is always included before dmalloc.h to avoid problems parsing problems.
Manuel Novoa III
2004-02-05 14:45:58 +00:00
d07cf59a98
Vladimir N. Oleynik writes:
Eric Andersen
2004-02-05 13:52:03 +00:00
54426d5297
Vladimir N. Oleynik writes:
Eric Andersen
2004-02-05 13:49:29 +00:00
31d898feff
Elaborate on CONFIG_SELINUX, and explain that most people should not enbable this option.
Eric Andersen
2004-02-05 00:18:26 +00:00
96e9785493
Grammar fix
Eric Andersen
2004-02-04 12:07:40 +00:00
4da3dbb7df
Minor grammar fixup
Eric Andersen
2004-02-04 11:59:48 +00:00
7cce16cf21
Bump version number for release
Eric Andersen
2004-02-04 11:44:58 +00:00
aeea32ca69
Richard Kojedzinszky writes:
Eric Andersen
2004-02-04 11:19:44 +00:00
ef43749e83
Joe.C writes:
Eric Andersen
2004-02-04 11:10:28 +00:00
c71c18957d
Jean Wolter writes:
Eric Andersen
2004-02-04 11:01:19 +00:00
c06f568dda
Rob Landley writes:
Eric Andersen
2004-02-04 10:57:46 +00:00
4575bbf7b8
The variable 'complementaly' used to be allocated with calloc, which zeroed it out during the allocation process. When vodz changed it to be allocated on the stack, he forgot to explicitly zero it, leaving its value filled with whatever used to be sitting on the stack. It would garbage values, depending on the garbage that happened to be sitting on the stack when the function was called. The result was that applets using bb_getopt_ulflags() were showing unpredictable behavior (such as segfaults), which naturally broke many things.
Eric Andersen
2004-02-04 10:48:37 +00:00
5b0d7deb75
Bug fix from Tito.
Glenn L McGrath
2004-02-04 08:27:57 +00:00
16e45d7e29
Vodz last_patch_125_2, this patch have: - synced with dash 0.4.21 - better handle trap "cmds..." SIGINT (strange, i make bad hack for ash and cmdedit, but this work only with this...) - may be haven`t problem with Ctrl-D
Glenn L McGrath
2004-02-04 08:24:39 +00:00
31b98dd097
Rewrite parse_config_file(). Among the old version's problems: No checking for lines that were too long. No checking that fgets returning NULL was actually due to EOF. Various whitespace handling inconsistencies. Bloat (switches and multiple identical function calls). Failure to check for trailing characters in some cases. Dynamicly allocated memory was not free()d on error. Given that this controls suid/sgid behavior, the sloppy coding was really inexcusable. :-(
Manuel Novoa III
2004-02-01 10:03:05 +00:00
083862228a
Use bb_xstrdup() instead of strdup().
Manuel Novoa III
2004-02-01 07:34:28 +00:00
24cb17f9be
Fix http proxy use, bytes were swapped
Glenn L McGrath
2004-01-31 08:08:57 +00:00
35db2281b7
Mention changes to the daily snapshots
Eric Andersen
2004-01-31 06:11:39 +00:00
a3212eb4cc
Update docs for release
Eric Andersen
2004-01-31 05:44:07 +00:00
dfe30032af
Bump version for release
Eric Andersen
2004-01-31 05:27:17 +00:00
ad95373efc
Use standard C99 types
Eric Andersen
2004-01-30 23:45:53 +00:00
1a834be1ce
Use proper C99 types
Eric Andersen
2004-01-30 22:59:50 +00:00
d242079387
Fixup use of 'u_int' to instead use 'unsigned int'
Eric Andersen
2004-01-30 22:56:20 +00:00
dfcb5b0412
s/u_int/uint/g
Eric Andersen
2004-01-30 22:54:20 +00:00
0f56de665c
s/u_int/unsigned int/g s/u_short/unsigned short/g
Eric Andersen
2004-01-30 22:52:27 +00:00
39cdf4e2ab
Use proper C99 types
Eric Andersen
2004-01-30 22:40:05 +00:00
ad84a516bb
Use proper C99 types throughout. So not use silly typedefs.
Eric Andersen
2004-01-30 22:31:58 +00:00
ab26cc3d8a
Avoid symbol naming conflict with libm
Eric Andersen
2004-01-30 22:24:32 +00:00
ebce2daa60
Support new uClibc stdio core.
Manuel Novoa III
2004-01-30 21:44:20 +00:00
f88bb72f1f
Apply a couple of optimizations
Eric Andersen
2004-01-29 22:33:28 +00:00
242ab83499
Teach busybox ps to get the correct uid when displaying stuff
Eric Andersen
2004-01-27 20:17:39 +00:00
82364bb591
New applet, seq. No options, just the basics.
Glenn L McGrath
2004-01-27 09:22:20 +00:00
43112b4b65
Align using spaces to furthurest character and then one tab, now they should always be aligned.
Glenn L McGrath
2004-01-27 07:36:07 +00:00
13cf6626c8
A few little updates, mostly cosmetic
Eric Andersen
2004-01-26 08:23:36 +00:00
63bcf1a55f
Sigh. TRENDware has released source -- only for busybox and udhcp. So despite their not providing kernel source, they have compiled with the requirements for busybox at least...
Eric Andersen
2004-01-26 07:59:42 +00:00
f2ec37902a
Pascal Brisset writes:
Eric Andersen
2004-01-26 07:17:30 +00:00
7018385fe7
Be stricter when converting strings to integers. Should fix the problem reported by Rob.
Manuel Novoa III
2004-01-25 19:47:10 +00:00
bbbe21d6b0
Fix compile error when tab completion disabled
Glenn L McGrath
2004-01-25 08:46:10 +00:00
4766a2d56c
Add the -r option as a synonym of -R
Glenn L McGrath
2004-01-25 05:50:28 +00:00
303e989a11
Add the -h, --dereference option for archive creation.
Glenn L McGrath
2004-01-25 05:48:28 +00:00
ca43b485de
Enable long options, adds 150 bytes.
Glenn L McGrath
2004-01-23 21:57:16 +00:00
2d016a3715
Correct check for only one of K or S options
Glenn L McGrath
2004-01-23 21:43:49 +00:00
654a99b691
Check valid options were given
Glenn L McGrath
2004-01-23 21:40:19 +00:00
711bb92d7c
Dont change ownership unless we created the directory.
Glenn L McGrath
2004-01-23 20:28:53 +00:00
578eff5066
Remove unneeded conditions and logic, fix bug where ownership didnt change. Dont use bb_make_directory it doesnt have the features, and its ugly to work around it.
Glenn L McGrath
2004-01-23 10:57:00 +00:00
475820c9de
last_patch_124 from Vodz, fix an ash bug when alt-1 was pressed, debian bug #228915
Glenn L McGrath
2004-01-22 12:42:23 +00:00
8d44178381
Check one and only one of start, stop are given. Remove some global variables. #define some getopt values.
Glenn L McGrath
2004-01-22 09:04:58 +00:00
85c5152cb8
Vodz, last_patch_123, patch have new version getopt_ulflags. - size reduced 34 bytes - don`t use dynamic memory allocation - small indent correction.
Glenn L McGrath
2004-01-22 07:10:13 +00:00
a1e4a0ef67
Patch from Atsushi Nemoto, recent MIPS kernel headers does not provide PAGE_SHIFT for userland (because now mips-linux kernel supports PAGESIZE other than 4K).
Glenn L McGrath
2004-01-21 11:36:44 +00:00
ee829065cb
Patch by Richard Kojedzinszky, when using END at end of lines it was skipping to next line, cw command was leaving one char in buffer
Glenn L McGrath
2004-01-21 10:59:45 +00:00
eaf5bc0038
Redo getconfigent, save 150 bytes, still small memory leak when parsing invalid entries.
Glenn L McGrath
2004-01-20 15:32:39 +00:00
348672d46d
Patch from Tito, reduce size, merge functions that are only used once.
Glenn L McGrath
2004-01-20 12:57:18 +00:00
15eb39c25a
Stephane Billiart writes:
Eric Andersen
2004-01-18 18:18:33 +00:00
53766c4063
Fix up a couple of bugs i introduced in yesterdays cleanup.
Glenn L McGrath
2004-01-18 08:58:06 +00:00
65b6d8bdb6
Fix a bug where ls -le would print the time twice.
Glenn L McGrath
2004-01-18 05:41:30 +00:00
792cae5f2a
Use bb_getopt_ulflags, save 200-300 bytes
Glenn L McGrath
2004-01-18 05:15:16 +00:00
58a2e0e262
Patch from Leif Lindholm (slightly modified by me), to fix http redirection. Example of incorrect behaviour was the following url, busybox wget didnt get redirected to the busybox url as it should. http://freshmeat.net/redir/busybox/953/url_homepage/www.busybox.net
Glenn L McGrath
2004-01-17 23:07:14 +00:00
036dbaa082
Modify bb_lookup_port to allow the protocol to be specified, allowing /etc/services support for inetd, netcat and tftp.
Glenn L McGrath
2004-01-17 05:03:31 +00:00
b03be7f567
Patch from Arthur Othieno, clarify common options between dpkg and dpkg-deb
Glenn L McGrath
2004-01-17 03:24:05 +00:00
a277e02663
The functions setconfig, enter and bump_nofile were only called once, marge them into the calling function.
Glenn L McGrath
2004-01-17 03:20:46 +00:00
ff6ec8a2ae
Use 1 line for function name and return value, remove dofork define/variable, dont check pid value is < or > than 0 if we know it is 0.
Glenn L McGrath
2004-01-17 02:47:45 +00:00
3e77b4e954
Remove some defined statements
Glenn L McGrath
2004-01-17 01:44:32 +00:00
c3b134f3b7
Changed #define names for common features (superficial)
Glenn L McGrath
2004-01-17 01:26:53 +00:00
2faf306c73
Use bb_get_chomped_line_from_file
Glenn L McGrath
2004-01-17 00:34:31 +00:00
16f94a6722
Minor updates from linux 2.6.1
Eric Andersen
2004-01-16 12:49:06 +00:00
17b4a20a9c
Patch by Tito, reduce size of deallocvt, also make the usage message clearer (from N to [N]) and indirectly (through bb_xgetlarg) adds support for -h ;-)
Glenn L McGrath
2004-01-15 11:50:19 +00:00
67285965f3
Vodz last_patch_122, Check $PATH at runtime to fix tab completion
Glenn L McGrath
2004-01-14 09:34:51 +00:00
6a78631164
Patch by Tito, use bb_xgetlarg, reduce size
Glenn L McGrath
2004-01-14 07:34:37 +00:00
1cda715bbc
Fix a bug where mount could check the wrong device. st_rdev is the correct device ID iff the named file is a character or block special device. Otherwise it is meaningless junk, in which case st_dev should be used. This was done incorrectly, which could cause mount to display bogus mount info. -Erik
Eric Andersen
2004-01-13 11:39:22 +00:00
7c87b67c08
Patch from Bastian Blank, allow the buildtime to be overriden with a different string, used by the debian busybox-cvs to specify the debian date based version number.
Glenn L McGrath
2004-01-13 10:57:32 +00:00
76620620ec
Vodz last_patch_121, syncing with dash_0.4.19, reduce code size.
Glenn L McGrath
2004-01-13 10:19:37 +00:00
dfb6211df3
Patch by Tito, remove some unneeded variables to save some space.
Glenn L McGrath
2004-01-13 10:12:16 +00:00
447bc2d17f
Patch from Matt Kraai to fix debian bug #227081
Glenn L McGrath
2004-01-11 05:20:59 +00:00
716ccb2635
whitespace cleanup
Eric Andersen
2004-01-10 11:29:31 +00:00
8e2f74f5a7
Woody Suwalski writes:
Eric Andersen
2004-01-10 11:25:53 +00:00
95f75a3dcd
Patch from Bastian Blank to fix debian bug #226722, test case: mkdir foo touch foo/bar ln -s bar foo/baz
Glenn L McGrath
2004-01-08 10:51:09 +00:00
1f28b90a9c
Use bb_getopt_ulflags, save 100 bytes and strict argument checking.
Glenn L McGrath
2004-01-07 09:24:06 +00:00
9d65ab2beb
Woody Suwalski writes:
Eric Andersen
2004-01-06 00:07:17 +00:00
66e21fd161
Fix broken #else
Eric Andersen
2004-01-05 23:49:37 +00:00