oweals/busybox.git
18 years agoensure that corrupted file extraction causes both a message and
Paul Fox [Mon, 27 Mar 2006 23:09:14 +0000 (23:09 -0000)]
ensure that corrupted file extraction causes both a message and
a failure exit code.  delay the error exit until all (good) files
have been extracted.

filesystem errors (nodes of wrong type, permission problems, etc)
still cause immediate failure.

18 years agoMore from Jan Kiszka: this is a port of the latest sysv-init SELinux patch.
Rob Landley [Mon, 27 Mar 2006 23:09:12 +0000 (23:09 -0000)]
More from Jan Kiszka: this is a port of the latest sysv-init SELinux patch.
It makes busybox invoke the libselinux library function to load the binary
policy right at system start-up. It was successfully tested on a mini-SELinux
system.  Note: requires recent libselinux. I'm using 1.28.

18 years agoFrom Jan Kiszka: This patch fixes the security labelling of the login terminal
Rob Landley [Mon, 27 Mar 2006 23:04:42 +0000 (23:04 -0000)]
From Jan Kiszka: This patch fixes the security labelling of the login terminal
and process... There still remains some stuff to clean up (the whole
set_current_security_context() appears unnecessary complex to me), but this is
now at least working.

18 years agoPatch from Jan Kiszka: In case the libselinux development installation is not
Rob Landley [Mon, 27 Mar 2006 23:00:32 +0000 (23:00 -0000)]
Patch from Jan Kiszka: In case the libselinux development installation is not
located at its default location, this patch allows to override the path via
SELINUX_INC and SELINUX_LIB when invoking make.

18 years agoSoftware Freedom Law Center and the fixes.patch thing.
Rob Landley [Mon, 27 Mar 2006 22:43:40 +0000 (22:43 -0000)]
Software Freedom Law Center and the fixes.patch thing.

18 years agoadd support for :wn (initial patch from Alexander Griesser)
Paul Fox [Mon, 27 Mar 2006 21:51:16 +0000 (21:51 -0000)]
add support for :wn  (initial patch from Alexander Griesser)

