platform/upstream/busybox.git
17 years agogrep: "grep -h pattern file1 file2" ignored -h
Denis Vlasenko [Sun, 22 Oct 2006 11:42:51 +0000 (11:42 -0000)]
grep: "grep -h pattern file1 file2" ignored -h
(precluded kernel's "make modules")

17 years agocp: update help text
Denis Vlasenko [Sun, 22 Oct 2006 10:05:01 +0000 (10:05 -0000)]
cp: update help text

17 years agocp: add support for -s, -l. Fix free(nonmalloc) bug.
Denis Vlasenko [Sat, 21 Oct 2006 23:40:20 +0000 (23:40 -0000)]
cp: add support for -s, -l. Fix free(nonmalloc) bug.
    Add doc on POSIX's rules on -i and -f (insane!).
ln: make "ln dangling_symlink new_link" work.

17 years agowatch: execute command thru shell, not fork/exec. Other fixes
Denis Vlasenko [Fri, 20 Oct 2006 23:48:30 +0000 (23:48 -0000)]
watch: execute command thru shell, not fork/exec. Other fixes

17 years agochpst: add overlooked copyright statement
Denis Vlasenko [Fri, 20 Oct 2006 19:40:44 +0000 (19:40 -0000)]
chpst: add overlooked copyright statement

17 years agoraidautorun: new applet, by:
Denis Vlasenko [Fri, 20 Oct 2006 19:39:48 +0000 (19:39 -0000)]
raidautorun: new applet, by:
Thomas Jarosch (email?) and
Bernhard Fischer <rep.nop@aon.at>

17 years agoreadlink: do not emit errors if file doesnt not exist / not a link
Denis Vlasenko [Fri, 20 Oct 2006 18:36:55 +0000 (18:36 -0000)]
readlink: do not emit errors if file doesnt not exist / not a link
getopt32: add =N support

17 years agoAdded compile-time warning for STATIC+GLIBC build
Denis Vlasenko [Fri, 20 Oct 2006 13:42:57 +0000 (13:42 -0000)]
Added compile-time warning for STATIC+GLIBC build

17 years agomessage string changes, mostly for consistency, also -32 bytes in .rodata
Denis Vlasenko [Fri, 20 Oct 2006 13:28:22 +0000 (13:28 -0000)]
message string changes, mostly for consistency, also -32 bytes in .rodata

17 years ago- remove duplicate flags (-funsigned-char -fno-builtin-strlen)
Bernhard Reutner-Fischer [Fri, 20 Oct 2006 12:21:17 +0000 (12:21 -0000)]
- remove duplicate flags (-funsigned-char -fno-builtin-strlen)

17 years agobuild system: (try to) get rid of bb_config.h hack
Denis Vlasenko [Thu, 19 Oct 2006 22:17:44 +0000 (22:17 -0000)]
build system: (try to) get rid of bb_config.h hack

17 years agobuild system: check for ENABLE_, USE_ and SKIP_ (not only for CONFIG_)
Denis Vlasenko [Thu, 19 Oct 2006 22:14:58 +0000 (22:14 -0000)]
build system: check for ENABLE_, USE_ and SKIP_ (not only for CONFIG_)

17 years agomove usage_compressed.h generation into applets/
Denis Vlasenko [Thu, 19 Oct 2006 22:12:47 +0000 (22:12 -0000)]
move usage_compressed.h generation into applets/

17 years agoapplets/applets.o must be rebuilt if usage.h is modified.
Denis Vlasenko [Thu, 19 Oct 2006 22:11:06 +0000 (22:11 -0000)]
applets/applets.o must be rebuilt if usage.h is modified.

17 years agoscripts/usage.c: de-uglify #includes
Denis Vlasenko [Thu, 19 Oct 2006 22:10:07 +0000 (22:10 -0000)]
scripts/usage.c: de-uglify #includes

17 years agoconsole-tools/resize.c is apparently leftover from a reverted patch.
Eric Andersen [Thu, 19 Oct 2006 22:02:29 +0000 (22:02 -0000)]
console-tools/resize.c is apparently leftover from a reverted patch.
Since it is a 0 length file, it gets nuked by 'make distclean' so
I suppose might as well kill it off properly.

17 years agomount: support user mounts if CONFIG_DESKTOP
Denis Vlasenko [Mon, 16 Oct 2006 22:39:51 +0000 (22:39 -0000)]
mount: support user mounts if CONFIG_DESKTOP

17 years agomdev: reduce excessive indentation
Denis Vlasenko [Mon, 16 Oct 2006 19:39:37 +0000 (19:39 -0000)]
mdev: reduce excessive indentation

17 years agostrip -> $(STRIP); fix "unused variable" warning
Denis Vlasenko [Mon, 16 Oct 2006 18:24:57 +0000 (18:24 -0000)]
strip -> $(STRIP); fix "unused variable" warning
(patch by Diekema, Jon (AGRE) <Jon.Diekema@smiths-aerospace.com>)

17 years agoash: fix segfault in ash.
Denis Vlasenko [Mon, 16 Oct 2006 01:33:16 +0000 (01:33 -0000)]
ash: fix segfault in ash.
patch by walter harms <wharms@bfs.de>

17 years agonc: fix 2 my own buglets, and few someone else's too.
Denis Vlasenko [Mon, 16 Oct 2006 01:10:28 +0000 (01:10 -0000)]
nc: fix 2 my own buglets, and few someone else's too.

17 years agogrep: -r didn't close files, producing "Too many open files"
Denis Vlasenko [Sun, 15 Oct 2006 18:38:01 +0000 (18:38 -0000)]
grep: -r didn't close files, producing "Too many open files"

17 years agotelnetd: check ptsname() for NULL
Denis Vlasenko [Sun, 15 Oct 2006 18:22:05 +0000 (18:22 -0000)]
telnetd: check ptsname() for NULL

17 years agowget: xatoi's were oversealous ("200 OK" isn't a number)
Denis Vlasenko [Sun, 15 Oct 2006 17:05:55 +0000 (17:05 -0000)]
wget: xatoi's were oversealous ("200 OK" isn't a number)

