oweals/busybox.git
18 years agoconvert include/autoconf.h split and include/bbconfigopts.h commands into the new...
Mike Frysinger [Sun, 31 Dec 2006 11:46:19 +0000 (11:46 -0000)]
convert include/autoconf.h split and include/bbconfigopts.h commands into the new cmd style

18 years agoYann E. MORIN. writes: i pity the fool who doesnt use the z length modifier with...
Mike Frysinger [Sun, 31 Dec 2006 11:34:17 +0000 (11:34 -0000)]
Yann E. MORIN. writes: i pity the fool who doesnt use the z length modifier with size_t types

18 years agoabout.html: update maintainer name
Denis Vlasenko [Sat, 30 Dec 2006 22:03:02 +0000 (22:03 -0000)]
about.html: update maintainer name
libbb/Kbuild: less needs xregcomp.o

18 years agofixdep.c: avoit doing memcmp in most cases
Denis Vlasenko [Sat, 30 Dec 2006 21:11:57 +0000 (21:11 -0000)]
fixdep.c: avoit doing memcmp in most cases
uidgid_get.c: add forgotten copyright notice
pwd/grp/shadow: avoid collisions with libc names

18 years agosaw commit of vapier@busybox.net (thanks!),
Denis Vlasenko [Sat, 30 Dec 2006 19:52:28 +0000 (19:52 -0000)]
saw commit of vapier@busybox.net (thanks!),
decided to stop doing FOUR memcmp's per each input character.
I should have fixed this much earlier...

18 years agokill off AUTOCONF_INCLUDED (again) since it tends to get into cat fights with the...
Mike Frysinger [Sat, 30 Dec 2006 19:46:38 +0000 (19:46 -0000)]
kill off AUTOCONF_INCLUDED (again) since it tends to get into cat fights with the kernel headers

18 years agomake sure AUTOCONF_TIMESTAMP is filled up properly ... if user has a timezone of...
Mike Frysinger [Sat, 30 Dec 2006 19:43:35 +0000 (19:43 -0000)]
make sure AUTOCONF_TIMESTAMP is filled up properly ... if user has a timezone of Factory for example, strftime() will overflow the string and leave us without a trailing "\n and all hell breaks loose when we compile

18 years agoprevent buffer underflows with empty lines
Mike Frysinger [Sat, 30 Dec 2006 19:30:20 +0000 (19:30 -0000)]
prevent buffer underflows with empty lines

18 years agoprevent accessing memory that we dont own
Mike Frysinger [Sat, 30 Dec 2006 19:21:48 +0000 (19:21 -0000)]
prevent accessing memory that we dont own

18 years agonext bunch of fixes for bugs found by randconfig
Denis Vlasenko [Sat, 30 Dec 2006 18:42:29 +0000 (18:42 -0000)]
next bunch of fixes for bugs found by randconfig

18 years agodone a dozen of randconfig test. guess what? ALL failed...
Denis Vlasenko [Sat, 30 Dec 2006 17:57:03 +0000 (17:57 -0000)]
done a dozen of randconfig test. guess what? ALL failed...
these are resulting fixes

18 years agofix for uclibc-without-shadow.h compilation
Denis Vlasenko [Sat, 30 Dec 2006 14:46:51 +0000 (14:46 -0000)]
fix for uclibc-without-shadow.h compilation

18 years agowe need to use the compiler driver to invoke LD as LDFLAGS is in the form the compile...
Mike Frysinger [Fri, 29 Dec 2006 23:27:22 +0000 (23:27 -0000)]
we need to use the compiler driver to invoke LD as LDFLAGS is in the form the compiler driver understands, not the form the linker itself understands, so trying to invoke ld directly and passing it LDFLAGS while invoking the compiler driver in other places and passing it LDFLAGS does not work

18 years agoAdd link to post-1.3.1 patches to website
Denis Vlasenko [Thu, 28 Dec 2006 21:44:43 +0000 (21:44 -0000)]
Add link to post-1.3.1 patches to website

18 years ago* precision requires the argument be an integer, not size_t
Mike Frysinger [Thu, 28 Dec 2006 21:41:09 +0000 (21:41 -0000)]
* precision requires the argument be an integer, not size_t

