oweals/busybox.git
18 years agoAntti Seppala (with dots over the last two a's) wants our getty to initialize
Rob Landley [Thu, 24 Aug 2006 20:00:44 +0000 (20:00 -0000)]
Antti Seppala (with dots over the last two a's) wants our getty to initialize
the terminal the way mingetty does instead of the way agetty does.  It's
a bit ugly for somebody else to be writing to a console sitting at a
login: prompt, but it's uglier when newline doesn't work as expected if
they do.

18 years agoPatch from Yann Morin so modprobe won't return failure if the module gets
Rob Landley [Tue, 22 Aug 2006 23:50:11 +0000 (23:50 -0000)]
Patch from Yann Morin so modprobe won't return failure if the module gets
loaded while it's running (ala multi-device hotplug).

18 years ago"Jordan Crouse" <jordan.crouse@amd.com> says:
Rob Landley [Tue, 22 Aug 2006 23:40:28 +0000 (23:40 -0000)]
"Jordan Crouse" <jordan.crouse@amd.com> says:
The following patch makes coreutils/test.c act fail gracefully if getgroups()
returns a -1.  This fixes a problem on the One Laptop Per Child ROM image
whereby we were getting odd Memory exhausted messages for '[' and 'test'.

Found by Mitch Bradley <wmb@firmworks.com>
(Tweaked by Rob: no need to initialize a static to NULL, or realloc something
that's only allocated when it's NULL.)

18 years agoMichael Opdenacker spotted that makefile should use () instead of {}.
Rob Landley [Mon, 21 Aug 2006 17:42:03 +0000 (17:42 -0000)]
Michael Opdenacker spotted that makefile should use () instead of {}.

18 years agoOops, Michael pointed out that my cleanup left some dead code in there.
Rob Landley [Mon, 21 Aug 2006 16:03:38 +0000 (16:03 -0000)]
Oops, Michael pointed out that my cleanup left some dead code in there.

18 years agoYann E. Morin spotted a broken check_ld macro.
Rob Landley [Sun, 20 Aug 2006 23:13:33 +0000 (23:13 -0000)]
Yann E. Morin spotted a broken check_ld macro.

18 years agoMichael Opdenacker contributed a readahead applet.
Rob Landley [Sun, 20 Aug 2006 22:12:18 +0000 (22:12 -0000)]
Michael Opdenacker contributed a readahead applet.

18 years ago- typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/g
Bernhard Reutner-Fischer [Sun, 20 Aug 2006 20:01:24 +0000 (20:01 -0000)]
- typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/g

18 years ago- merge -r15463:15564 from busybox_scratch branch through these changesets:
Bernhard Reutner-Fischer [Sun, 20 Aug 2006 17:35:13 +0000 (17:35 -0000)]
- merge -r15463:15564 from busybox_scratch branch through these changesets:

------------------------------------------------------------------------
r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines

- use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert.
- use xchdir() since all is invain if it fails there anyways, supposedly

------------------------------------------------------------------------
r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines

- adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account.

------------------------------------------------------------------------
r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines

- partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save
s 144 bytes
   text    data     bss     dec     hex filename
 862434   10156  645924 1518514  172bb2 busybox.old
 862322   10156  645892 1518370  172b22 busybox
function                                             old     new   delta
z_len                                                  4       -      -4
textend                                                4       -      -4
part_nb                                                4       -      -4
insize                                                 4       -      -4
ifile_size                                             4       -      -4
do_link                                                4       -      -4
new_text                                              70      60     -10
ipaddr_list_link                                      33      23     -10
gzip_main                                            898     822     -76
------------------------------------------------------------------------------
(add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120)           Total: -120 bytes

------------------------------------------------------------------------
r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines

- remove useless global exports
function                                             old     new   delta
rpm_main                                             940    1601    +661
rpm_getstring                                        107     112      +5
rpm_getint                                           148     153      +5
loop_through_files                                   103     106      +3
fileaction_dobackup                                  115     113      -2
fileaction_list                                        5       -      -5
rpm_getcount                                          42       -     -42
extract_cpio_gz                                      161       -    -161
rpm_gettags                                          504       -    -504
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714)          Total: -40 bytes

   text    data     bss     dec     hex filename
 862322   10156  645892 1518370  172b22 busybox.old
 862290   10156  645892 1518338  172b02 busybox

------------------------------------------------------------------------
r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines

- shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s
emaphore stuff into single caller manually.
  stats:
function                                             old     new   delta
logMessage                                           395     427     +32
message                                             1245    1257     +12
opts                                                   -       4      +4
small                                                  1       -      -1
local_logging                                          4       -      -4
doRemoteLog                                            4       -      -4
circular_logging                                       4       -      -4
syslogd_main                                        1299    1285     -14
static.res                                            36      16     -20
.rodata                                           186650  186586     -64
static.line                                         1025       -   -1025
------------------------------------------------------------------------------
(add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136)        Total: -1088 bytes
cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,}
   text    data     bss     dec     hex filename
   3723     348    5242    9313    2461 sysklogd/syslogd.o.orig
   3697     348    4188    8233    2029 sysklogd/syslogd.o