17 years agofdisk: compilation fix
Denis Vlasenko [Sat, 14 Oct 2006 16:16:03 +0000 (16:16 -0000)]
fdisk: compilation fix

17 years agogrep: fix combination of -r and -h
Denis Vlasenko [Sat, 14 Oct 2006 14:51:59 +0000 (14:51 -0000)]
grep: fix combination of -r and -h

17 years agogrep: add support for -r
Denis Vlasenko [Sat, 14 Oct 2006 14:24:30 +0000 (14:24 -0000)]
grep: add support for -r

17 years agosulogin: add support for $SUSHELL & $sushell
Denis Vlasenko [Sat, 14 Oct 2006 11:47:02 +0000 (11:47 -0000)]
sulogin: add support for $SUSHELL & $sushell

17 years agomodprobe: fix for 2.4 kernels - by
Denis Vlasenko [Sat, 14 Oct 2006 11:12:20 +0000 (11:12 -0000)]
modprobe: fix for 2.4 kernels - by
Yann E. MORIN <yann.morin.1998@anciens.enib.fr>

17 years agoadd open_read_close() and similar stuff
Denis Vlasenko [Sat, 14 Oct 2006 02:23:43 +0000 (02:23 -0000)]
add open_read_close() and similar stuff

17 years agoxread/write can use full_read/write (smaller code)
Denis Vlasenko [Thu, 12 Oct 2006 22:44:13 +0000 (22:44 -0000)]
xread/write can use full_read/write (smaller code)

17 years agobb_get_[chomped]line_from_file wasn't descriptive enough.
Denis Vlasenko [Thu, 12 Oct 2006 22:43:20 +0000 (22:43 -0000)]
bb_get_[chomped]line_from_file wasn't descriptive enough.
Renaming...

