oweals/busybox.git
17 years agoinetd: indent labels uniformly
Denis Vlasenko [Sat, 24 Mar 2007 12:07:31 +0000 (12:07 -0000)]
inetd: indent labels uniformly

17 years agoAnnounce 1.5.0 and move svn to 1.6.0.svn
Denis Vlasenko [Thu, 22 Mar 2007 23:31:29 +0000 (23:31 -0000)]
Announce 1.5.0 and move svn to 1.6.0.svn

17 years agoThis revision is busybox 1.5.0
Denis Vlasenko [Thu, 22 Mar 2007 22:27:40 +0000 (22:27 -0000)]
This revision is busybox 1.5.0

17 years agoassorted fixes uncovered by randomconfig runs
Denis Vlasenko [Thu, 22 Mar 2007 22:22:10 +0000 (22:22 -0000)]
assorted fixes uncovered by randomconfig runs

17 years agointerface: revert part of commit 18120 (eth aliases work again)
Denis Vlasenko [Thu, 22 Mar 2007 19:35:51 +0000 (19:35 -0000)]
interface: revert part of commit 18120 (eth aliases work again)

17 years agogzip: fix -d option handling
Denis Vlasenko [Thu, 22 Mar 2007 18:56:23 +0000 (18:56 -0000)]
gzip: fix -d option handling

17 years agoifconfig: support (by ignoring it) "inet" before IP address or hostname
Denis Vlasenko [Thu, 22 Mar 2007 18:56:00 +0000 (18:56 -0000)]
ifconfig: support (by ignoring it) "inet" before IP address or hostname

17 years agovi: fix signed char-induced potential bugs
Denis Vlasenko [Wed, 21 Mar 2007 22:31:24 +0000 (22:31 -0000)]
vi: fix signed char-induced potential bugs

17 years agocmp: support 3rd and 4th arguments if DESKTOP=y (needed for gcc build)
Denis Vlasenko [Wed, 21 Mar 2007 22:30:14 +0000 (22:30 -0000)]
cmp: support 3rd and 4th arguments if DESKTOP=y (needed for gcc build)

17 years agoash: fix signal handling
Denis Vlasenko [Wed, 21 Mar 2007 20:17:27 +0000 (20:17 -0000)]
ash: fix signal handling

17 years agoadd info about gcc's sadistic alignment - and how to disable it
Denis Vlasenko [Wed, 21 Mar 2007 10:07:01 +0000 (10:07 -0000)]
add info about gcc's sadistic alignment - and how to disable it

17 years agovi: remove Byte typedef and massive amount of casts.
Denis Vlasenko [Wed, 21 Mar 2007 00:05:35 +0000 (00:05 -0000)]
vi: remove Byte typedef and massive amount of casts.
also optimize many strlen() calls.
if (strlen(buf) <= 0) goto vc1 - ??!!

17 years agovi: support $EXINIT and -c
Denis Vlasenko [Wed, 21 Mar 2007 00:03:42 +0000 (00:03 -0000)]
vi: support $EXINIT and -c

17 years agosyslogd: fix it for small BUFSIZ case
Denis Vlasenko [Tue, 20 Mar 2007 20:03:03 +0000 (20:03 -0000)]
syslogd: fix it for small BUFSIZ case

17 years agosmall doc update
Denis Vlasenko [Tue, 20 Mar 2007 15:53:11 +0000 (15:53 -0000)]
small doc update

17 years agofix accumulated whitespace and indentation damage
Denis Vlasenko [Tue, 20 Mar 2007 11:30:28 +0000 (11:30 -0000)]
fix accumulated whitespace and indentation damage

17 years agoupdate docs
Denis Vlasenko [Tue, 20 Mar 2007 11:08:39 +0000 (11:08 -0000)]
update docs

17 years agodpkg: free_package(NULL) is ok, so don't test for NULL, just free.
Denis Vlasenko [Mon, 19 Mar 2007 21:48:56 +0000 (21:48 -0000)]
dpkg: free_package(NULL) is ok, so don't test for NULL, just free.

17 years agols: fix segfault-if-standalone-shell, add big fat comment.
Denis Vlasenko [Mon, 19 Mar 2007 20:59:20 +0000 (20:59 -0000)]
ls: fix segfault-if-standalone-shell, add big fat comment.