==============================================================================
Overall bloatcheck for the changeset mentioned above:
function                                             old     new   delta
rpm_main                                             953    1608    +655
logMessage                                           395     427     +32
message                                             1245    1257     +12
opts                                                   -       4      +4
rpm_getstring                                        107     110      +3
rpm_getint                                           148     151      +3
loop_through_files                                   103     104      +1
small                                                  1       -      -1
fileaction_dobackup                                  115     113      -2
z_len                                                  4       -      -4
textend                                                4       -      -4
part_nb                                                4       -      -4
local_logging                                          4       -      -4
insize                                                 4       -      -4
ifile_size                                             4       -      -4
do_link                                                4       -      -4
doRemoteLog                                            4       -      -4
circular_logging                                       4       -      -4
fileaction_list                                        5       -      -5
new_text                                              70      60     -10
ipaddr_list_link                                      33      23     -10
clear_bufs                                            31      21     -10
syslogd_main                                        1287    1273     -14
builtin_help                                         190     176     -14
static.res                                            36      16     -20
builtin_source                                       229     199     -30
rpm_getcount                                          42       -     -42
gzip_main                                            842     786     -56
.rodata                                           227176  227112     -64
lash_main                                            609     527     -82
busy_loop                                           3883    3739    -144
extract_cpio_gz                                      155       -    -155
rpm_gettags                                          501       -    -501
static.line                                         1025       -   -1025
------------------------------------------------------------------------------
(add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221)     Total: -1511 bytes

18 years ago- typo: s/optarg/nprobes_str; fixes segfault as reported by Raphael HUCK
Bernhard Reutner-Fischer [Fri, 18 Aug 2006 18:29:40 +0000 (18:29 -0000)]
- typo: s/optarg/nprobes_str; fixes segfault as reported by Raphael HUCK

18 years ago- remove CRIS specific CFLAG from generic flags-checking.
Bernhard Reutner-Fischer [Fri, 18 Aug 2006 17:44:52 +0000 (17:44 -0000)]
- remove CRIS specific CFLAG from generic flags-checking.

18 years ago- remove last reminiscents of IN_BUSYBOX
Bernhard Reutner-Fischer [Fri, 18 Aug 2006 17:22:23 +0000 (17:22 -0000)]
- remove last reminiscents of IN_BUSYBOX

18 years agoThe kernel can't handle umount /dev/hdc, we have to do it through mtab,
Rob Landley [Thu, 17 Aug 2006 19:07:20 +0000 (19:07 -0000)]
The kernel can't handle umount /dev/hdc, we have to do it through mtab,
except that we still have to work when there is no mtab.

Oh, and while we're at it, take advantage of the fact that modern processors
avoid branches via conditional assignment where possible.  ("x = a ? b : c;"
turns into "x = c; if (a) x = b;" because that way there's no branch to
potentially mispredict and thus never a bubble in the pipeline.  The if(a)
turns into an assembly test followed by a conditional assignment (rather
than a conditional jump).)  So since the compiler is going to do that _anyway_,
we might as well take advantage of it to produce a slightly smaller binary.