17 years agocut, mount: small improvements
Denis Vlasenko [Thu, 12 Oct 2006 22:42:33 +0000 (22:42 -0000)]
cut, mount: small improvements

17 years agostyle fixes
Denis Vlasenko [Thu, 12 Oct 2006 20:06:18 +0000 (20:06 -0000)]
style fixes

17 years agofdisk: separate sun/aix/etc code into #included files
Denis Vlasenko [Thu, 12 Oct 2006 19:30:44 +0000 (19:30 -0000)]
fdisk: separate sun/aix/etc code into #included files

17 years agosmall style fixes
Denis Vlasenko [Thu, 12 Oct 2006 19:29:44 +0000 (19:29 -0000)]
small style fixes

17 years agoexecable: no need to check getenv for NULL, it works anyway.
Denis Vlasenko [Thu, 12 Oct 2006 06:15:13 +0000 (06:15 -0000)]
execable: no need to check getenv for NULL, it works anyway.

17 years agoexecable.c: forgot to do "svn add" again...
Denis Vlasenko [Thu, 12 Oct 2006 06:12:11 +0000 (06:12 -0000)]
execable.c: forgot to do "svn add" again...

17 years agoifupdown: stop emitting annoying/misleading error messages.
Denis Vlasenko [Wed, 11 Oct 2006 22:16:56 +0000 (22:16 -0000)]
ifupdown: stop emitting annoying/misleading error messages.
Patch by Gabriel Somlo <somlo at cmu.edu>

17 years agohush.c: stop using __FILE__ (bad in out-of-tree builds)
Denis Vlasenko [Wed, 11 Oct 2006 21:38:33 +0000 (21:38 -0000)]
hush.c: stop using __FILE__ (bad in out-of-tree builds)

17 years agobuild system: fix build in separate obj tree
Denis Vlasenko [Wed, 11 Oct 2006 21:24:42 +0000 (21:24 -0000)]
build system: fix build in separate obj tree

17 years agonmeter: new applet. ~4k
Denis Vlasenko [Wed, 11 Oct 2006 20:59:02 +0000 (20:59 -0000)]
nmeter: new applet. ~4k
Fix build proble on x86_64

17 years agood: provide full-blown od from coreutils if CONFIG_DESKTOP
Denis Vlasenko [Tue, 10 Oct 2006 23:26:05 +0000 (23:26 -0000)]
od: provide full-blown od from coreutils if CONFIG_DESKTOP

17 years agofixes from Vladimir Dronnikov <dronnikov@gmail.ru>
Denis Vlasenko [Tue, 10 Oct 2006 21:00:47 +0000 (21:00 -0000)]
fixes from Vladimir Dronnikov <dronnikov@gmail.ru>

17 years ago- add option -t
Bernhard Reutner-Fischer [Tue, 10 Oct 2006 15:28:41 +0000 (15:28 -0000)]
- add option -t
  mkinitrd and mkinitramfs both require -t.

17 years agobuild system: fix for non-i386 builds
Denis Vlasenko [Mon, 9 Oct 2006 19:47:38 +0000 (19:47 -0000)]
build system: fix for non-i386 builds

17 years agostart_stop_daemon: add -N <nice> compat
Denis Vlasenko [Sun, 8 Oct 2006 23:36:17 +0000 (23:36 -0000)]
start_stop_daemon: add -N <nice> compat
[re]nice: add support for -nNNN w/o spaces, -NNN (nice only),
          simplified code

17 years agocorrect largefile support, add comments about it.
Denis Vlasenko [Sun, 8 Oct 2006 17:54:47 +0000 (17:54 -0000)]
correct largefile support, add comments about it.

17 years agoattempt to regularize atoi mess.
Denis Vlasenko [Sun, 8 Oct 2006 12:49:22 +0000 (12:49 -0000)]
attempt to regularize atoi mess.

17 years agodd: make it recognize not only 'k' but 'K' too;
Denis Vlasenko [Sat, 7 Oct 2006 16:24:46 +0000 (16:24 -0000)]
dd: make it recognize not only 'k' but 'K' too;
make it (partially) CONFIG_LFS-aware