18 years agodrop obsolete version string in favor of actual BB version (from
Paul Fox [Mon, 27 Mar 2006 20:29:33 +0000 (20:29 -0000)]
drop obsolete version string in favor of actual BB version (from
Bernhard Fischer)

18 years agoTurn #if 0 into a comment.
Rob Landley [Mon, 27 Mar 2006 17:00:11 +0000 (17:00 -0000)]
Turn #if 0 into a comment.

18 years agoprevent find from ever descending into an xdev'ed directory.
Paul Fox [Mon, 27 Mar 2006 16:42:33 +0000 (16:42 -0000)]
prevent find from ever descending into an xdev'ed directory.

18 years agoMore dead code removal.
Rob Landley [Sun, 26 Mar 2006 21:49:42 +0000 (21:49 -0000)]
More dead code removal.

18 years agoRobert P Day removed some commented out code.
Rob Landley [Sun, 26 Mar 2006 21:42:40 +0000 (21:42 -0000)]
Robert P Day removed some commented out code.

18 years agoDefine both big endian and little endian macros.
Rob Landley [Sat, 25 Mar 2006 03:01:59 +0000 (03:01 -0000)]
Define both big endian and little endian macros.

18 years agoStephane Billiart found an endianness bug in insmod.
Rob Landley [Sat, 25 Mar 2006 02:49:28 +0000 (02:49 -0000)]
Stephane Billiart found an endianness bug in insmod.

18 years ago- commentary typos
Bernhard Reutner-Fischer [Fri, 24 Mar 2006 14:30:05 +0000 (14:30 -0000)]
- commentary typos

18 years ago- make sure that we see freeramdisk only once
Bernhard Reutner-Fischer [Fri, 24 Mar 2006 09:48:18 +0000 (09:48 -0000)]
- make sure that we see freeramdisk only once

18 years agoWhen cross-compiling, the install directory for shared libraries has to come
Rob Landley [Fri, 24 Mar 2006 02:42:58 +0000 (02:42 -0000)]
When cross-compiling, the install directory for shared libraries has to come
from gcc (target machine), not uname (host machine).

18 years agoremove in place of external link
Mike Frysinger [Thu, 23 Mar 2006 23:44:29 +0000 (23:44 -0000)]
remove in place of external link

18 years ago- correct typo
Bernhard Reutner-Fischer [Thu, 23 Mar 2006 16:52:59 +0000 (16:52 -0000)]
- correct typo

18 years agoBug spotted by Stephane Billiart: losetup depends on loop.c.
Rob Landley [Thu, 23 Mar 2006 16:49:22 +0000 (16:49 -0000)]
Bug spotted by Stephane Billiart: losetup depends on loop.c.

18 years agoVery nice patch from Rich Felker to portably set the stream error indicator and
Rob Landley [Thu, 23 Mar 2006 15:30:26 +0000 (15:30 -0000)]
Very nice patch from Rich Felker to portably set the stream error indicator and
thus remove a lot of nasty old code that didn't.

18 years agomake the makefile a little more flexible so we can store in either location
Mike Frysinger [Thu, 23 Mar 2006 03:47:19 +0000 (03:47 -0000)]
make the makefile a little more flexible so we can store in either location

18 years agoNews entry announcing 1.1.1.
Rob Landley [Thu, 23 Mar 2006 03:08:09 +0000 (03:08 -0000)]
News entry announcing 1.1.1.

18 years agosync busybox and udhcp trees
Mike Frysinger [Thu, 23 Mar 2006 03:05:05 +0000 (03:05 -0000)]
sync busybox and udhcp trees

18 years agofixup style
Mike Frysinger [Thu, 23 Mar 2006 02:07:41 +0000 (02:07 -0000)]
fixup style

18 years agodont printf arguments given by user for security sanity
Mike Frysinger [Thu, 23 Mar 2006 02:07:20 +0000 (02:07 -0000)]
dont printf arguments given by user for security sanity

18 years agofix typo
Mike Frysinger [Thu, 23 Mar 2006 02:06:29 +0000 (02:06 -0000)]
fix typo

18 years agoWe make both busybox and busybox_unstripped all the time now, no need to
Rob Landley [Wed, 22 Mar 2006 21:03:21 +0000 (21:03 -0000)]
We make both busybox and busybox_unstripped all the time now, no need to
specify whether or not to strip the binary.

18 years agoPatch from Rogelio Serrano to defer checking whether the tty exists until
Rob Landley [Wed, 22 Mar 2006 17:39:13 +0000 (17:39 -0000)]
Patch from Rogelio Serrano to defer checking whether the tty exists until
we actually need to spawn something on it.

18 years agoFix "seq 1 1".
Rob Landley [Wed, 22 Mar 2006 17:11:44 +0000 (17:11 -0000)]
Fix "seq 1 1".

18 years agoFix from Glenn McGrath.
Rob Landley [Wed, 22 Mar 2006 16:59:12 +0000 (16:59 -0000)]
Fix from Glenn McGrath.

18 years agoTweak allbareconfig not to pause.
Rob Landley [Wed, 22 Mar 2006 15:24:24 +0000 (15:24 -0000)]
Tweak allbareconfig not to pause.

18 years agoAnnoint 1.1.1.
Rob Landley [Wed, 22 Mar 2006 14:07:23 +0000 (14:07 -0000)]
Annoint 1.1.1.

18 years agoAnother header suggestion from Shaun Jackman.
Rob Landley [Wed, 22 Mar 2006 00:46:36 +0000 (00:46 -0000)]
Another header suggestion from Shaun Jackman.

18 years ago2006-03-21 Shaun Jackman <sjackman@gmail.com>: Include signal.h instead of sys...
Mike Frysinger [Wed, 22 Mar 2006 00:25:07 +0000 (00:25 -0000)]
2006-03-21  Shaun Jackman  <sjackman@gmail.com>: Include signal.h instead of sys/signal.h.

18 years agoFix missing copyright and license notice.
Rob Landley [Tue, 21 Mar 2006 18:20:40 +0000 (18:20 -0000)]
Fix missing copyright and license notice.

18 years agoPatch from Stuart Hughes upgrading depmod.pl
Rob Landley [Tue, 21 Mar 2006 16:35:50 +0000 (16:35 -0000)]
Patch from Stuart Hughes upgrading depmod.pl

18 years agoPatch from Shaun Jackman to make loop.c build only when needed.
Rob Landley [Tue, 21 Mar 2006 16:22:19 +0000 (16:22 -0000)]
Patch from Shaun Jackman to make loop.c build only when needed.

18 years agoTemporarily disable shared library for the 1.1.1 release.
Rob Landley [Tue, 21 Mar 2006 16:07:39 +0000 (16:07 -0000)]
Temporarily disable shared library for the 1.1.1 release.

18 years ago- workaroung pr25795 in gcc-4.1
Bernhard Reutner-Fischer [Tue, 21 Mar 2006 11:06:43 +0000 (11:06 -0000)]
- workaroung pr25795 in gcc-4.1
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25795

18 years agoRemove unneeded entries.
Rob Landley [Mon, 20 Mar 2006 18:40:07 +0000 (18:40 -0000)]
Remove unneeded entries.

18 years agoCleanup: remove double quotes that don't seem to be needed.
Rob Landley [Mon, 20 Mar 2006 18:39:02 +0000 (18:39 -0000)]
Cleanup: remove double quotes that don't seem to be needed.

18 years agowhitespace cleanup
Eric Andersen [Mon, 20 Mar 2006 18:07:50 +0000 (18:07 -0000)]
whitespace cleanup

18 years agoFix some obvious compile problems. Make the -f' fakeIt option actually work.
Eric Andersen [Mon, 20 Mar 2006 18:07:13 +0000 (18:07 -0000)]
Fix some obvious compile problems.  Make the -f' fakeIt option actually work.

18 years agoWilly Tarreau writes:
Eric Andersen [Mon, 20 Mar 2006 17:50:08 +0000 (17:50 -0000)]
Willy Tarreau writes:

I encountered a little typo in 'make help' : the prefix was
noted "$prefix" instead of "$(PREFIX)".

18 years agoRoy Walker writes:
Eric Andersen [Mon, 20 Mar 2006 17:37:00 +0000 (17:37 -0000)]
Roy Walker writes:

Here is a patch against the current subversion repository, that makes
udhcpc have an adjustable timeout.  Works for both foreground and before
it drops to the background.  This brings it more in-line with ISC dhcpc.

Use like so:
udhcpc --timeout=10 ...
or
udhcpc -T 10 ...

Still shooting for 1.1.1 this month?  Would really be great if you could
get this in that release.

Please give credit to Paul Pacheco - ppacheco@gmail.com.

18 years agoPatch from tito, acked by Bernhard Fischer.
Rob Landley [Mon, 20 Mar 2006 02:20:18 +0000 (02:20 -0000)]
Patch from tito, acked by Bernhard Fischer.

18 years agoUse lstat() instead of stat so /init being a symlink doesn't screw people up.
Rob Landley [Mon, 20 Mar 2006 01:43:29 +0000 (01:43 -0000)]
Use lstat() instead of stat so /init being a symlink doesn't screw people up.
(And use it consistently, for size reasons.)

18 years ago- tito writes: this patch fixes some comments in dos2unix that are wrong
Bernhard Reutner-Fischer [Sat, 18 Mar 2006 23:05:37 +0000 (23:05 -0000)]
- tito writes: this patch fixes some comments in dos2unix that are wrong
  or that reports non existent features (that i've ripped out...)

18 years ago- explain what magic numbers we're using here.
Bernhard Reutner-Fischer [Sat, 18 Mar 2006 23:02:45 +0000 (23:02 -0000)]
- explain what magic numbers we're using here.

18 years ago- whitespace cleanup (and also check against the const first and only then look
Bernhard Reutner-Fischer [Sat, 18 Mar 2006 15:59:29 +0000 (15:59 -0000)]
- whitespace cleanup (and also check against the const first and only then look
  at bb_applet_name[1])

18 years ago- fix order of includes.
Bernhard Reutner-Fischer [Sat, 18 Mar 2006 11:59:55 +0000 (11:59 -0000)]
- fix order of includes.

18 years agodeclare const id argument const for probe_{ext2,ext3,cramfs}
Mike Frysinger [Sat, 18 Mar 2006 04:17:59 +0000 (04:17 -0000)]
declare const id argument const for probe_{ext2,ext3,cramfs}

18 years agoneed string.h as well as strings.h
Mike Frysinger [Sat, 18 Mar 2006 04:13:32 +0000 (04:13 -0000)]
need string.h as well as strings.h

18 years agoneed EXT2FS_OBJS for fsck
Mike Frysinger [Sat, 18 Mar 2006 04:11:51 +0000 (04:11 -0000)]
need EXT2FS_OBJS for fsck

18 years agoMake the new chroot environment creation infrastructure more flexible about
Rob Landley [Sat, 18 Mar 2006 03:01:57 +0000 (03:01 -0000)]
Make the new chroot environment creation infrastructure more flexible about
non-absolute paths.

18 years agoMy mount testsuite. Not automatically run at the moment, need to figure out
Rob Landley [Sat, 18 Mar 2006 03:00:22 +0000 (03:00 -0000)]
My mount testsuite.  Not automatically run at the moment, need to figure out
how to (optionally) supply User Mode Linux to runtests.

18 years agoMore fixes. Type "auto" should mean unspecified from fstab as well as the
Rob Landley [Sat, 18 Mar 2006 02:58:11 +0000 (02:58 -0000)]
More fixes.  Type "auto" should mean unspecified from fstab as well as the
command line, initialize singlemount's rc to an error value so it doesn't
think it succeeded when it didn't, use absolute path when associating a
loop device (and the previous FEATURE_CLEAN_UP logic related to that was
freeing the wrong thing), move reading of /proc/filesystems to where we can
re-read it (when it's empty) for every entry on a "mount -a" so that when
/proc is mounted as the first entry, the later filesystems can autodetect
filesystem type.

18 years agoWhitespace cleanup and minor tweak (return -ERRNO instead of ERRNO so
Rob Landley [Sat, 18 Mar 2006 02:38:10 +0000 (02:38 -0000)]
Whitespace cleanup and minor tweak (return -ERRNO instead of ERRNO so
EPERM doesn't register as a successful read-only mount.

18 years agoBug fix: umount wasn't detaching loop devices unless mtab support was enabled.
Rob Landley [Fri, 17 Mar 2006 03:30:05 +0000 (03:30 -0000)]
Bug fix: umount wasn't detaching loop devices unless mtab support was enabled.
Made some whitespace cleanups while I was there.

18 years agoMore test updates.
Rob Landley [Thu, 16 Mar 2006 16:02:06 +0000 (16:02 -0000)]
More test updates.

18 years agoRedo test suite to be able to test more than one command at a time. Eliminate
Rob Landley [Thu, 16 Mar 2006 15:20:45 +0000 (15:20 -0000)]
Redo test suite to be able to test more than one command at a time.  Eliminate
$COMMAND environment variable, instead put full command line (including
command to run) in second argument.  Modify $PATH to have test versions of
commands at start of path.  (Also more infrastructure for testing as root,
work in progress...)

18 years agoRandom in-passing tweak.
Rob Landley [Thu, 16 Mar 2006 14:40:27 +0000 (14:40 -0000)]
Random in-passing tweak.

18 years agoUpdate for bug 14.
Rob Landley [Wed, 15 Mar 2006 17:09:56 +0000 (17:09 -0000)]
Update for bug 14.

18 years agoTito shrank dos2unix.
Rob Landley [Tue, 14 Mar 2006 21:49:18 +0000 (21:49 -0000)]
Tito shrank dos2unix.

18 years agoMore "extern" removals from Robert P. Day
Rob Landley [Tue, 14 Mar 2006 21:45:38 +0000 (21:45 -0000)]
More "extern" removals from Robert P. Day

18 years agoAttempt to make a warning go away without increasing size.
Rob Landley [Tue, 14 Mar 2006 21:13:48 +0000 (21:13 -0000)]
Attempt to make a warning go away without increasing size.

18 years agoMissed one.
Rob Landley [Tue, 14 Mar 2006 20:06:44 +0000 (20:06 -0000)]
Missed one.

18 years agoThe new, new mount rewrite. (Mount double prime?) Still being debugged, but
Rob Landley [Tue, 14 Mar 2006 18:16:25 +0000 (18:16 -0000)]
The new, new mount rewrite.  (Mount double prime?)  Still being debugged, but
the new infrastructure is reentrant so in theory it's capable of handling
mount -a sanely.  It can also re-use existing flags with remount, handle
-t auto, mount -a -t, and several smaller bugfixes.

18 years agoTito unified fdflush and freeramdisk. I tweaked the result a bit.
Rob Landley [Tue, 14 Mar 2006 02:40:51 +0000 (02:40 -0000)]
Tito unified fdflush and freeramdisk.  I tweaked the result a bit.

18 years agoupdate comments as to what caused the defines to change
Mike Frysinger [Mon, 13 Mar 2006 23:48:18 +0000 (23:48 -0000)]
update comments as to what caused the defines to change

18 years ago- add two comments
Bernhard Reutner-Fischer [Mon, 13 Mar 2006 20:32:48 +0000 (20:32 -0000)]
- add two comments

18 years ago- remove superfluous dependency which was fixed in r14527
Bernhard Reutner-Fischer [Mon, 13 Mar 2006 19:30:06 +0000 (19:30 -0000)]
- remove superfluous dependency which was fixed in r14527

18 years ago- revert back to r14406
Bernhard Reutner-Fischer [Mon, 13 Mar 2006 19:04:00 +0000 (19:04 -0000)]
- revert back to r14406

18 years agoPatch from Denis Vlasenko to add xstat() and use it.
Rob Landley [Mon, 13 Mar 2006 15:45:16 +0000 (15:45 -0000)]
Patch from Denis Vlasenko to add xstat() and use it.

18 years agoUpdate documentation.
Rob Landley [Mon, 13 Mar 2006 04:38:40 +0000 (04:38 -0000)]
Update documentation.

18 years ago"make help" should not build the configurator first.
Rob Landley [Mon, 13 Mar 2006 03:19:46 +0000 (03:19 -0000)]
"make help" should not build the configurator first.

18 years agoFix "rm .config;make menuconfig" to work like "rm .config; make" (I.E. do
Rob Landley [Mon, 13 Mar 2006 02:52:23 +0000 (02:52 -0000)]
Fix "rm .config;make menuconfig" to work like "rm .config; make" (I.E. do
defconfig first), and group busybox administrative settings into a sub-menu.

18 years agoCleanup patch from tito.
Rob Landley [Sun, 12 Mar 2006 19:26:01 +0000 (19:26 -0000)]
Cleanup patch from tito.

18 years agoSize reduction by Tito.
Rob Landley [Sat, 11 Mar 2006 18:22:35 +0000 (18:22 -0000)]
Size reduction by Tito.

18 years agofix building with glibc-2.4
Mike Frysinger [Fri, 10 Mar 2006 23:41:29 +0000 (23:41 -0000)]
fix building with glibc-2.4

18 years agoadd a sep option for stripping
Mike Frysinger [Fri, 10 Mar 2006 23:20:48 +0000 (23:20 -0000)]
add a sep option for stripping

18 years agorearrange the menu a little to split general settings from applet selection
Mike Frysinger [Fri, 10 Mar 2006 23:17:17 +0000 (23:17 -0000)]
rearrange the menu a little to split general settings from applet selection

18 years agoCleanup patches from tito.
Rob Landley [Fri, 10 Mar 2006 23:16:25 +0000 (23:16 -0000)]
Cleanup patches from tito.

18 years agoPatch from Denis Vlasenko turning static const int (which gets emitted into
Rob Landley [Fri, 10 Mar 2006 19:22:06 +0000 (19:22 -0000)]
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't).

18 years agoFixup to the previous (portability) patch. Linux actually does need
Rob Landley [Thu, 9 Mar 2006 22:39:08 +0000 (22:39 -0000)]
Fixup to the previous (portability) patch.  Linux actually does need
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.

18 years agoPortability patch from rfelker. The bb_asprintf.c thing needs an eventual
Rob Landley [Thu, 9 Mar 2006 22:21:20 +0000 (22:21 -0000)]
Portability patch from rfelker.  The bb_asprintf.c thing needs an eventual
follow up in platform.h to set the #ifdef, but the workaround works for
everybody, so...

18 years agoI'm about to introduce tests that need to run as root (like mount.tests),
Rob Landley [Thu, 9 Mar 2006 22:04:33 +0000 (22:04 -0000)]
I'm about to introduce tests that need to run as root (like mount.tests),
meaning we want to run them in a chroot environment.  To help with this,
I worked out a utility function that makes it really easy to set up a chroot
environment.

18 years agoCleanup from Paul Fox. One find piped to xargs is faster/simpler than
Rob Landley [Thu, 9 Mar 2006 22:01:05 +0000 (22:01 -0000)]
Cleanup from Paul Fox.  One find piped to xargs is faster/simpler than
lots of finds doing individual -exec rm.

18 years agoMention a few web browsers.
Rob Landley [Thu, 9 Mar 2006 18:20:43 +0000 (18:20 -0000)]
Mention a few web browsers.

18 years agoThey won't stop asking, but we can point them to the specific entry...
Rob Landley [Thu, 9 Mar 2006 18:03:21 +0000 (18:03 -0000)]
They won't stop asking, but we can point them to the specific entry...

18 years agoPatch from Denis Vlasenko to make unlzma smaller.
Rob Landley [Thu, 9 Mar 2006 17:51:25 +0000 (17:51 -0000)]
Patch from Denis Vlasenko to make unlzma smaller.

18 years ago- remove check. Fixes e.g. buildroot
Bernhard Reutner-Fischer [Thu, 9 Mar 2006 16:49:46 +0000 (16:49 -0000)]
- remove check. Fixes e.g. buildroot

18 years ago- fix typo
Bernhard Reutner-Fischer [Thu, 9 Mar 2006 16:49:01 +0000 (16:49 -0000)]
- fix typo

18 years ago- backout using features which are not available with the previous stable
Bernhard Reutner-Fischer [Thu, 9 Mar 2006 09:03:37 +0000 (09:03 -0000)]
- backout using features which are not available with the previous stable
  version of make (3.71.1).

18 years agoimport most of e2fsprogs 1.38 updates
Mike Frysinger [Wed, 8 Mar 2006 07:03:27 +0000 (07:03 -0000)]
import most of e2fsprogs 1.38 updates

18 years agovi-mode changes: eliminate warnings from out-of-range-for-type
Paul Fox [Tue, 7 Mar 2006 20:26:11 +0000 (20:26 -0000)]
vi-mode changes:  eliminate warnings from out-of-range-for-type
case labels that are emitted by gcc4.  rearrange macros to
eliminate these extra case labels entirely (since the optimizer
may no longer do it for us).  eliminate static BUFSIZ character
deletion buffer -- malloc it, and make it much much smaller.

18 years agoRobert P. Day removed 8 gazillion occurrences of "extern" on function
Rob Landley [Mon, 6 Mar 2006 20:47:33 +0000 (20:47 -0000)]
Robert P. Day removed 8 gazillion occurrences of "extern" on function
definitions.  (That should only be on prototypes.)

18 years agoWalt Wimer noticed that mknod couldn't handle major or minor > 255. Now our
Rob Landley [Mon, 6 Mar 2006 19:31:39 +0000 (19:31 -0000)]
Walt Wimer noticed that mknod couldn't handle major or minor > 255.  Now our
limit checking autodetects what the system supports (at compile time).

18 years ago- workaround bug in make-3.81beta4:
Bernhard Reutner-Fischer [Mon, 6 Mar 2006 14:20:43 +0000 (14:20 -0000)]
- workaround bug in make-3.81beta4:
- has to use
/top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/file.c
instead of the proper
/top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/dir/file.c

18 years ago- work around missing features and bugs in make-3.79.1:
Bernhard Reutner-Fischer [Mon, 6 Mar 2006 14:19:15 +0000 (14:19 -0000)]
- work around missing features and bugs in make-3.79.1:
- no order-only prerequisites; incomplete workaround (see comment in diff)
- no internal variable MAKEFILE_LIST; workaround
- define bar\nfoo:=<long-list>  doesn't work; workaround
also:
- reinstate clean, distclean as noconfig_target.
- unconditionally clean libbusybox.so*