So there.

18 years agoTimo Scheffler pointed out that OpenWRT isn't listed.
Rob Landley [Thu, 17 Aug 2006 04:45:24 +0000 (04:45 -0000)]
Timo Scheffler pointed out that OpenWRT isn't listed.

18 years agoAdd link to BusyBox Weekly News. (Yeah, another timesink.)
Rob Landley [Wed, 16 Aug 2006 22:25:43 +0000 (22:25 -0000)]
Add link to BusyBox Weekly News.  (Yeah, another timesink.)

18 years agoNew entry about backporting fixes.
Rob Landley [Wed, 16 Aug 2006 22:13:56 +0000 (22:13 -0000)]
New entry about backporting fixes.

18 years agoUpdate the tinyutils page to mention microperl, LUA, buildroot,
Rob Landley [Wed, 16 Aug 2006 21:10:27 +0000 (21:10 -0000)]
Update the tinyutils page to mention microperl, LUA, buildroot,
gentoo embedded...

18 years agoBernhard Fischer pointed out some leftover debris needing cleanup.
Rob Landley [Tue, 15 Aug 2006 21:37:55 +0000 (21:37 -0000)]
Bernhard Fischer pointed out some leftover debris needing cleanup.

18 years agoMake a warning go away when standalone shell is disabled.
Rob Landley [Thu, 10 Aug 2006 21:46:43 +0000 (21:46 -0000)]
Make a warning go away when standalone shell is disabled.

18 years agoPatch from Chris Steel to fix mdev deleting device nodes.
Rob Landley [Thu, 10 Aug 2006 01:09:37 +0000 (01:09 -0000)]
Patch from Chris Steel to fix mdev deleting device nodes.

18 years agoOk, features.h already defines _OPEN_SOURCE (and complains if it's already
Rob Landley [Thu, 10 Aug 2006 01:08:41 +0000 (01:08 -0000)]
Ok, features.h already defines _OPEN_SOURCE (and complains if it's already
defined), yet it's not doing it for scripts/individual for some reason.
(I hate fighting with header files.)

18 years agoAnother whack at scripts/individual. Now builds 212 applets.
Rob Landley [Wed, 9 Aug 2006 20:56:23 +0000 (20:56 -0000)]
Another whack at scripts/individual.  Now builds 212 applets.

18 years agoUpdate usage to talk about the new shared subtree stuff in mount.
Rob Landley [Wed, 9 Aug 2006 20:55:35 +0000 (20:55 -0000)]
Update usage to talk about the new shared subtree stuff in mount.

18 years agoVladimir Dronnikov convinced me to twiddle the semantics of the new shared
Rob Landley [Wed, 9 Aug 2006 19:51:13 +0000 (19:51 -0000)]
Vladimir Dronnikov convinced me to twiddle the semantics of the new shared
subtree stuff to look more like http://lwn.net/Articles/159077/ thinks
they should.

18 years agoFix a typo (|| instead of |) and remove two comments about a problem fixed
Rob Landley [Tue, 8 Aug 2006 12:54:02 +0000 (12:54 -0000)]
Fix a typo (|| instead of |) and remove two comments about a problem fixed
in the previous patch.

18 years agoAdd shared subtree support, suggested by Vladimir Dronnikov. Also break out a
Rob Landley [Tue, 8 Aug 2006 01:39:49 +0000 (01:39 -0000)]
Add shared subtree support, suggested by Vladimir Dronnikov.  Also break out a
few new (unfinished) config options, which I intend to make hidden (but
enabled) when CONFIG_NITPICK is disabled.  Getting the .config infrastructure
to do that is non-obvious, it seems...

18 years agoUsing lstat() instead of stat() means that attempting to loopback mount
Rob Landley [Tue, 8 Aug 2006 00:47:17 +0000 (00:47 -0000)]
Using lstat() instead of stat() means that attempting to loopback mount
a symlink doesn't work.

18 years agoMake a warning go away on 64-bit systems.
Rob Landley [Sun, 6 Aug 2006 20:41:11 +0000 (20:41 -0000)]
Make a warning go away on 64-bit systems.

18 years agoTeach md5sum and sha1sum to work the way other applets do so I don't have to
Rob Landley [Sun, 6 Aug 2006 02:13:36 +0000 (02:13 -0000)]
Teach md5sum and sha1sum to work the way other applets do so I don't have to
teach scripts/individual new tricks.  And while I'm at it, teach
scripts/individual other new tricks.  Now builds 198 applets, some of which
I should teach it to hardlink together because they're really the same app...

18 years agoscripts/individual now builds 171 applets. Some of them may even work. :)
Rob Landley [Sat, 5 Aug 2006 00:41:39 +0000 (00:41 -0000)]
scripts/individual now builds 171 applets.  Some of them may even work. :)