17 years ago- don't automatically select run-parts but point out that this is a system-utility...
Bernhard Reutner-Fischer [Mon, 19 Mar 2007 20:28:03 +0000 (20:28 -0000)]
- don't automatically select run-parts but point out that this is a system-utility in the strict sense.

17 years ago- very minor size tweak.
Bernhard Reutner-Fischer [Mon, 19 Mar 2007 19:54:56 +0000 (19:54 -0000)]
- very minor size tweak.
  TODO: mv to globals, config-out non-busybox dhcp client stuff, reduce string bloat, etc
   text    data     bss     dec     hex filename
   7543       0      28    7571    1d93 networking/ifupdown.o.orig
   7515       0      28    7543    1d77 networking/ifupdown.o

17 years agoexpand documentation
Denis Vlasenko [Mon, 19 Mar 2007 16:04:11 +0000 (16:04 -0000)]
expand documentation

17 years ago- be gentle to the intel compiler and make sure we have __u64 which is needed for...
Bernhard Reutner-Fischer [Mon, 19 Mar 2007 15:15:06 +0000 (15:15 -0000)]
- be gentle to the intel compiler and make sure we have __u64 which is needed for linux/loop.h

17 years agotelnet: finish style cleanup bits
Denis Vlasenko [Mon, 19 Mar 2007 14:52:26 +0000 (14:52 -0000)]
telnet: finish style cleanup bits

17 years agotelnet: someone tried to do data optimization before me. Complete it.
Denis Vlasenko [Mon, 19 Mar 2007 14:47:09 +0000 (14:47 -0000)]
telnet: someone tried to do data optimization before me. Complete it.
   text    data     bss     dec     hex filename
   2558       0     404    2962     b92 busybox.t2/networking/telnet.o
   2542       0       0    2542     9ee busybox.t3/networking/telnet.o

17 years agofdisk: bb_common_bufsiz1 is too small for globals on 64-bit CPU
Denis Vlasenko [Mon, 19 Mar 2007 14:45:10 +0000 (14:45 -0000)]
fdisk: bb_common_bufsiz1 is too small for globals on 64-bit CPU

17 years agofdisk: get rid of _() macro.
Denis Vlasenko [Mon, 19 Mar 2007 14:43:38 +0000 (14:43 -0000)]
fdisk: get rid of _() macro.
Shorten some messages. Stop using stderr - anyone who tries
to use fdisk no-interactively is "strange" anyway.
Improve storage handling in bsd module.
   text    data     bss     dec     hex filename
 728112    1488   33788  763388   ba5fc busybox.t0/busybox
 727248    1488   33372  762108   ba0fc busybox.t1/busybox

17 years agoKim B. Heino writes:
Bernhard Reutner-Fischer [Mon, 19 Mar 2007 13:44:18 +0000 (13:44 -0000)]
Kim B. Heino writes:
When installing a new package with dpkg dependencies are checked
correctly. But when I try to update an existing package, the
dependencies are checked against the old package, not against new
package. Thus the new package can break dependencies.

17 years agomake clean deletes .kernelrelease now
Denis Vlasenko [Sun, 18 Mar 2007 21:45:21 +0000 (21:45 -0000)]
make clean deletes .kernelrelease now
trylink deleted empty linker stderr on success

17 years agoinclude <stddef.h> so that ptrdiff_t is again available
Denis Vlasenko [Sun, 18 Mar 2007 20:33:26 +0000 (20:33 -0000)]
include <stddef.h> so that ptrdiff_t is again available

17 years agoAnnounce 1.4.2
Denis Vlasenko [Sun, 18 Mar 2007 18:21:44 +0000 (18:21 -0000)]
Announce 1.4.2

17 years agomkfs_minix: remove older, less efficient bss reduction trick
Denis Vlasenko [Sun, 18 Mar 2007 14:43:21 +0000 (14:43 -0000)]
mkfs_minix: remove older, less efficient bss reduction trick

17 years agofdisk: move 2k ptes[] array into bb_common_bufsiz1
Denis Vlasenko [Sun, 18 Mar 2007 14:42:45 +0000 (14:42 -0000)]
fdisk: move 2k ptes[] array into bb_common_bufsiz1