17 years agoawk: && -> & in "n->info && OPCLSMASK" - fixes bug 1067
Denis Vlasenko [Sat, 7 Oct 2006 15:16:19 +0000 (15:16 -0000)]
awk: && -> & in "n->info && OPCLSMASK" - fixes bug 1067

17 years agoeject: remove unmounting. It is buggy for many non-trivial
Denis Vlasenko [Sat, 7 Oct 2006 15:00:29 +0000 (15:00 -0000)]
eject: remove unmounting. It is buggy for many non-trivial
mounts, and can be done as shell script.

17 years agowget: don't be careless with xstrdup'ing
Denis Vlasenko [Sat, 7 Oct 2006 14:28:55 +0000 (14:28 -0000)]
wget: don't be careless with xstrdup'ing

17 years agowget: fix download of URLs like:
Denis Vlasenko [Sat, 7 Oct 2006 14:28:28 +0000 (14:28 -0000)]
wget: fix download of URLs like:
http://busybox.net?var=a/b
http://busybox.net?login=john@doe
http://busybox.net#test/test

17 years agobuild system: do not generate include/linux
Denis Vlasenko [Fri, 6 Oct 2006 16:14:12 +0000 (16:14 -0000)]
build system: do not generate include/linux

17 years agobuild system: remove loeftover (two empty dirs)
Denis Vlasenko [Fri, 6 Oct 2006 13:51:04 +0000 (13:51 -0000)]
build system: remove loeftover (two empty dirs)

17 years agodnsd fix; option_mask32 added. dnsd needs more love.
Denis Vlasenko [Fri, 6 Oct 2006 09:49:47 +0000 (09:49 -0000)]
dnsd fix; option_mask32 added. dnsd needs more love.

17 years agochpst: fix vda's silly mistakes
Denis Vlasenko [Fri, 6 Oct 2006 08:54:49 +0000 (08:54 -0000)]
chpst: fix vda's silly mistakes
Patch by Vladimir Dronnikov <dronnikov@gmail.ru>

17 years agoeject: -T fix
Denis Vlasenko [Thu, 5 Oct 2006 23:12:49 +0000 (23:12 -0000)]
eject: -T fix

17 years agohttpd: add -u user[:grp] support
Denis Vlasenko [Thu, 5 Oct 2006 22:50:22 +0000 (22:50 -0000)]
httpd: add -u user[:grp] support

17 years agowhich: -84 bytes
Denis Vlasenko [Thu, 5 Oct 2006 21:10:53 +0000 (21:10 -0000)]
which: -84 bytes

17 years agomake defconfig now works
Denis Vlasenko [Thu, 5 Oct 2006 18:26:35 +0000 (18:26 -0000)]
make defconfig now works

17 years agoyet another fixlet: make clean/distclean/mrproper
Denis Vlasenko [Thu, 5 Oct 2006 17:42:55 +0000 (17:42 -0000)]
yet another fixlet: make clean/distclean/mrproper

17 years agofixing build system overhaul fallout...
Denis Vlasenko [Thu, 5 Oct 2006 17:11:08 +0000 (17:11 -0000)]
fixing build system overhaul fallout...

17 years agobuild system: small optimization
Denis Vlasenko [Thu, 5 Oct 2006 10:26:05 +0000 (10:26 -0000)]
build system: small optimization

17 years agobuild system overhaul
Denis Vlasenko [Thu, 5 Oct 2006 10:17:08 +0000 (10:17 -0000)]
build system overhaul

17 years agobb_applet_name -> applet_name
Denis Vlasenko [Tue, 3 Oct 2006 21:00:43 +0000 (21:00 -0000)]
bb_applet_name -> applet_name