18 years agoThere are a number of reasons for reinventing printf(). Writing status to
Rob Landley [Fri, 4 Aug 2006 22:02:55 +0000 (22:02 -0000)]
There are a number of reasons for reinventing printf().  Writing status to
stdout is not one of them.

18 years agoWe haven't got a CONFIG_APT_GET.
Rob Landley [Fri, 4 Aug 2006 21:12:14 +0000 (21:12 -0000)]
We haven't got a CONFIG_APT_GET.

18 years agoDigging up my old "make standalone" stuff from a year ago:
Rob Landley [Fri, 4 Aug 2006 21:05:33 +0000 (21:05 -0000)]
Digging up my old "make standalone" stuff from a year ago:
http://busybox.net/lists/busybox/2005-September/015766.html

I renamed it "individual" to not confuse it with the standalone shell.  (Which
it isn't compatible with for obvious reasons.)  Configure busybox (I did
make defconfig), then run scripts/individual and it'll build an individual
version of each applet in the "build" subdirectory.

Currently it builds 146 and fails to build 104 applets out of "make defconfig".
I haven't taught it about multi-file applets yet (like tar), or the ones where
two applets get built from the same source (for example, zcat is a trivial
variant of gunzip so there is no zcat.c).  But here's a start.

18 years agoAdd busybox_old to distclean.
Rob Landley [Fri, 4 Aug 2006 20:39:56 +0000 (20:39 -0000)]
Add busybox_old to distclean.

18 years agoAdd comments to all the functions in this file documenting what they're for.
Rob Landley [Fri, 4 Aug 2006 20:20:03 +0000 (20:20 -0000)]
Add comments to all the functions in this file documenting what they're for.

18 years agoOk, that's not a typo, that's just me not thinking.
Rob Landley [Fri, 4 Aug 2006 20:19:01 +0000 (20:19 -0000)]
Ok, that's not a typo, that's just me not thinking.

18 years agoTypo.
Rob Landley [Fri, 4 Aug 2006 20:15:18 +0000 (20:15 -0000)]
Typo.

18 years agoNow that we have xopen3(), it's just plain unclean to have xopen() with
Rob Landley [Fri, 4 Aug 2006 19:16:31 +0000 (19:16 -0000)]
Now that we have xopen3(), it's just plain unclean to have xopen() with
O_CREAT.  Two users are still doing it (and thus getting permissions 777),
I'm not sure what permissions they should be using but here they are
changed to xopen3().  This costs us a dozen or so bytes, but removing the
777 from xopen() should get some of that back.

18 years agoUse xopen3() instead of an after-the-fact chown.
Rob Landley [Fri, 4 Aug 2006 17:26:58 +0000 (17:26 -0000)]
Use xopen3() instead of an after-the-fact chown.

18 years agoThinko spotted by Vladimir Dronnikov.
Rob Landley [Fri, 4 Aug 2006 05:24:58 +0000 (05:24 -0000)]
Thinko spotted by Vladimir Dronnikov.

18 years agoTry to make a "type-punned pointer" warning go away for somebody on the
Rob Landley [Thu, 3 Aug 2006 20:39:59 +0000 (20:39 -0000)]
Try to make a "type-punned pointer" warning go away for somebody on the
buildroot list.