17 years agofix inadvertently leaked PWD_BUFFER_SIZE
Denis Vlasenko [Sun, 18 Mar 2007 00:57:15 +0000 (00:57 -0000)]
fix inadvertently leaked PWD_BUFFER_SIZE

17 years agorandom fixes to help text
Denis Vlasenko [Sat, 17 Mar 2007 16:38:21 +0000 (16:38 -0000)]
random fixes to help text

17 years agodont use obsolete function index() as pointed out by src.obsolete.funcs
Mike Frysinger [Sat, 17 Mar 2007 06:29:05 +0000 (06:29 -0000)]
dont use obsolete function index() as pointed out by src.obsolete.funcs

17 years agopunt useless header as pointed out by src.obsolete.headers
Mike Frysinger [Sat, 17 Mar 2007 06:27:38 +0000 (06:27 -0000)]
punt useless header as pointed out by src.obsolete.headers

17 years agofix typo as pointed out by src.obsolete.funcs
Mike Frysinger [Sat, 17 Mar 2007 06:26:51 +0000 (06:26 -0000)]
fix typo as pointed out by src.obsolete.funcs

17 years agosed: fix very obscure case of escaped newline in sed command
Denis Vlasenko [Fri, 16 Mar 2007 23:36:58 +0000 (23:36 -0000)]
sed: fix very obscure case of escaped newline in sed command
(needed for uclibc build, btw). Add testcase for it.

17 years ago- touchup wording a bit
Bernhard Reutner-Fischer [Fri, 16 Mar 2007 11:14:38 +0000 (11:14 -0000)]
- touchup wording a bit

17 years agobuild system: produce link map. Rather useful when you
Denis Vlasenko [Thu, 15 Mar 2007 23:44:10 +0000 (23:44 -0000)]
build system: produce link map. Rather useful when you
are wondering why your busybox is much bigger that you hoped for.

17 years agogunzip: s/unsigned char extra_short/unsigned extra_short/
Denis Vlasenko [Thu, 15 Mar 2007 23:30:18 +0000 (23:30 -0000)]
gunzip: s/unsigned char extra_short/unsigned extra_short/
we can unzip openssh-4.3p2.tar.gz now :)

17 years agomkfs_minix: stop using lots of bss/data.
Denis Vlasenko [Thu, 15 Mar 2007 19:52:42 +0000 (19:52 -0000)]
mkfs_minix: stop using lots of bss/data.
data -3500 bytes, code -300 bytes
keep_data_small: expand/fix

17 years agosyslogd: reduce data/bss usage. Code size is practically the same.
Denis Vlasenko [Thu, 15 Mar 2007 19:50:46 +0000 (19:50 -0000)]
syslogd: reduce data/bss usage. Code size is practically the same.

17 years agogzip: Improve ptr_to_globals trick, allowing gcc
Denis Vlasenko [Thu, 15 Mar 2007 19:48:35 +0000 (19:48 -0000)]
gzip: Improve ptr_to_globals trick, allowing gcc
to optimize better. -480 bytes.

17 years agonetworking/interface.c: was doing really strange caching of fd's
Denis Vlasenko [Thu, 15 Mar 2007 19:46:43 +0000 (19:46 -0000)]
networking/interface.c: was doing really strange caching of fd's
open for getting ifconfig data - ??! Simplified all that. -200 bytes.

17 years agocopy_file: comment out one condition which is always false.
Denis Vlasenko [Thu, 15 Mar 2007 13:33:37 +0000 (13:33 -0000)]
copy_file: comment out one condition which is always false.
Add comment explaining POSIX rules for cp - and why
these rules are dangerous. Provide conditionally compiled code
for both POSIX and safe behaviors, select safe for now.
Code shrunk by ~80 bytes.

17 years agofix TODO: getopt32 should reset optind to 1 itself
Denis Vlasenko [Thu, 15 Mar 2007 13:28:46 +0000 (13:28 -0000)]
fix TODO: getopt32 should reset optind to 1 itself