17 years agogetopt_ulflags -> getopt32.
Denis Vlasenko [Tue, 3 Oct 2006 21:00:06 +0000 (21:00 -0000)]
getopt_ulflags -> getopt32.
It is impossible to formulate sane ABI based on
size of ulong because it can be 32-bit or 64-bit.
Basically it means that you cannot portably use
more that 32 option chars in one call anyway...
Make it explicit.

17 years agorename bb_default_error_retval -> xfunc_error_retval
Denis Vlasenko [Tue, 3 Oct 2006 20:28:06 +0000 (20:28 -0000)]
rename bb_default_error_retval -> xfunc_error_retval

17 years agofdformat: remove redundant check
Denis Vlasenko [Tue, 3 Oct 2006 19:57:50 +0000 (19:57 -0000)]
fdformat: remove redundant check

17 years agolots of silly indent fixes
Denis Vlasenko [Tue, 3 Oct 2006 19:56:34 +0000 (19:56 -0000)]
lots of silly indent fixes

17 years agorandom style fixes
Denis Vlasenko [Tue, 3 Oct 2006 19:02:20 +0000 (19:02 -0000)]
random style fixes

17 years agotraceroute: fix compilation if netinet/protocols.h is missing
Denis Vlasenko [Tue, 3 Oct 2006 18:19:02 +0000 (18:19 -0000)]
traceroute: fix compilation if netinet/protocols.h is missing

17 years agoYeah, yeah... I forgot about 'svn add'... fixing that
Denis Vlasenko [Tue, 3 Oct 2006 17:52:24 +0000 (17:52 -0000)]
Yeah, yeah... I forgot about 'svn add'... fixing that

17 years agorunit/chpst: "change process state" utility
Denis Vlasenko [Tue, 3 Oct 2006 15:57:40 +0000 (15:57 -0000)]
runit/chpst: "change process state" utility
It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k

17 years agotraceroute: do not look up icmp protocol# in /etc, it is well-known :)
Denis Vlasenko [Tue, 3 Oct 2006 10:47:35 +0000 (10:47 -0000)]
traceroute: do not look up icmp protocol# in /etc, it is well-known :)

17 years agoifupdown: Debian users contributed improvement to it
Denis Vlasenko [Mon, 2 Oct 2006 20:57:10 +0000 (20:57 -0000)]
ifupdown: Debian users contributed improvement to it

17 years agoeject: -T (implements single button open/close)
Denis Vlasenko [Mon, 2 Oct 2006 20:49:25 +0000 (20:49 -0000)]
eject: -T (implements single button open/close)

17 years agomount: accept and ignore -s (sloppy) option.
Denis Vlasenko [Mon, 2 Oct 2006 18:52:49 +0000 (18:52 -0000)]
mount: accept and ignore -s (sloppy) option.
needed for compatibility with Linux automounter.

17 years agosed: -e options were handled in reverse order. fix that.
Denis Vlasenko [Sun, 1 Oct 2006 21:37:40 +0000 (21:37 -0000)]
sed: -e options were handled in reverse order. fix that.

17 years agosed: unbreak multiple -e, -f option handling (my fault)
Denis Vlasenko [Sun, 1 Oct 2006 21:05:12 +0000 (21:05 -0000)]
sed: unbreak multiple -e, -f option handling (my fault)

17 years agogzip: add a bit of comment. The code itself
Denis Vlasenko [Sun, 1 Oct 2006 16:44:04 +0000 (16:44 -0000)]
gzip: add a bit of comment. The code itself
is too bloated to work on it...

17 years agog[un]zip: add support for -v (verbose).
Denis Vlasenko [Sun, 1 Oct 2006 15:55:11 +0000 (15:55 -0000)]
g[un]zip: add support for -v (verbose).
Add CONFIG_DESKTOP, almost all bloat from this change
is hidden under that.

17 years agowget: make progress bar and ETA work correctly with -c
Denis Vlasenko [Sun, 1 Oct 2006 10:58:54 +0000 (10:58 -0000)]
wget: make progress bar and ETA work correctly with -c