18 years agoPatch from tito to improve options parsing.
Rob Landley [Thu, 3 Aug 2006 20:22:37 +0000 (20:22 -0000)]
Patch from tito to improve options parsing.

18 years agoRemove xcalloc() and convert its callers to xzalloc(). About half of them
Rob Landley [Thu, 3 Aug 2006 20:07:35 +0000 (20:07 -0000)]
Remove xcalloc() and convert its callers to xzalloc().  About half of them
were using "1" as one of the arguments anyway, and as for the rest a multiply
and a push isn't noticeably bigger than pushing two arguments on the stack.

18 years agoThese should have been part of 15767 too.
Rob Landley [Thu, 3 Aug 2006 17:58:17 +0000 (17:58 -0000)]
These should have been part of 15767 too.

18 years agoFix umount so loop device disassociation hopefully doesn't screw up errno on
Rob Landley [Thu, 3 Aug 2006 17:54:45 +0000 (17:54 -0000)]
Fix umount so loop device disassociation hopefully doesn't screw up errno on
a failed mount.  And while I'm at it, legacy mdev removal was only being done
in the _failure_ case?  That can't be right.  Plus minor header cleanups
and an option parsing tweak.

18 years agoAttempt to fixup httpd.c to match svn 15767.
Rob Landley [Thu, 3 Aug 2006 17:49:15 +0000 (17:49 -0000)]
Attempt to fixup httpd.c to match svn 15767.

18 years agoRemove bb_ prefixes from xfuncs.c (and a few other places), consolidate
Rob Landley [Thu, 3 Aug 2006 15:41:12 +0000 (15:41 -0000)]
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes...  General cleanup pass.  What I've
been doing for the last couple days.

And it conflicts!  I've removed httpd.c from this checkin due to somebody else
touching that file.  It builds for me.  I have to catch a bus.  (Now you know
why I'm looking forward to Mercurial.)

18 years agoRemove apparent typo in "bool" line.
"Robert P. J. Day" [Thu, 3 Aug 2006 11:28:36 +0000 (11:28 -0000)]
Remove apparent typo in "bool" line.

18 years agoMove declaration to be compatible with older gcc's.
"Robert P. J. Day" [Thu, 3 Aug 2006 10:50:39 +0000 (10:50 -0000)]
Move declaration to be compatible with older gcc's.

18 years agoMake a gcc 4.1 warning go away.
Rob Landley [Tue, 1 Aug 2006 00:30:26 +0000 (00:30 -0000)]
Make a gcc 4.1 warning go away.

18 years agoAnnounce 1.2.1
Rob Landley [Mon, 31 Jul 2006 23:56:26 +0000 (23:56 -0000)]
Announce 1.2.1

18 years ago1) ifeq is make syntax, #ifeq is a make comment.
Rob Landley [Mon, 31 Jul 2006 22:56:17 +0000 (22:56 -0000)]
1) ifeq is make syntax, #ifeq is a make comment.
2) The check_cc macros should probably all have the same number of arguments.
3) Move the -Werror into the gcc 4.0 on i386 test, because gcc 4.1 is broken
and produces warnings for things that provably aren't incorrect.

In other news it would be nice if our check_ld macro actually did something,
and why does or makefile do all the check_cc calls, then call itself as if
it's building out of tree, then do all the check_cc calls again?

18 years agoRemove code that can't be reached.
Rob Landley [Mon, 31 Jul 2006 22:50:12 +0000 (22:50 -0000)]
Remove code that can't be reached.

18 years agoTito said that strings is a complete rewrite.
Rob Landley [Mon, 31 Jul 2006 16:37:57 +0000 (16:37 -0000)]
Tito said that strings is a complete rewrite.

18 years agoSwitch off CONFIG_NITPICK in defconfig. (Kind of the point of CONFIG_NITPICK.)
Rob Landley [Sun, 30 Jul 2006 18:56:29 +0000 (18:56 -0000)]
Switch off CONFIG_NITPICK in defconfig.  (Kind of the point of CONFIG_NITPICK.)