17 years agomodify ptr_to_globals trick so that we do not violate
Denis Vlasenko [Thu, 15 Mar 2007 00:57:01 +0000 (00:57 -0000)]
modify ptr_to_globals trick so that we do not violate
type safety (well, sort of ;))

17 years agoadjtimex: fix argument types (most importantly, allow negative ones)
Denis Vlasenko [Wed, 14 Mar 2007 23:00:26 +0000 (23:00 -0000)]
adjtimex: fix argument types (most importantly, allow negative ones)

17 years agoswapon: reinstate hole check but reduce it to warning
Denis Vlasenko [Wed, 14 Mar 2007 22:55:39 +0000 (22:55 -0000)]
swapon: reinstate hole check but reduce it to warning
inode_hash: remove unused variable

17 years agoarp, networking/interface.c: eliminate statics
Denis Vlasenko [Wed, 14 Mar 2007 22:11:20 +0000 (22:11 -0000)]
arp, networking/interface.c: eliminate statics
and unneeded on-stack buffers, disable (comment out)
some apparently unused (and buggy) code paths. -700 bytes.

17 years agoget_header_ar: reformatted code, no real changes
Denis Vlasenko [Wed, 14 Mar 2007 22:08:53 +0000 (22:08 -0000)]
get_header_ar: reformatted code, no real changes

17 years agochown, env: stop using statics
Denis Vlasenko [Wed, 14 Mar 2007 22:08:04 +0000 (22:08 -0000)]
chown, env: stop using statics

17 years agomissed hunk of "stop using big static buffer for inode hash"
Denis Vlasenko [Wed, 14 Mar 2007 22:06:57 +0000 (22:06 -0000)]
missed hunk of "stop using big static buffer for inode hash"

17 years agostop using big static buffer for inode hash
Denis Vlasenko [Wed, 14 Mar 2007 22:06:01 +0000 (22:06 -0000)]
stop using big static buffer for inode hash

17 years agostop using (yet another) static buffer
Denis Vlasenko [Wed, 14 Mar 2007 21:56:51 +0000 (21:56 -0000)]
stop using (yet another) static buffer

17 years agowatchdog: don't use static variable
Denis Vlasenko [Wed, 14 Mar 2007 21:55:41 +0000 (21:55 -0000)]
watchdog: don't use static variable

17 years agoudhcp: use fdprintf for pidfile creation (smaller code)
Denis Vlasenko [Wed, 14 Mar 2007 21:54:42 +0000 (21:54 -0000)]
udhcp: use fdprintf for pidfile creation (smaller code)

17 years agocosmetic documentation change
Denis Vlasenko [Wed, 14 Mar 2007 11:50:34 +0000 (11:50 -0000)]
cosmetic documentation change

17 years ago- change option -c to -Z to match newer upstream SElinux conventions
Bernhard Reutner-Fischer [Wed, 14 Mar 2007 08:52:28 +0000 (08:52 -0000)]
- change option -c to -Z to match newer upstream SElinux conventions

17 years agogzip: bbunzip integration fixes
Denis Vlasenko [Wed, 14 Mar 2007 00:08:28 +0000 (00:08 -0000)]
gzip: bbunzip integration fixes

17 years agogzip: use common bbunzip infrastructure - ~700 bytes code less
Denis Vlasenko [Wed, 14 Mar 2007 00:07:51 +0000 (00:07 -0000)]
gzip: use common bbunzip infrastructure - ~700 bytes code less

17 years agogzip: reduce global data footprint, part 3
Denis Vlasenko [Wed, 14 Mar 2007 00:06:51 +0000 (00:06 -0000)]
gzip: reduce global data footprint, part 3

17 years agogzip: reduce global data footprint, part 2
Denis Vlasenko [Wed, 14 Mar 2007 00:06:29 +0000 (00:06 -0000)]
gzip: reduce global data footprint, part 2

17 years agogzip: reduce global data footprint, part 1
Denis Vlasenko [Wed, 14 Mar 2007 00:06:10 +0000 (00:06 -0000)]
gzip: reduce global data footprint, part 1

17 years agofsck_minix: stop using large buffers in bss
Denis Vlasenko [Tue, 13 Mar 2007 22:31:28 +0000 (22:31 -0000)]
fsck_minix: stop using large buffers in bss