17 years agodpkg: fix use-after-free (bug 939)
Denis Vlasenko [Sat, 30 Sep 2006 21:05:25 +0000 (21:05 -0000)]
dpkg: fix use-after-free (bug 939)

17 years agolsmod: repair indentation
Denis Vlasenko [Sat, 30 Sep 2006 20:41:44 +0000 (20:41 -0000)]
lsmod: repair indentation
httpd: ifdef CONFIG -> if ENABLE (shorted, catched typos)

17 years agovconfig: fix bug 701 (I be damned if I understand it)
Denis Vlasenko [Sat, 30 Sep 2006 19:37:25 +0000 (19:37 -0000)]
vconfig: fix bug 701 (I be damned if I understand it)

17 years agosyslogd: do not retry udp sends (can stall syslogd for extended periods
Denis Vlasenko [Sat, 30 Sep 2006 19:21:24 +0000 (19:21 -0000)]
syslogd: do not retry udp sends (can stall syslogd for extended periods
of time), resolve remote logging host before daemonization

17 years agosyslogd: getopt_ulflags'ification (save ~50 bytes)
Denis Vlasenko [Sat, 30 Sep 2006 19:20:00 +0000 (19:20 -0000)]
syslogd: getopt_ulflags'ification (save ~50 bytes)

17 years agosyslogd: add option to suppress logging of messages lower than level N (-n N)
Denis Vlasenko [Sat, 30 Sep 2006 19:17:40 +0000 (19:17 -0000)]
syslogd: add option to suppress logging of messages lower than level N (-n N)

17 years agofbset: store short string in the structure itself instead of the pointer
Denis Vlasenko [Sat, 30 Sep 2006 16:28:30 +0000 (16:28 -0000)]
fbset: store short string in the structure itself instead of the pointer
(small size saving)

17 years agofbset: add support for -a (bug 1017)
Denis Vlasenko [Sat, 30 Sep 2006 16:22:59 +0000 (16:22 -0000)]
fbset: add support for -a (bug 1017)

17 years agono-op (just for svn commit run. 2.6.18 oopses on that, need to reproduce)
Denis Vlasenko [Sat, 30 Sep 2006 08:32:41 +0000 (08:32 -0000)]
no-op (just for svn commit run. 2.6.18 oopses on that, need to reproduce)

17 years agolibiproute/ll_map.c: fix bug 279
Denis Vlasenko [Sat, 30 Sep 2006 00:18:16 +0000 (00:18 -0000)]
libiproute/ll_map.c: fix bug 279
("On-demand net module loading fails with CONFIG_FEATURE_IFUPDOWN_IP")

17 years agowc: optionally support very large files in wc
Denis Vlasenko [Fri, 29 Sep 2006 23:41:59 +0000 (23:41 -0000)]
wc: optionally support very large files in wc

17 years agowc: reduce source cruft, make it so that "wc -c" (one option, no filenames)
Denis Vlasenko [Fri, 29 Sep 2006 23:41:04 +0000 (23:41 -0000)]
wc: reduce source cruft, make it so that "wc -c" (one option, no filenames)
will not print leading blanks.

17 years agoMention the new gpl@busybox.net address.
Rob Landley [Fri, 29 Sep 2006 22:43:12 +0000 (22:43 -0000)]
Mention the new gpl@busybox.net address.

17 years agolosetup: use /dev/loopN or /dev/loop/N according to CONFIG_FEATURE_DEVFS=n/y
Denis Vlasenko [Fri, 29 Sep 2006 21:47:11 +0000 (21:47 -0000)]
losetup: use /dev/loopN or /dev/loop/N according to CONFIG_FEATURE_DEVFS=n/y

17 years agoYet another silly little byte saving. couldn't -> cannot
Denis Vlasenko [Fri, 29 Sep 2006 21:30:43 +0000 (21:30 -0000)]
Yet another silly little byte saving. couldn't -> cannot

17 years agogrep: add help text; fix style
Denis Vlasenko [Fri, 29 Sep 2006 21:04:12 +0000 (21:04 -0000)]
grep: add help text; fix style