18 years agoAdd back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attribution
Rob Landley [Thu, 27 Jul 2006 16:40:55 +0000 (16:40 -0000)]
Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attribution
right this time.

18 years agoAnd now, with a for loop, so it can handle the nested USE() case.
Rob Landley [Thu, 27 Jul 2006 15:12:21 +0000 (15:12 -0000)]
And now, with a for loop, so it can handle the nested USE() case.

18 years agoThere's no excuse for adding new #ifdefs to the code like that. None at all.
Rob Landley [Thu, 27 Jul 2006 15:02:58 +0000 (15:02 -0000)]
There's no excuse for adding new #ifdefs to the code like that.  None at all.

18 years agoI touched perl. I feel dirty.
Rob Landley [Thu, 27 Jul 2006 14:59:36 +0000 (14:59 -0000)]
I touched perl.  I feel dirty.

Make autodocifier suck less.  It still doesn't handle nested USE( USE() ) case
(the inner USE() winds up in the output), but making it recursive involves
getting perl to accept a "for" loop and it's telling me that "break" is an
unrecognized bareword and I hate perl.  This is at least an improvement.

18 years agoallow people to display dmesg output without syslog levels
Mike Frysinger [Thu, 27 Jul 2006 11:18:36 +0000 (11:18 -0000)]
allow people to display dmesg output without syslog levels

18 years agoeat gremlins
Mike Frysinger [Thu, 27 Jul 2006 03:42:30 +0000 (03:42 -0000)]
eat gremlins