18 years agofix build without shadow support
Denis Vlasenko [Thu, 28 Dec 2006 21:33:30 +0000 (21:33 -0000)]
fix build without shadow support

18 years agobb_xget[pw/gr]nam were horribly misnamed - fixed.
Denis Vlasenko [Thu, 28 Dec 2006 05:44:47 +0000 (05:44 -0000)]
bb_xget[pw/gr]nam were horribly misnamed - fixed.
uidgid_get -> get_uidgid, add additional param
(numeric_ok). Make chown use it.
chown: fix "chown user: ...."
install: fix incorrect use of bb_xget[pw/gr]nam

18 years agonews.html: Fix bad English
Denis Vlasenko [Wed, 27 Dec 2006 09:47:53 +0000 (09:47 -0000)]
news.html: Fix bad English

18 years agofix typo
Denis Vlasenko [Wed, 27 Dec 2006 07:57:29 +0000 (07:57 -0000)]
fix typo

18 years agoAnnounce 1.3.1
Denis Vlasenko [Wed, 27 Dec 2006 05:06:27 +0000 (05:06 -0000)]
Announce 1.3.1

18 years agoash: is_safe_applet mustn't affect disabled applets
Denis Vlasenko [Tue, 26 Dec 2006 21:31:11 +0000 (21:31 -0000)]
ash: is_safe_applet mustn't affect disabled applets

18 years agomerge post-1.3.0 fixes
Denis Vlasenko [Tue, 26 Dec 2006 18:17:42 +0000 (18:17 -0000)]
merge post-1.3.0 fixes

18 years agoproperly export externs thru *.h files
Denis Vlasenko [Tue, 26 Dec 2006 17:40:33 +0000 (17:40 -0000)]
properly export externs thru *.h files

18 years agoadduser: trivial code movement
Denis Vlasenko [Tue, 26 Dec 2006 17:37:38 +0000 (17:37 -0000)]
adduser: trivial code movement

18 years agostyle fixes
Denis Vlasenko [Tue, 26 Dec 2006 10:42:51 +0000 (10:42 -0000)]
style fixes
last xcalloc replaced by xzalloc

18 years agochattr: bugfixes and size reduction
Denis Vlasenko [Tue, 26 Dec 2006 03:36:28 +0000 (03:36 -0000)]
chattr: bugfixes and size reduction

18 years agotrivial size reduction
Denis Vlasenko [Tue, 26 Dec 2006 03:02:25 +0000 (03:02 -0000)]
trivial size reduction

18 years agoleftover of e2fsck surgery
Denis Vlasenko [Tue, 26 Dec 2006 02:51:29 +0000 (02:51 -0000)]
leftover of e2fsck surgery