17 years agoash: popstackmark is reported trying to pop until NULL
Denis Vlasenko [Tue, 13 Mar 2007 20:55:36 +0000 (20:55 -0000)]
ash: popstackmark is reported trying to pop until NULL
is seen (which isn't possible), prevent this.

17 years agoDo not fail password check if shadow password does not exist -
Denis Vlasenko [Tue, 13 Mar 2007 13:01:14 +0000 (13:01 -0000)]
Do not fail password check if shadow password does not exist -
fall back to ordinary one

Reduced usage of functions returning datain static buffers.
(mostly passwd/group/shadow related):

function                                             old     new   delta
correct_password                                     143     193     +50
sulogin_main                                         490     533     +43
adduser_main                                         732     774     +42
passwd_main                                         1875    1915     +40
addgroup_main                                        330     365     +35
bb_internal_getspnam                                  38       -     -38
bb_internal_fgetpwent                                 38       -     -38
bb_internal_fgetgrent                                 38       -     -38
static.resultbuf                                     168      88     -80
static.buffer                                       1872    1104    -768
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 5/2 up/down: 210/-962)         Total: -752 bytes

17 years agoresize: make it usable in in backticks; have a timeout (if display
Denis Vlasenko [Mon, 12 Mar 2007 23:41:07 +0000 (23:41 -0000)]
resize: make it usable in in backticks; have a timeout (if display
doesn't respond to 'get cursor pos' ESC sequence...)

17 years agoadd missing copyright statements and doc for sv
Denis Vlasenko [Mon, 12 Mar 2007 23:34:52 +0000 (23:34 -0000)]
add missing copyright statements and doc for sv

17 years agosv: make code trivially smaller
Denis Vlasenko [Mon, 12 Mar 2007 23:14:42 +0000 (23:14 -0000)]
sv: make code trivially smaller

17 years agochcon: remove redundant ifs: if(p) free(p)
Denis Vlasenko [Mon, 12 Mar 2007 19:49:07 +0000 (19:49 -0000)]
chcon: remove redundant ifs: if(p) free(p)

17 years agointroduce and use setfscreatecon_or_die
Denis Vlasenko [Mon, 12 Mar 2007 18:22:55 +0000 (18:22 -0000)]
introduce and use setfscreatecon_or_die
(patch by Yuichi Nakamura <ynakam@hitachisoft.jp>)
runcon: *yet another* fix for vda's brainfart :(

17 years agoswapon: random shrinkage
Denis Vlasenko [Mon, 12 Mar 2007 18:16:24 +0000 (18:16 -0000)]
swapon: random shrinkage

17 years agobbunzip: remove extra formatting directives in comments
Denis Vlasenko [Mon, 12 Mar 2007 11:31:17 +0000 (11:31 -0000)]
bbunzip: remove extra formatting directives in comments

17 years agochcon: exclude constraints for impossible option if long opts are off
Denis Vlasenko [Mon, 12 Mar 2007 10:41:23 +0000 (10:41 -0000)]
chcon: exclude constraints for impossible option if long opts are off

17 years agonext portion of selinux updates: chcon, runcon. From
Denis Vlasenko [Sun, 11 Mar 2007 22:16:02 +0000 (22:16 -0000)]
next portion of selinux updates: chcon, runcon. From
Yuichi Nakamura <himainu-ynakam@miomio.jp>
KaiGai Kohei <busybox@kaigai.gr.jp>

17 years agokill superfluous returns at the end of void functions
Denis Vlasenko [Sun, 11 Mar 2007 13:43:10 +0000 (13:43 -0000)]
kill superfluous returns at the end of void functions

17 years agoupdate defconfig
Denis Vlasenko [Sun, 11 Mar 2007 12:29:25 +0000 (12:29 -0000)]
update defconfig

17 years agofix buglets found by randomconfig run
Denis Vlasenko [Sun, 11 Mar 2007 10:56:37 +0000 (10:56 -0000)]
fix buglets found by randomconfig run

17 years agoawk: support multiple -v options
Denis Vlasenko [Sat, 10 Mar 2007 17:22:14 +0000 (17:22 -0000)]
awk: support multiple -v options

17 years agoselinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)
Denis Vlasenko [Sat, 10 Mar 2007 16:58:49 +0000 (16:58 -0000)]
selinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)