18 years agode-cuddle if( to if (
Mike Frysinger [Thu, 27 Jul 2006 03:00:49 +0000 (03:00 -0000)]
de-cuddle if( to if (

18 years agoRich Filker spotted that sed -e 's/xxx/[/' didn't work right. Did a smaller
Rob Landley [Wed, 26 Jul 2006 17:25:08 +0000 (17:25 -0000)]
Rich Filker spotted that sed -e 's/xxx/[/' didn't work right.  Did a smaller
fix than his, and shrank the code a bit on top of that so the net size is
smaller, and added a test to the test suite for this case.  Plus I cleaned up
the #includes and removed unnecessary "const"s while I was there.

18 years agoPatch from Shaun Jackman, set optind by hand if we don't call getopt.
Rob Landley [Wed, 26 Jul 2006 16:10:39 +0000 (16:10 -0000)]
Patch from Shaun Jackman, set optind by hand if we don't call getopt.

18 years agoUnbreak allbareconfig. (Todo item: rewrite dependency checker. Yeah, I
Rob Landley [Wed, 26 Jul 2006 15:38:46 +0000 (15:38 -0000)]
Unbreak allbareconfig.  (Todo item: rewrite dependency checker.  Yeah, I
already have that one, but it moves up the list...)

18 years agoSomebody on the buildroot list hit:
Rob Landley [Tue, 25 Jul 2006 20:37:45 +0000 (20:37 -0000)]
Somebody on the buildroot list hit:
insmod.c:515:10: extra tokens at end of #ident directive

18 years agoget rid of udhcp submenu
Mike Frysinger [Mon, 24 Jul 2006 07:35:52 +0000 (07:35 -0000)]
get rid of udhcp submenu

18 years agomove lchown/chown define out of specific files and into platform.h where it belongs
Mike Frysinger [Thu, 20 Jul 2006 19:31:07 +0000 (19:31 -0000)]
move lchown/chown define out of specific files and into platform.h where it belongs

18 years ago"formated" -> "formatted" throughout the code base.
"Robert P. J. Day" [Thu, 20 Jul 2006 19:02:24 +0000 (19:02 -0000)]
"formated" -> "formatted" throughout the code base.

18 years agoPatch from Yann Morin to fix bug 941, underscores in module aliases.
Rob Landley [Thu, 20 Jul 2006 17:36:18 +0000 (17:36 -0000)]
Patch from Yann Morin to fix bug 941, underscores in module aliases.

18 years agoRemove unnecessary consts. 1_2_0
Rob Landley [Wed, 19 Jul 2006 21:45:30 +0000 (21:45 -0000)]
Remove unnecessary consts.

18 years agoReplace the previous checkin with the correct fix.
Rob Landley [Wed, 19 Jul 2006 21:43:53 +0000 (21:43 -0000)]
Replace the previous checkin with the correct fix.

18 years agoPatch from Yann Morin to look for modules.conf in the right place on 2.6.
Rob Landley [Wed, 19 Jul 2006 21:33:42 +0000 (21:33 -0000)]
Patch from Yann Morin to look for modules.conf in the right place on 2.6.
Fixes http://bugs.busybox.net/view.php?id=942

18 years agoFor now, get around the error that "child" might be uninitialized.
"Robert P. J. Day" [Tue, 18 Jul 2006 12:05:43 +0000 (12:05 -0000)]
For now, get around the error that "child" might be uninitialized.

18 years agoRearrange order of type qualifiers.
"Robert P. J. Day" [Tue, 18 Jul 2006 11:33:44 +0000 (11:33 -0000)]
Rearrange order of type qualifiers.

18 years agoPatch from Thaddeus Ternes, adding chuid to start-stop-daemon.
Rob Landley [Mon, 17 Jul 2006 00:35:07 +0000 (00:35 -0000)]
Patch from Thaddeus Ternes, adding chuid to start-stop-daemon.

18 years agoBugfix from Tito to make sure /etc/group gets updated.
Rob Landley [Sun, 16 Jul 2006 18:58:18 +0000 (18:58 -0000)]
Bugfix from Tito to make sure /etc/group gets updated.

18 years agoNew mkswap. Small and simple. Might even work. :)
Rob Landley [Sun, 16 Jul 2006 08:17:03 +0000 (08:17 -0000)]
New mkswap.  Small and simple.  Might even work. :)

18 years agoCleaup read() and write() variants, plus a couple of new functions like
Rob Landley [Sun, 16 Jul 2006 08:14:35 +0000 (08:14 -0000)]
Cleaup read() and write() variants, plus a couple of new functions like
xlseek and fdlength() for the new mkswap.

18 years agoConvert setuid/setgid users to xsetuid/xsetgid.
Rob Landley [Sun, 16 Jul 2006 08:06:34 +0000 (08:06 -0000)]
Convert setuid/setgid users to xsetuid/xsetgid.

18 years agoAdd -Werror.
Rob Landley [Sun, 16 Jul 2006 08:03:29 +0000 (08:03 -0000)]
Add -Werror.

18 years agoWe need xsetuid() and xsetgid() because per-user process resource limits can
Rob Landley [Sat, 15 Jul 2006 23:00:46 +0000 (23:00 -0000)]
We need xsetuid() and xsetgid() because per-user process resource limits can
prevent a process from switching to a user that has too many processes, and
when that happens WE'RE STILL ROOT.  See http://lwn.net/Articles/190331/

18 years agoComment tweak from tito.
Rob Landley [Sat, 15 Jul 2006 19:46:46 +0000 (19:46 -0000)]
Comment tweak from tito.

18 years agoTito writes: If the gecos field of an user is empty, obscure reports a false "similar...
Mike Frysinger [Sat, 15 Jul 2006 03:59:00 +0000 (03:59 -0000)]
Tito writes: If the gecos field of an user is empty, obscure reports a false "similar to gecos" error.

18 years agoPatch from Suresh Rajashekara moving comments and #includes and such around.
Rob Landley [Fri, 14 Jul 2006 17:59:36 +0000 (17:59 -0000)]
Patch from Suresh Rajashekara moving comments and #includes and such around.

18 years agomention osuosl
Eric Andersen [Thu, 13 Jul 2006 00:52:29 +0000 (00:52 -0000)]
mention osuosl

18 years agoAdd the two busybox developers' home pages that have busybox related stuff
Rob Landley [Thu, 13 Jul 2006 00:10:33 +0000 (00:10 -0000)]
Add the two busybox developers' home pages that have busybox related stuff
on them.

18 years agoMore minor tweaks.
Rob Landley [Wed, 12 Jul 2006 21:31:16 +0000 (21:31 -0000)]
More minor tweaks.

18 years agodecuddle () from for/if/while
Mike Frysinger [Wed, 12 Jul 2006 20:04:00 +0000 (20:04 -0000)]
decuddle () from for/if/while

18 years agoA couple things that got tangled up in my tree, easier to check in both than
Rob Landley [Wed, 12 Jul 2006 19:17:55 +0000 (19:17 -0000)]
A couple things that got tangled up in my tree, easier to check in both than
untangle them:

Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the
signal list to that required by posix (they can specify the numbers for
the rest if they really need them).  (This is preparatory cleanup for adding
a timeout applet like Roberto Foglietta wants.)

Export the itoa (added due to Denis Vlasenko, although it's not quite his
preferred implementation) from xfuncs.c so it's actually used, and remove
several other redundant implementations of itoa and utoa() in the tree.

18 years agoAdd one-line GPL boilerplate to numerous (but not all yet) source files.
"Robert P. J. Day" [Wed, 12 Jul 2006 07:56:04 +0000 (07:56 -0000)]
Add one-line GPL boilerplate to numerous (but not all yet) source files.

18 years agoPatch from Tito to remove pwd_to_spwd (which we don't actually need), with
Rob Landley [Tue, 11 Jul 2006 16:19:17 +0000 (16:19 -0000)]
Patch from Tito to remove pwd_to_spwd (which we don't actually need), with
some #ifdef removal from me.

18 years agoAdd one-line GPL boilerplate to these source files.
"Robert P. J. Day" [Tue, 11 Jul 2006 11:32:31 +0000 (11:32 -0000)]
Add one-line GPL boilerplate to these source files.

18 years agoDenis Vlasenko spotted the lack of bounds checking in my first attempt at
Rob Landley [Tue, 11 Jul 2006 00:44:36 +0000 (00:44 -0000)]
Denis Vlasenko spotted the lack of bounds checking in my first attempt at
itoa/utoa.

18 years agoUpgrade netcat a lot. Make -e able to take the rest of the command line as
Rob Landley [Mon, 10 Jul 2006 19:45:20 +0000 (19:45 -0000)]
Upgrade netcat a lot.  Make -e able to take the rest of the command line as
what to exec.  Add -f mode and a brief explanation of how to use it to replace
minicom.  Add -l -l mode so you can turn any command into a server.  And group
all of netcat's command line options under two CONFIG entries, so if you
disable both it doesn't use getopt at all.

18 years agoReplace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.
"Robert P. J. Day" [Mon, 10 Jul 2006 11:41:19 +0000 (11:41 -0000)]
Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.

18 years agoAdd itoa and utoa to see what Denis Vlasenko thinks.
Rob Landley [Mon, 10 Jul 2006 07:41:34 +0000 (07:41 -0000)]
Add itoa and utoa to see what Denis Vlasenko thinks.

18 years agoPatch from Tito to make syslog configurable and remove #ifdefs. Further
Rob Landley [Mon, 10 Jul 2006 03:05:46 +0000 (03:05 -0000)]
Patch from Tito to make syslog configurable and remove #ifdefs.  Further
cleanups by me.

18 years agoPatch from Shaun Jackman to set environment variable RUNLEVEL equal to
Rob Landley [Sun, 9 Jul 2006 17:28:17 +0000 (17:28 -0000)]
Patch from Shaun Jackman to set environment variable RUNLEVEL equal to
init's argv[1], so if you append "single" to your kernel command line and
the kernel doesn't parse it, RUNLELEL=single.

Plus a few unrelated header cleanups while I was in the area...

18 years agoBugfix from Shaun Jackman (check that argv[optind] isn't null before
Rob Landley [Sun, 9 Jul 2006 17:03:07 +0000 (17:03 -0000)]
Bugfix from Shaun Jackman (check that argv[optind] isn't null before
dereferencing it) plus a bunch of tweaks from me.