18 years agoput small subset of e2fsprogs back in the tree:
Denis Vlasenko [Tue, 26 Dec 2006 01:30:59 +0000 (01:30 -0000)]
put small subset of e2fsprogs back in the tree:
lsattr, chattr, fsck. Old e2fsprogs tree is in
e2fsprogs/old_e2fsprogs/*.

18 years agoremove e2fsprogs. Nobody volunteered to clean up that mess
Denis Vlasenko [Tue, 26 Dec 2006 01:25:48 +0000 (01:25 -0000)]
remove e2fsprogs. Nobody volunteered to clean up that mess

18 years agoFix irregular capitalization in usage texts
Denis Vlasenko [Mon, 25 Dec 2006 15:10:32 +0000 (15:10 -0000)]
Fix irregular capitalization in usage texts

18 years agotrim help texts a bit more
Denis Vlasenko [Mon, 25 Dec 2006 14:25:14 +0000 (14:25 -0000)]
trim help texts a bit more

18 years agoless: fix regexp search '/' on large files
Denis Vlasenko [Mon, 25 Dec 2006 01:23:02 +0000 (01:23 -0000)]
less: fix regexp search '/' on large files

18 years agomore usage message cleanups
Denis Vlasenko [Sun, 24 Dec 2006 17:40:16 +0000 (17:40 -0000)]
more usage message cleanups

18 years agoCleanup usage messages (-200 bytes).
Denis Vlasenko [Sun, 24 Dec 2006 16:59:27 +0000 (16:59 -0000)]
Cleanup usage messages (-200 bytes).
Remove busybox_main from applet table since
it is called via separate check

18 years agorandom tiny size savings
Denis Vlasenko [Sun, 24 Dec 2006 15:23:28 +0000 (15:23 -0000)]
random tiny size savings

18 years agosmall stupid changes. no code changes
Denis Vlasenko [Sun, 24 Dec 2006 07:30:09 +0000 (07:30 -0000)]
small stupid changes. no code changes

18 years agomissing piece of prev commit: ndelay_off
Denis Vlasenko [Sun, 24 Dec 2006 07:15:50 +0000 (07:15 -0000)]
missing piece of prev commit: ndelay_off

18 years agoless: implement waiting for input using select(). Rather tricky business.
Denis Vlasenko [Sun, 24 Dec 2006 07:14:17 +0000 (07:14 -0000)]
less: implement waiting for input using select(). Rather tricky business.
But we do not read entire input anymore up-front.

18 years agosum: 40% size reduction (-300 bytes)
Denis Vlasenko [Sat, 23 Dec 2006 15:58:11 +0000 (15:58 -0000)]
sum: 40% size reduction (-300 bytes)
find: one_char -> LONE_CHAR

18 years agosu: fix typo: "argv -= optind" should be +=
Denis Vlasenko [Sat, 23 Dec 2006 02:59:06 +0000 (02:59 -0000)]
su: fix typo: "argv -= optind" should be +=

18 years agouse xbind, xconnect where appropriate.
Denis Vlasenko [Sat, 23 Dec 2006 02:48:44 +0000 (02:48 -0000)]
use xbind, xconnect where appropriate.
small edits to arping

18 years ago#define FEATURE_GETUSERNAME_AND_HOMEDIR should be always #defined
Denis Vlasenko [Sat, 23 Dec 2006 01:21:55 +0000 (01:21 -0000)]
#define FEATURE_GETUSERNAME_AND_HOMEDIR should be always #defined

18 years agofix recognitions of -SIGname signals
Denis Vlasenko [Sat, 23 Dec 2006 01:06:21 +0000 (01:06 -0000)]
fix recognitions of -SIGname signals
(fix by Jacques LUDER <jacques.luder@thalesgroup.com>)

18 years agofind: fix spurious -exec error messages
Denis Vlasenko [Sat, 23 Dec 2006 00:49:10 +0000 (00:49 -0000)]
find: fix spurious -exec error messages
(bug reported by Bernhard Fischer <rep.nop@aon.at>)

18 years agoremove useless casts (type*) xzalloc(...)
Denis Vlasenko [Fri, 22 Dec 2006 18:37:07 +0000 (18:37 -0000)]
remove useless casts (type*) xzalloc(...)

18 years agodpkg: getopt32-ification etc, -100 bytes
Denis Vlasenko [Fri, 22 Dec 2006 18:32:40 +0000 (18:32 -0000)]
dpkg: getopt32-ification etc, -100 bytes

18 years agotail: -50 text bytes
Denis Vlasenko [Fri, 22 Dec 2006 16:06:16 +0000 (16:06 -0000)]
tail: -50 text bytes

18 years agorpm: reformat. was really hard to read
Denis Vlasenko [Fri, 22 Dec 2006 15:03:50 +0000 (15:03 -0000)]
rpm: reformat. was really hard to read

18 years agoconvert "negaite" config option into reversed (INCLUDE_SUSv2)
Denis Vlasenko [Fri, 22 Dec 2006 13:56:36 +0000 (13:56 -0000)]
convert "negaite" config option into reversed (INCLUDE_SUSv2)

18 years agotime: -200 bytes of text
Denis Vlasenko [Fri, 22 Dec 2006 13:43:19 +0000 (13:43 -0000)]
time: -200 bytes of text

18 years agotime: fix option parsing bug, size optimizations
Denis Vlasenko [Fri, 22 Dec 2006 12:36:13 +0000 (12:36 -0000)]
time: fix option parsing bug, size optimizations

18 years agoAlways use /usr/share/udhcpc/default.script ([/usr] was depending on CONFIG_xx)
Denis Vlasenko [Fri, 22 Dec 2006 11:47:19 +0000 (11:47 -0000)]
Always use /usr/share/udhcpc/default.script ([/usr] was depending on CONFIG_xx)

18 years agoremoval of commented-out cruft
Denis Vlasenko [Fri, 22 Dec 2006 00:45:27 +0000 (00:45 -0000)]
removal of commented-out cruft

18 years agotar et al: die if bb_copyfd_size copies less than asked for.
Denis Vlasenko [Fri, 22 Dec 2006 00:21:07 +0000 (00:21 -0000)]
tar et al: die if bb_copyfd_size copies less than asked for.
(we have bb_copyfd_exact_size now for that kind of usage)

18 years agocmdedit: reformat code a bit, no algorithm changes
Denis Vlasenko [Thu, 21 Dec 2006 22:27:10 +0000 (22:27 -0000)]
cmdedit: reformat code a bit, no algorithm changes

18 years agofix type character mixup in command completion
Denis Vlasenko [Thu, 21 Dec 2006 22:24:46 +0000 (22:24 -0000)]
fix type character mixup in command completion

18 years agoless: a few fixes for cases where we overflow status line
Denis Vlasenko [Thu, 21 Dec 2006 17:03:20 +0000 (17:03 -0000)]
less: a few fixes for cases where we overflow status line

18 years agoless: restore TAB display (was showing as inverse I after prev changes :)
Denis Vlasenko [Thu, 21 Dec 2006 15:23:45 +0000 (15:23 -0000)]
less: restore TAB display (was showing as inverse I after prev changes :)

18 years agoless: "(null)" is a bit strange. "standard input" is better :)
Denis Vlasenko [Thu, 21 Dec 2006 13:57:37 +0000 (13:57 -0000)]
less: "(null)" is a bit strange. "standard input" is better :)

18 years agoless: how many different kinds of status line we need, three?!
Denis Vlasenko [Thu, 21 Dec 2006 13:26:54 +0000 (13:26 -0000)]
less: how many different kinds of status line we need, three?!
small fixes. [prev commit also added control char filtering
on input (e.g. regexp input, filename input for 'E' etc)]

18 years agoless: stop dying on bad regexps, quietly pipe data w/o
Denis Vlasenko [Thu, 21 Dec 2006 13:24:58 +0000 (13:24 -0000)]
less: stop dying on bad regexps, quietly pipe data w/o
user interaction if stdout is not a tty.
size optimizations

18 years agointroduce LONE_CHAR (optimized strcmp with one-char string)
Denis Vlasenko [Thu, 21 Dec 2006 13:23:14 +0000 (13:23 -0000)]
introduce LONE_CHAR (optimized strcmp with one-char string)

18 years agotail: fix tail +N
Denis Vlasenko [Thu, 21 Dec 2006 00:43:06 +0000 (00:43 -0000)]
tail: fix tail +N

18 years agoless: total cleanup and bugfix.
Denis Vlasenko [Thu, 21 Dec 2006 00:22:03 +0000 (00:22 -0000)]
less: total cleanup and bugfix.
Doesn't die horribly on binary files anymore.
In fact, they _100%_ work now. Control chars
are in reverse video, including DEL and that idiocy of VT-10x,
Meta-ESC [inventor of which should be prohibited from reproducing].
Regex search is fixed also. When you specify search ('/' key),
control chars turn into dots (unhighlighted),
and found occurrences highlighted instead. This is reversible.
Memory management fixed (was leaky as hell) and optimized.
Linewrapping fixed and thoroughly tested.
Max buffer size made configurable.
~ 600 bytes saved.

18 years agoless: somewhat buggy applet, but nice. Muchly reduced
Denis Vlasenko [Wed, 20 Dec 2006 02:46:48 +0000 (02:46 -0000)]
less: somewhat buggy applet, but nice. Muchly reduced
xstrdup'ing and memory consumption. Made linewrap saner.
regex matching code was awful - still buggy, but not as
leaky as before. Made buffer size configurable. Killed
several static and on-stack buffers. Hopefully eliminated
staircase effect on Ctrl-C (unable to reproduce).

18 years agoremove casts from xmalloc()
Denis Vlasenko [Tue, 19 Dec 2006 23:36:04 +0000 (23:36 -0000)]
remove casts from xmalloc()

18 years agoifupdown: do not print and/or execute empty commands ("").
Denis Vlasenko [Tue, 19 Dec 2006 23:15:46 +0000 (23:15 -0000)]
ifupdown: do not print and/or execute empty commands ("").

18 years agoifupdown: parse() returning NULL and returning "" is not the same,
Denis Vlasenko [Tue, 19 Dec 2006 23:01:33 +0000 (23:01 -0000)]
ifupdown: parse() returning NULL and returning "" is not the same,
it turned out! wow... okay, fixing my buglet...

18 years agou_short, ulong exterminated
Denis Vlasenko [Tue, 19 Dec 2006 20:32:02 +0000 (20:32 -0000)]
u_short, ulong exterminated
fdiskXXX: add a bit of sanity (not enough by far)

18 years agocmdedit: fix my bug, improve code a bit
Denis Vlasenko [Tue, 19 Dec 2006 19:30:37 +0000 (19:30 -0000)]
cmdedit: fix my bug, improve code a bit

18 years ago- use xlisten/xsocket some more. Saves .25 kB
Bernhard Reutner-Fischer [Tue, 19 Dec 2006 16:31:09 +0000 (16:31 -0000)]
- use xlisten/xsocket some more. Saves .25 kB

18 years ago- rename SU_SYSLOG to FEATURE_SU_SYSLOG
Bernhard Reutner-Fischer [Tue, 19 Dec 2006 08:55:38 +0000 (08:55 -0000)]
- rename SU_SYSLOG to FEATURE_SU_SYSLOG

18 years agocmdedit: use qsort for sorting command completion results; style fixes
Denis Vlasenko [Tue, 19 Dec 2006 01:10:25 +0000 (01:10 -0000)]
cmdedit: use qsort for sorting command completion results; style fixes

18 years agopasswd: add option to check passwords for weakness
Denis Vlasenko [Tue, 19 Dec 2006 00:33:53 +0000 (00:33 -0000)]
passwd: add option to check passwords for weakness

18 years agoAdd option to disable command execution from vi & awk
Denis Vlasenko [Tue, 19 Dec 2006 00:29:22 +0000 (00:29 -0000)]
Add option to disable command execution from vi & awk

18 years agosu: make /etc/shells check configurable
Denis Vlasenko [Tue, 19 Dec 2006 00:20:20 +0000 (00:20 -0000)]
su: make /etc/shells check configurable
ash: missing ';'

18 years agomount: add getmntent_r stub for dietlibc
Denis Vlasenko [Mon, 18 Dec 2006 23:07:42 +0000 (23:07 -0000)]
mount: add getmntent_r stub for dietlibc

18 years agoxfuncs.c: dietlibc actually HAS fdprintf!
Denis Vlasenko [Mon, 18 Dec 2006 22:32:45 +0000 (22:32 -0000)]
xfuncs.c: dietlibc actually HAS fdprintf!
platform.h: define strchrnul for dietlibc
ash: stop using few non-standard functions

18 years agonc: add missing cast
Denis Vlasenko [Mon, 18 Dec 2006 22:10:24 +0000 (22:10 -0000)]
nc: add missing cast
xfuncs: add dprintf for dietlibc

18 years agoA bunch of defined(__GLIBC__) added. static-linking warning expanded
Denis Vlasenko [Mon, 18 Dec 2006 21:49:06 +0000 (21:49 -0000)]
A bunch of defined(__GLIBC__) added. static-linking warning expanded

18 years agodu: dietlibc compat fix, style fixes. Thanks to sampo@symlabs.com.
Denis Vlasenko [Mon, 18 Dec 2006 21:22:16 +0000 (21:22 -0000)]
du: dietlibc compat fix, style fixes. Thanks to sampo@symlabs.com.

18 years agoifupdown: strlen(NULL) is a no-no, fixed. Also few micro-optimizations
Denis Vlasenko [Mon, 18 Dec 2006 21:02:00 +0000 (21:02 -0000)]
ifupdown: strlen(NULL) is a no-no, fixed. Also few micro-optimizations

18 years agops: fix buglet, add microoptimization
Denis Vlasenko [Mon, 18 Dec 2006 14:20:01 +0000 (14:20 -0000)]
ps: fix buglet, add microoptimization

18 years agohttpd: we don't have FEATURE_HTTPD_WITHOUT_INETD anymore,
Denis Vlasenko [Sun, 17 Dec 2006 20:18:05 +0000 (20:18 -0000)]
httpd: we don't have FEATURE_HTTPD_WITHOUT_INETD anymore,
remove it from Config.in

18 years agostart_stop_daemon: make code a bit more readable
Denis Vlasenko [Sun, 17 Dec 2006 19:43:10 +0000 (19:43 -0000)]
start_stop_daemon: make code a bit more readable

18 years agood: remove bug-for-bug compat (because the bug was fixed in coreuitls)
Denis Vlasenko [Sun, 17 Dec 2006 19:21:13 +0000 (19:21 -0000)]
od: remove bug-for-bug compat (because the bug was fixed in coreuitls)

18 years agotar: report error if child dies while writing out the end of tarball
Denis Vlasenko [Sun, 17 Dec 2006 19:08:20 +0000 (19:08 -0000)]
tar: report error if child dies while writing out the end of tarball
(e.g. out of disk space).

18 years agostart_stop_daemon: fix bug where any program name was "matching"
Denis Vlasenko [Sun, 17 Dec 2006 17:30:01 +0000 (17:30 -0000)]
start_stop_daemon: fix bug where any program name was "matching"
processes for which readlink(/proc/N/exe) fails

18 years agofix/shorten some usage strings
Denis Vlasenko [Sun, 17 Dec 2006 17:27:56 +0000 (17:27 -0000)]
fix/shorten some usage strings

18 years agotftp: corrupted input packets were killing retransmits - fixed
Denis Vlasenko [Sun, 17 Dec 2006 01:14:08 +0000 (01:14 -0000)]
tftp: corrupted input packets were killing retransmits - fixed

18 years agodiff: comment - explain what happens when hunk fails to apply
Denis Vlasenko [Sun, 17 Dec 2006 00:49:56 +0000 (00:49 -0000)]
diff: comment - explain what happens when hunk fails to apply

18 years agopatch: fix double-free (bug 1120)
Denis Vlasenko [Sun, 17 Dec 2006 00:33:29 +0000 (00:33 -0000)]
patch: fix double-free (bug 1120)

18 years agoinline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
Denis Vlasenko [Sat, 16 Dec 2006 23:49:13 +0000 (23:49 -0000)]
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]

18 years agos/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g
Denis Vlasenko [Sat, 16 Dec 2006 23:48:13 +0000 (23:48 -0000)]
s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g
xstrtou: disallow leading '+'

18 years agowget: smallish optimization
Denis Vlasenko [Sat, 16 Dec 2006 22:19:47 +0000 (22:19 -0000)]
wget: smallish optimization

18 years agodiff: fix -q exit code
Denis Vlasenko [Sat, 16 Dec 2006 22:18:44 +0000 (22:18 -0000)]
diff: fix -q exit code
last_char_is: sacrifice 9 bytes but avoid double-scan

18 years agosite: add link to directory with patches
Denis Vlasenko [Fri, 15 Dec 2006 22:10:07 +0000 (22:10 -0000)]
site: add link to directory with patches

18 years agore-applying first post-1.3.x change
Denis Vlasenko [Fri, 15 Dec 2006 00:59:35 +0000 (00:59 -0000)]
re-applying first post-1.3.x change
version change to 1.4.0.svn

18 years agoback out last change - need to make busybox-1_3-stable branch first
Denis Vlasenko [Fri, 15 Dec 2006 00:02:30 +0000 (00:02 -0000)]
back out last change - need to make busybox-1_3-stable branch first