17 years agomore: do not mess with "/dev/console" (!);
Denis Vlasenko [Sat, 10 Mar 2007 16:32:14 +0000 (16:32 -0000)]
more: do not mess with "/dev/console" (!);
    fill whole 1st screen (was "screen sans one line");
    fall back to cat if redirected or no ctty
less: fall back to cat if no ctty (was exiting)
resize: cosmetics

17 years agoifupdown: do not complain if !/var/run/ifstate
Denis Vlasenko [Fri, 9 Mar 2007 22:48:08 +0000 (22:48 -0000)]
ifupdown: do not complain if !/var/run/ifstate

17 years agorunsv: random code savings, ~300 bytes
Denis Vlasenko [Fri, 9 Mar 2007 22:46:06 +0000 (22:46 -0000)]
runsv: random code savings, ~300 bytes

17 years agobbunzip: size optimization: ~90 bytes
Denis Vlasenko [Fri, 9 Mar 2007 20:49:55 +0000 (20:49 -0000)]
bbunzip: size optimization: ~90 bytes

17 years ago- update
Bernhard Reutner-Fischer [Fri, 9 Mar 2007 16:56:57 +0000 (16:56 -0000)]
- update

17 years ago- add chrt applet.
Bernhard Reutner-Fischer [Fri, 9 Mar 2007 16:56:38 +0000 (16:56 -0000)]
- add chrt applet.
   text    data     bss     dec     hex filename
    769       0       0     769     301 miscutils/chrt.o
and could use some further shrinkage

17 years agoprintf: allow hex/oct numbers; move functions around
Denis Vlasenko [Fri, 9 Mar 2007 16:43:01 +0000 (16:43 -0000)]
printf: allow hex/oct numbers; move functions around
so that we have no forward declarations

17 years ago- move bbconfig into alphabetical order
Bernhard Reutner-Fischer [Fri, 9 Mar 2007 14:27:50 +0000 (14:27 -0000)]
- move bbconfig into alphabetical order

17 years agodiff: failed to confirm "static bug" in gcc - reinstating statics.
Denis Vlasenko [Fri, 9 Mar 2007 10:08:53 +0000 (10:08 -0000)]
diff: failed to confirm "static bug" in gcc - reinstating statics.
microscopic code improvements.

17 years agoless: handle yet another Home/End key sequence; expand a comment
Denis Vlasenko [Fri, 9 Mar 2007 08:55:23 +0000 (08:55 -0000)]
less: handle yet another Home/End key sequence; expand a comment

17 years ago- add selinux applets to the IMA workaround
Bernhard Reutner-Fischer [Fri, 9 Mar 2007 08:46:31 +0000 (08:46 -0000)]
- add selinux applets to the IMA workaround

17 years agoThis small patch fixes a bug when exclusive options were given
Bernhard Reutner-Fischer [Fri, 9 Mar 2007 08:44:30 +0000 (08:44 -0000)]
This small patch fixes a bug when exclusive options were given
to matchpathcon it should exit. (KaiGai Kohei)

17 years agoadd STANDALONE support
Mike Frysinger [Fri, 9 Mar 2007 08:25:24 +0000 (08:25 -0000)]
add STANDALONE support

17 years agoless: make '/' (regex search) scan input if no matches are found
Denis Vlasenko [Thu, 8 Mar 2007 18:12:01 +0000 (18:12 -0000)]
less: make '/' (regex search) scan input if no matches are found
in input taken so far.

17 years agoless: yet another attempt to make search better
Denis Vlasenko [Thu, 8 Mar 2007 17:52:36 +0000 (17:52 -0000)]
less: yet another attempt to make search better

17 years agoless: fix 'n'ext match: sometimes was going to 999999th line
Denis Vlasenko [Thu, 8 Mar 2007 16:44:32 +0000 (16:44 -0000)]
less: fix 'n'ext match: sometimes was going to 999999th line

17 years agochown: fix comment, fix verbose message
Denis Vlasenko [Thu, 8 Mar 2007 16:14:46 +0000 (16:14 -0000)]
chown: fix comment, fix verbose message