people/mcb30/busybox.git
18 years agoPatch from Eric Spakman to update "run-parts" help text in Config.in.
andersen [Wed, 6 Aug 2003 09:43:09 +0000 (09:43 +0000)]
Patch from Eric Spakman to update "run-parts" help text in Config.in.

git-svn-id: svn://busybox.net/trunk/busybox@7176 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoEric Spakman writes:
andersen [Wed, 6 Aug 2003 09:23:44 +0000 (09:23 +0000)]
Eric Spakman writes:

The attached patch adds "mtu" and "hwaddress" to the inet6 method and
"mtu", "hwaddr" and "pointopoint" to the inet4 method (just like in
the ifupdown part).
Note: "hwaddress" can't be used with the busybox ip applet (this
function isn't implemented in bb ip yet), but it can be of use with
an external "full blown" ip package.

The patch also removes "label" from the loopback configuration,
labels (subinterfaces) aren't used with loopback interfaces.

It further solves a problem in the bootp method, "ifconfig down
%interface%" should be "ifconfig %interface% down" and it's now also
possible to use ip with bootp.

The patch is fully tested with both busybox ip and "stand-alone" ip
and I didn't saw any problems.

git-svn-id: svn://busybox.net/trunk/busybox@7175 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from vodz:
andersen [Wed, 6 Aug 2003 09:07:37 +0000 (09:07 +0000)]
Patch from vodz:

I wrote:
>>I think, fdisk have special ext2lseek special for:
>>disk can have size > 4Gb, but all any partitions have < 4Gb and lseek64
>>not require.
>>May be best create new configure option for set DOLFS for fdisk applet
>>if global DOLFS unset?
>

Erik Andersen wrote:
>Agreed.  Using an extra configure option when ! DOLFS
>would be a good idea.

Ok. Patch attached.

git-svn-id: svn://busybox.net/trunk/busybox@7174 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Steven Scholz:
andersen [Wed, 6 Aug 2003 08:57:35 +0000 (08:57 +0000)]
Patch from Steven Scholz:

should we rename the define into CONFIG_FEATURE_HDPARM_HDIO_DMA and
use it for "set" and "get" ???

Since although CONFIG_FEATURE_HDPARM_HDIO_GET_DMA is _not_ set I still
can use "hdparm -d 1 /dev/hda" to switch the DMA on.
Is this desireable or meant to be like that?

So how about the applied patch?

git-svn-id: svn://busybox.net/trunk/busybox@7173 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSteven Scholz writes:
andersen [Wed, 6 Aug 2003 08:53:13 +0000 (08:53 +0000)]
Steven Scholz writes:

    the output of lsmod (busybox-1.00-pre2) contains IMHO one "\n" too
    much when using CONFIG_FEATURE_CHECK_TAINTED_MODULE:

    ~ # lsmod
    Module                  Size  Used by    Tainted: P

    ds                      8364   1
    m8xx_pcmcia             5388   1
    pcmcia_core            40736   0 [ds m8xx_pcmcia]

and this patch from Steven fixes the problem

git-svn-id: svn://busybox.net/trunk/busybox@7172 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSync hdparm -t and -T options with hdparm-5.3, which seems
andersen [Wed, 6 Aug 2003 08:47:59 +0000 (08:47 +0000)]
Sync hdparm -t and -T options with hdparm-5.3, which seems
to produce sensible results,

git-svn-id: svn://busybox.net/trunk/busybox@7171 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from vodz to cleanup libbb/obscure.c:password_check()
andersen [Wed, 6 Aug 2003 08:33:08 +0000 (08:33 +0000)]
Patch from vodz to cleanup libbb/obscure.c:password_check()
to not copy too much data.

git-svn-id: svn://busybox.net/trunk/busybox@7170 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoJoe.C writes:
andersen [Wed, 6 Aug 2003 08:22:10 +0000 (08:22 +0000)]
Joe.C writes:

    I've reported this bug in April and it still
    exists in 1.00-pre2. So I made patches for
    both 0.60.x and 1.00-pre2.  The patch is very
    simple, just use strncmp instead of strcmp.
    Please apply if it is OK.

   Here's the procedure to test this problem:
   Create a executable with very long name, say
   'test_1234567890123456' and execute it. Try
   using 'killall' or 'pidof' to find/kill this
   program.  Without this patch, you can't find
   the program.

git-svn-id: svn://busybox.net/trunk/busybox@7169 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFixup segfault on 'kill -q'
andersen [Wed, 6 Aug 2003 07:43:58 +0000 (07:43 +0000)]
Fixup segfault on 'kill -q'

git-svn-id: svn://busybox.net/trunk/busybox@7168 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoextern inline is a bad bad thing. kill it (so mkfs_minix.c will
andersen [Wed, 6 Aug 2003 07:34:19 +0000 (07:34 +0000)]
extern inline is a bad bad thing.  kill it (so mkfs_minix.c will
actually compile)

git-svn-id: svn://busybox.net/trunk/busybox@7167 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSeems I missed a spot
andersen [Tue, 5 Aug 2003 05:59:48 +0000 (05:59 +0000)]
Seems I missed a spot

git-svn-id: svn://busybox.net/trunk/busybox@7163 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMerge/rework config system per the latest from linux-2.6.0-test2.
andersen [Tue, 5 Aug 2003 02:18:25 +0000 (02:18 +0000)]
Merge/rework config system per the latest from linux-2.6.0-test2.
Fix the config bugs revealed by the updated config system.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7160 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMight as well get my name in AUTHORS before 1.0...
mjn3 [Sat, 2 Aug 2003 00:19:29 +0000 (00:19 +0000)]
Might as well get my name in AUTHORS before 1.0...

git-svn-id: svn://busybox.net/trunk/busybox@7155 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSave 0.5K.
mjn3 [Sat, 2 Aug 2003 00:04:18 +0000 (00:04 +0000)]
Save 0.5K.

git-svn-id: svn://busybox.net/trunk/busybox@7154 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove code that too agressively disabled inlines
andersen [Fri, 1 Aug 2003 22:27:57 +0000 (22:27 +0000)]
Remove code that too agressively disabled inlines

git-svn-id: svn://busybox.net/trunk/busybox@7152 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMinor cleanup
andersen [Thu, 31 Jul 2003 17:50:17 +0000 (17:50 +0000)]
Minor cleanup

git-svn-id: svn://busybox.net/trunk/busybox@7147 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix bug when handling debian packages.
bug1 [Thu, 31 Jul 2003 01:53:50 +0000 (01:53 +0000)]
Fix bug when handling debian packages.
If we read the contents of compressed files within the ar archive,
e.g. control.tar.gz, then file position gets all out of whack, so
it has to be reset before reading thenext header.

git-svn-id: svn://busybox.net/trunk/busybox@7146 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove LRP (now defunct) and replace it with leaf.
andersen [Wed, 30 Jul 2003 17:17:33 +0000 (17:17 +0000)]
Remove LRP (now defunct) and replace it with leaf.

git-svn-id: svn://busybox.net/trunk/busybox@7145 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate webpage and changelog for release
andersen [Wed, 30 Jul 2003 09:33:54 +0000 (09:33 +0000)]
Update webpage and changelog for release

git-svn-id: svn://busybox.net/trunk/busybox@7143 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoLars Ekman writes:
andersen [Wed, 30 Jul 2003 08:55:59 +0000 (08:55 +0000)]
Lars Ekman writes:

When using "losetup" the device is always setup as Read-Only.

(I have only tested with the -o flag, but looking at the code the
 problem seems general)

The problem is the "opt" variable in "losetup.c" that is reused in
the "set_loop()" call. Clear it before the call and everything is OK;

  opt = 0;         /* <-------- added line */
  if (delete)
    return del_loop (argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE;
  else
    return set_loop (argv[optind], argv[optind + 1], offset, &opt)
      ? EXIT_FAILURE : EXIT_SUCCESS;
}

Best Regards,
Lars Ekman

git-svn-id: svn://busybox.net/trunk/busybox@7142 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agolast_patch100 from vidz updating fdisk to 2.12pre
andersen [Wed, 30 Jul 2003 08:40:37 +0000 (08:40 +0000)]
last_patch100 from vidz updating fdisk to 2.12pre

git-svn-id: svn://busybox.net/trunk/busybox@7140 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDo not require that the signal number be specified
andersen [Wed, 30 Jul 2003 08:29:56 +0000 (08:29 +0000)]
Do not require that the signal number be specified

git-svn-id: svn://busybox.net/trunk/busybox@7139 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoEric Spakman writes:
andersen [Wed, 30 Jul 2003 08:22:53 +0000 (08:22 +0000)]
Eric Spakman writes:

The recent changes in ifupdown where all calls to 'ip link set' and
'ip addr set' are swapped give some problems with v4tunnels.
For plain ipv4 and ipv6 interfaces it works correct, other methods
not tried. The patch below change the behaviour back for v4tunnels
only.

Without the patch the following errors are shown:
RTNETLINK answers: Network is down
RTNETLINK answers: No route to host
and the tunnel is not fully brought up

With this patch all works as expected.

git-svn-id: svn://busybox.net/trunk/busybox@7138 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVladimir N. Oleynik writes:
andersen [Wed, 30 Jul 2003 07:57:06 +0000 (07:57 +0000)]
Vladimir N. Oleynik writes:

    This moment have algoritmicaly problem, not overflow:
    strcat(wrapped, wrapped) - may be looped.

    Hand patch:

    - else if (strstr(strcat(wrapped, wrapped), newmono))
    + else {
    +    safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
    +    if (strstr(wrapped, newmono))
    +}

    --w
    vodz

git-svn-id: svn://busybox.net/trunk/busybox@7137 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoChristian Meyer provided this patch to fix more bugs with the tftp client
andersen [Wed, 30 Jul 2003 07:16:39 +0000 (07:16 +0000)]
Christian Meyer provided this patch to fix more bugs with the tftp client

git-svn-id: svn://busybox.net/trunk/busybox@7136 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRonny L Nilsson writes:
andersen [Wed, 30 Jul 2003 06:56:07 +0000 (06:56 +0000)]
Ronny L Nilsson writes:

The login process should always timeout if user don't login sucessfully within
reasonable time. Otherwise we're sensetive to a DOS attack by simply doing a
bunch of simultaneous telnet connections (deploys all availible TTY's).

This patch make login.c terminate the connection after  "TIMEOUT" seconds.

git-svn-id: svn://busybox.net/trunk/busybox@7135 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRonny L Nilsson writes:
andersen [Wed, 30 Jul 2003 06:52:33 +0000 (06:52 +0000)]
Ronny L Nilsson writes:

    If BusyBox was compiled with -DCONFIG_FEATURE_CLEAN_UP dmesg command
    segfaults if invoked with the "-n" option. (Due to a free() of an
    uninitialized pointer).

git-svn-id: svn://busybox.net/trunk/busybox@7134 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSet libbb dead last in the link order
andersen [Tue, 29 Jul 2003 07:45:05 +0000 (07:45 +0000)]
Set libbb dead last in the link order

git-svn-id: svn://busybox.net/trunk/busybox@7133 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMatch up interfaces
andersen [Tue, 29 Jul 2003 07:37:39 +0000 (07:37 +0000)]
Match up interfaces

git-svn-id: svn://busybox.net/trunk/busybox@7132 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFixup typo noticed by Nick Fedchik
andersen [Tue, 29 Jul 2003 07:15:17 +0000 (07:15 +0000)]
Fixup typo noticed by Nick Fedchik

git-svn-id: svn://busybox.net/trunk/busybox@7131 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoBruno Randolf writes:
andersen [Tue, 29 Jul 2003 07:05:40 +0000 (07:05 +0000)]
Bruno Randolf writes:

this patch fixes run_parts when it's called by ifupdown. 1) argv has to be a
NULL terminated char* array, not just a string. 2) run_parts now explicitly
sets the environment. this environment is populated from the
/etc/network/interfaces config file and is needed by the scripts in
/etc/network/if-pre-up.d/. when run-parts is called from the command line the
environment is taken from the current process.

Vladimir Oleynik then wrote:

You can simplify this if use:

+       bb_xasprintf(&buf[0], "/etc/network/if-%s.d", opt);
+       buf[1] = NULL;
+
+       run_parts(&buf, 2, environ);
+       free(buf[0]);

--w
vodz

git-svn-id: svn://busybox.net/trunk/busybox@7130 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVladimir N. Oleynik writes:
andersen [Tue, 29 Jul 2003 06:38:40 +0000 (06:38 +0000)]
Vladimir N. Oleynik writes:

Last patch have synced form Manuel Nova III xxreadtoken() function,
corrected (C) form dash debian/copyright, removed my small mistake
with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from
current CVS (removed libc5 support, your email correction, my (C) year
corertion).

git-svn-id: svn://busybox.net/trunk/busybox@7129 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoYang Xiaopeng writes:
andersen [Tue, 29 Jul 2003 06:33:12 +0000 (06:33 +0000)]
Yang Xiaopeng writes:

>I'm sure that no user process use old root now,  but when run "umount
>/old_root", it says:
>   umount: /old_root: Device or resource busy
>
>I have tried to remount /proc within the new root *after* chroot, but
>get the same result.
>
>
I found the problem, I said that no user process use old root when run
my scripts, but
I'm wrong, actually there is a '3' fd open the file
"/old_root/dev/console". By adding
debug message in init/init.c, I found the problem: when init restart(in
exec_signal()),
before open the new terminal device, there is still a file opened(I
don't know which file it is), so the
terminal device(stdin) get fd '1', and the first dup(0)(stdout) return
'2', the second(stderr) return '3'.

I attach a simple patch to solve this problem.

git-svn-id: svn://busybox.net/trunk/busybox@7128 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agobump version to 1.0.0-pre2
andersen [Mon, 28 Jul 2003 10:34:38 +0000 (10:34 +0000)]
bump version to 1.0.0-pre2

git-svn-id: svn://busybox.net/trunk/busybox@7127 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoA small update to the new docs. Plenty more is needed...
andersen [Mon, 28 Jul 2003 10:13:03 +0000 (10:13 +0000)]
A small update to the new docs.  Plenty more is needed...

git-svn-id: svn://busybox.net/trunk/busybox@7126 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from vodz to update httpd usage
andersen [Mon, 28 Jul 2003 09:59:05 +0000 (09:59 +0000)]
Patch from vodz to update httpd usage

git-svn-id: svn://busybox.net/trunk/busybox@7125 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoThis is synced from dash-0.4.17 and full ready for insert to new busybox
andersen [Mon, 28 Jul 2003 09:56:35 +0000 (09:56 +0000)]
This is synced from dash-0.4.17 and full ready for insert to new busybox
version:
ftp://ftp.simtreas.ru/pub/my/bb/new

News:

- code is smalest!
- support ${var...} expr
- used new very strongly steal controlling terminal

git-svn-id: svn://busybox.net/trunk/busybox@7124 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAvoid shadowing built-in function `log'
andersen [Mon, 28 Jul 2003 09:37:56 +0000 (09:37 +0000)]
Avoid shadowing built-in function `log'

git-svn-id: svn://busybox.net/trunk/busybox@7123 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFixup bugs in last patch
andersen [Mon, 28 Jul 2003 09:31:28 +0000 (09:31 +0000)]
Fixup bugs in last patch

git-svn-id: svn://busybox.net/trunk/busybox@7122 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate docs a bit
andersen [Mon, 28 Jul 2003 08:31:56 +0000 (08:31 +0000)]
Update docs a bit

git-svn-id: svn://busybox.net/trunk/busybox@7121 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agolast_patch98 from vodz:
andersen [Mon, 28 Jul 2003 07:42:19 +0000 (07:42 +0000)]
last_patch98 from vodz:

Denis,

># ./busybox env - echo zzz
>zzz
># ./busybox echo -n zzz
>zzz
># ./busybox env - echo -n zzz
>env: invalid option -- n
>
>       obviously, env tried to understand -n as env's option
>       instead of blindly passing it to echo...
>
>BusyBox v1.00-pre1 (2003.07.16-07:53+0000) multi-call binary
>
>Usage: env [-iu] [-] [name=value]... [command]

Ah, you found very old problem.
Last patch also have:

- multiple "-u unsetenv" support
- GNU long option support
- save errno after exec failed before bb_perror_msg()

--w
vodz

git-svn-id: svn://busybox.net/trunk/busybox@7120 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agolast_patch95 from vodz:
andersen [Mon, 28 Jul 2003 07:40:39 +0000 (07:40 +0000)]
last_patch95 from vodz:

Hi.

Last patch have new libbb function
vfork_rexec() for can use daemon() to uClinux system.
This patched daemons: syslog, klogd, inetd, crond.
This not tested! I havn`t this systems.
Also. Previous patch for feature request MD5 crypt password for
httpd don`t sended to this mailist on 07/15/03
(mailist have Pytom module problem?).
The previous patch included, and have testing.

--w
vodz

git-svn-id: svn://busybox.net/trunk/busybox@7119 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAdd a "search google" button
andersen [Mon, 28 Jul 2003 06:42:59 +0000 (06:42 +0000)]
Add a "search google" button

git-svn-id: svn://busybox.net/trunk/busybox@7118 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoJames Petterson writes:
andersen [Mon, 28 Jul 2003 06:37:04 +0000 (06:37 +0000)]
James Petterson writes:

I've found a possible bug in libbb/interface.c, in function
if_readlist_proc(). This function calls get_name(), and passes
as an argument 'name', a buffer of 16 bytes (IFNAMSIZ).  The
function get_name(), however, may use more than 16 bytes,
when it is searching for aliases. Even if you don't have an
alias interface, you can run into trouble if the interface
has received more than 99999999 bytes, in which case the
space between the interface name and the rx stats
disappears, as in the /proc/net/dev example below:
 wan0.200:264573315  462080    ...
In this case get_name() correctly identifies the interface name
as "wan0.200", but to do that it uses 18 bytes of the 'name'
buffer, which could lead to an unpredictable error.

A simple solution would be to increase the size of the buffer:

git-svn-id: svn://busybox.net/trunk/busybox@7117 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoThere should be only one instance of CONFIG_FEATURE_AUTOWIDTH
andersen [Sat, 26 Jul 2003 09:33:16 +0000 (09:33 +0000)]
There should be only one instance of CONFIG_FEATURE_AUTOWIDTH

git-svn-id: svn://busybox.net/trunk/busybox@7115 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAllow people to use the full blown iproute2 programs with busybox ifupdown.
andersen [Sat, 26 Jul 2003 09:27:02 +0000 (09:27 +0000)]
Allow people to use the full blown iproute2 programs with busybox ifupdown.

git-svn-id: svn://busybox.net/trunk/busybox@7114 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMove start_stop_daemon to debianutils.
andersen [Sat, 26 Jul 2003 09:16:00 +0000 (09:16 +0000)]
Move start_stop_daemon to debianutils.
Cleanup run_parts a bit and add long opts

git-svn-id: svn://busybox.net/trunk/busybox@7113 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agocleanup and add long options
andersen [Sat, 26 Jul 2003 09:10:35 +0000 (09:10 +0000)]
cleanup and add long options

git-svn-id: svn://busybox.net/trunk/busybox@7112 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoThe logger utility does not really depend on CONFIG_SYSLOGD,
andersen [Sat, 26 Jul 2003 08:20:46 +0000 (08:20 +0000)]
The logger utility does not really depend on CONFIG_SYSLOGD,
since it can also be used with other syslog daemons
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7111 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Christian Meyer:
andersen [Sat, 26 Jul 2003 08:16:10 +0000 (08:16 +0000)]
Patch from Christian Meyer:

    The client gives up way too soon because timeout is set to 0 ...
    There's a solution for that problem.

git-svn-id: svn://busybox.net/trunk/busybox@7110 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSome additional description based on a patch from Terje Kvernes
andersen [Sat, 26 Jul 2003 08:07:56 +0000 (08:07 +0000)]
Some additional description based on a patch from Terje Kvernes

git-svn-id: svn://busybox.net/trunk/busybox@7109 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Nick Fedchik to fixup paths in busybox/libpwdgrp
andersen [Sat, 26 Jul 2003 07:48:13 +0000 (07:48 +0000)]
Patch from Nick Fedchik to fixup paths in busybox/libpwdgrp
which were not properly using the bb_path_*_file strings.

git-svn-id: svn://busybox.net/trunk/busybox@7108 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRework kill / killall so it behaves itself, even when subjected
andersen [Sat, 26 Jul 2003 07:41:56 +0000 (07:41 +0000)]
Rework kill / killall so it behaves itself, even when subjected
to abuse.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7107 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Thomas Gleixner to reap any zombie processes that are
andersen [Sat, 26 Jul 2003 06:25:12 +0000 (06:25 +0000)]
Patch from Thomas Gleixner to reap any zombie processes that are
reparented to init...

git-svn-id: svn://busybox.net/trunk/busybox@7106 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDon't depend on CONFIG_LFS. It is really a suggestion, not a requirement,
andersen [Sat, 26 Jul 2003 00:45:52 +0000 (00:45 +0000)]
Don't depend on CONFIG_LFS.  It is really a suggestion, not a requirement,
since fdisk will work just fine on smaller disks w/o it.

git-svn-id: svn://busybox.net/trunk/busybox@7105 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSet the tm_isdst flag to -1 before calling mktime(). Otherwise, the current
mjn3 [Wed, 23 Jul 2003 23:24:31 +0000 (23:24 +0000)]
Set the tm_isdst flag to -1 before calling mktime().  Otherwise, the current
timezone setting is used for the new date.

git-svn-id: svn://busybox.net/trunk/busybox@7103 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoeliminate DOSTATIC, DODEBUG, etc and name them sensibly
andersen [Tue, 22 Jul 2003 22:15:21 +0000 (22:15 +0000)]
eliminate DOSTATIC, DODEBUG, etc and name them sensibly

git-svn-id: svn://busybox.net/trunk/busybox@7102 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSeveral simplifications and indenting changes, per
andersen [Tue, 22 Jul 2003 17:14:10 +0000 (17:14 +0000)]
Several simplifications and indenting changes, per
last_patch97 from vodz

git-svn-id: svn://busybox.net/trunk/busybox@7101 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAs vodz noticed, I screwed up reboot
andersen [Tue, 22 Jul 2003 17:04:54 +0000 (17:04 +0000)]
As vodz noticed, I screwed up reboot

git-svn-id: svn://busybox.net/trunk/busybox@7100 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agothe word "only" is repeated for CONFIG_FEATURE_SHADOWPASSWDS
andersen [Tue, 22 Jul 2003 17:03:24 +0000 (17:03 +0000)]
the word "only" is repeated for CONFIG_FEATURE_SHADOWPASSWDS

git-svn-id: svn://busybox.net/trunk/busybox@7099 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoThere is no need to expose CONFIG_FEATURE_TRACEROUTE_SO_DEBUG
andersen [Tue, 22 Jul 2003 10:18:17 +0000 (10:18 +0000)]
There is no need to expose CONFIG_FEATURE_TRACEROUTE_SO_DEBUG

git-svn-id: svn://busybox.net/trunk/busybox@7098 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDocument CONFIG_FEATURE_INSMOD_LOADINKMEM
andersen [Tue, 22 Jul 2003 10:16:58 +0000 (10:16 +0000)]
Document CONFIG_FEATURE_INSMOD_LOADINKMEM

git-svn-id: svn://busybox.net/trunk/busybox@7097 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDocument CONFIG_ASH_CMDCMD
andersen [Tue, 22 Jul 2003 10:14:32 +0000 (10:14 +0000)]
Document CONFIG_ASH_CMDCMD

git-svn-id: svn://busybox.net/trunk/busybox@7096 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoWrite some more docs
andersen [Tue, 22 Jul 2003 10:11:48 +0000 (10:11 +0000)]
Write some more docs

git-svn-id: svn://busybox.net/trunk/busybox@7095 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove the update utility, that is only relevant to older 2.0.x kernels
andersen [Tue, 22 Jul 2003 10:11:27 +0000 (10:11 +0000)]
Remove the update utility, that is only relevant to older 2.0.x kernels
that are no longer supported.

git-svn-id: svn://busybox.net/trunk/busybox@7094 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Terje Kvernes adding quite a lot of missing documentation
andersen [Tue, 22 Jul 2003 09:59:34 +0000 (09:59 +0000)]
Patch from Terje Kvernes adding quite a lot of missing documentation

git-svn-id: svn://busybox.net/trunk/busybox@7093 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Andrew Flegg:
andersen [Tue, 22 Jul 2003 09:48:56 +0000 (09:48 +0000)]
Patch from  Andrew Flegg:

    Here's a pretty crude patch to reload /etc/inittab when init receives a
    SIGHUP. The mailing list archives weren't entirely clear on whether or
    not it should already happen, but didn't appear to be.

    The patch:
       * Adds a new function, reload_signal() which just calls
 parse_inittab() and run_actions(RESPAWN)

       * Before entering the while (1) loop set up SIGHUP to call
 reload_signal()

       * Modify new_init_action to skip the action if the same command
 already exists on the same terminal

    This last bit means that changing already running entries is a bit
    hairy as you can end up with, for example, two shells running on the
    same virtual console. However, for solely adding/removing entries this patch
    seems to work quite well.

git-svn-id: svn://busybox.net/trunk/busybox@7092 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSupport reboot, halt, and poweroff independent of busybox init.
andersen [Tue, 22 Jul 2003 09:41:39 +0000 (09:41 +0000)]
Support reboot, halt, and poweroff independent of busybox init.
Simplify and fixup some logic.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7091 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove remaining libc5 support code
andersen [Tue, 22 Jul 2003 08:56:55 +0000 (08:56 +0000)]
Remove remaining libc5 support code

git-svn-id: svn://busybox.net/trunk/busybox@7090 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoA minor update for handling older gcc versions
andersen [Tue, 22 Jul 2003 08:56:01 +0000 (08:56 +0000)]
A minor update for handling older gcc versions

git-svn-id: svn://busybox.net/trunk/busybox@7089 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate TODO list
andersen [Tue, 22 Jul 2003 08:55:12 +0000 (08:55 +0000)]
Update TODO list

git-svn-id: svn://busybox.net/trunk/busybox@7088 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAdd a default clean target
andersen [Tue, 22 Jul 2003 08:54:02 +0000 (08:54 +0000)]
Add a default clean target

git-svn-id: svn://busybox.net/trunk/busybox@7087 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVery minor rdate updates
andersen [Tue, 22 Jul 2003 08:26:05 +0000 (08:26 +0000)]
Very minor rdate updates

git-svn-id: svn://busybox.net/trunk/busybox@7086 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoError out early if people try to build mount with nfs support
andersen [Tue, 22 Jul 2003 08:25:37 +0000 (08:25 +0000)]
Error out early if people try to build mount with nfs support
using uClibc, but have not enabled UCLIBC_HAS_RPC...
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7085 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agomention stresslinux
andersen [Tue, 22 Jul 2003 07:50:18 +0000 (07:50 +0000)]
mention stresslinux

git-svn-id: svn://busybox.net/trunk/busybox@7084 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPaul Mundt <lethal@linux-sh.org> writes:
andersen [Tue, 22 Jul 2003 07:39:18 +0000 (07:39 +0000)]
Paul Mundt <lethal@linux-sh.org> writes:

Here's a bunch of fixes for the watchdog app in busybox. This does a
couple of things:

- configurable timer duration (userspace timer duration is
  usually configurable within the device drivers themselves).
- run as a daemon
- shutdown the device properly on SIGINT or SIGHUP
- clear the counter immediately instead of sleeping first

as well as updating the usage information. This has also been switched
over to getopt to deal with the optional timer duration specifier.

The changes themselves are harmless and isolated, and I've veried that
this works on sh and x86 without any problems.

git-svn-id: svn://busybox.net/trunk/busybox@7083 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Paul Mundt:
andersen [Tue, 22 Jul 2003 07:33:14 +0000 (07:33 +0000)]
Patch from Paul Mundt:

    The current SC_x references automatically assume that everyone uses ttyS/tts
    as their naming scheme for their serial ports. This isn't the case for quite
    a few architectures, including sh, sh64, h8, arm, etc.

git-svn-id: svn://busybox.net/trunk/busybox@7082 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMatteo Croce submitted a hdparm applet.
andersen [Tue, 22 Jul 2003 07:30:36 +0000 (07:30 +0000)]
Matteo Croce submitted a hdparm applet.

git-svn-id: svn://busybox.net/trunk/busybox@7081 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Jeff Angielski <jeff@theptrgroup.com> recognizing
andersen [Tue, 22 Jul 2003 05:57:29 +0000 (05:57 +0000)]
Patch from Jeff Angielski <jeff@theptrgroup.com> recognizing
his work on ftpput and ftpget.

git-svn-id: svn://busybox.net/trunk/busybox@7080 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFixup some little error in the webpage. Mention the Dell TrueMobile 1184.
andersen [Sat, 19 Jul 2003 08:19:21 +0000 (08:19 +0000)]
Fixup some little error in the webpage.  Mention the Dell TrueMobile 1184.

git-svn-id: svn://busybox.net/trunk/busybox@7077 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate required kernel version and note that libc5 is no longer
andersen [Wed, 16 Jul 2003 07:31:14 +0000 (07:31 +0000)]
Update required kernel version and note that libc5 is no longer
supported (it is unmaintained and lacks support for simple things
such as stdint.h) and uClibc is a better choice these days anyways.

git-svn-id: svn://busybox.net/trunk/busybox@7075 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFixup problem unconditionally converting all hard links to symlinks.
andersen [Wed, 16 Jul 2003 06:29:51 +0000 (06:29 +0000)]
Fixup problem unconditionally converting all hard links to symlinks.

git-svn-id: svn://busybox.net/trunk/busybox@7074 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate changelog and docs
andersen [Tue, 15 Jul 2003 07:52:41 +0000 (07:52 +0000)]
Update changelog and docs

git-svn-id: svn://busybox.net/trunk/busybox@7072 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDocument CONFIG_USE_BB_PWD_GRP
andersen [Tue, 15 Jul 2003 07:15:03 +0000 (07:15 +0000)]
Document CONFIG_USE_BB_PWD_GRP

git-svn-id: svn://busybox.net/trunk/busybox@7068 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate the default set of applets that are listed
andersen [Tue, 15 Jul 2003 00:31:25 +0000 (00:31 +0000)]
Update the default set of applets that are listed

git-svn-id: svn://busybox.net/trunk/busybox@7065 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoYet more preparation to make a release...
andersen [Tue, 15 Jul 2003 00:28:26 +0000 (00:28 +0000)]
Yet more preparation to make a release...

git-svn-id: svn://busybox.net/trunk/busybox@7064 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix a silly typo
andersen [Mon, 14 Jul 2003 22:14:49 +0000 (22:14 +0000)]
Fix a silly typo

git-svn-id: svn://busybox.net/trunk/busybox@7063 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoLooks like I forgot one little tiny detail...
andersen [Mon, 14 Jul 2003 21:50:51 +0000 (21:50 +0000)]
Looks like I forgot one little tiny detail...

git-svn-id: svn://busybox.net/trunk/busybox@7062 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate a bunch of docs. Run a script to update my email addr.
andersen [Mon, 14 Jul 2003 21:21:08 +0000 (21:21 +0000)]
Update a bunch of docs.  Run a script to update my email addr.

git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agodecouple delgroup and deluser
andersen [Mon, 14 Jul 2003 20:20:45 +0000 (20:20 +0000)]
decouple delgroup and deluser

git-svn-id: svn://busybox.net/trunk/busybox@7059 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Thomas Cameron:
andersen [Mon, 14 Jul 2003 19:37:08 +0000 (19:37 +0000)]
Patch from Thomas Cameron:

    Hello all,
    This patch adds more "Help" text to the config system.  Almost
    all applets now have a help entry.  Also, I cleaned up the spacing of
    the existing text so that things are consistent.  This patch is against
    this morning's CVS.

    Thomas Cameron
    CEI Systems, Inc.

git-svn-id: svn://busybox.net/trunk/busybox@7058 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUse standard types
andersen [Mon, 14 Jul 2003 19:32:40 +0000 (19:32 +0000)]
Use standard types

git-svn-id: svn://busybox.net/trunk/busybox@7057 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMichael Sternberg writes:
andersen [Mon, 14 Jul 2003 19:20:46 +0000 (19:20 +0000)]
Michael Sternberg writes:

    Latest BusyBox from CVS (Jul 7 2003).
    File coreutils/ls.c
    "if" at line 970 should be enclosed in #ifdef CONFIG_FEATURE_LS_SORTFILES
    "if" at line 976 should be enclosed in #ifdef CONFIG_FEATURE_LS_TIMESTAMPS

git-svn-id: svn://busybox.net/trunk/busybox@7056 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Lars Kellogg-Stedman:
andersen [Mon, 14 Jul 2003 19:18:43 +0000 (19:18 +0000)]
Patch from Lars Kellogg-Stedman:

    The attached two patches add config documentation to init/Config.in and
    fileutils/Config.in.

git-svn-id: svn://busybox.net/trunk/busybox@7055 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Lars Kellogg-Stedman:
andersen [Mon, 14 Jul 2003 19:14:26 +0000 (19:14 +0000)]
Patch from Lars Kellogg-Stedman:

    Busybox vi is installed in /bin/vi, but crontab was looking for
    /usr/bin/vi.  This patch makes crontab look for /bin/vi instead.

git-svn-id: svn://busybox.net/trunk/busybox@7054 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRequire that LFS is enabled to get fdisk
andersen [Mon, 14 Jul 2003 19:08:04 +0000 (19:08 +0000)]
Require that LFS is enabled to get fdisk

git-svn-id: svn://busybox.net/trunk/busybox@7053 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove all the llseek junk and just use regular old lseek. When DOLFS is
andersen [Mon, 14 Jul 2003 19:03:14 +0000 (19:03 +0000)]
Remove all the llseek junk and just use regular old lseek.  When DOLFS is
enabled, regular lseek is transparently promoted to lseek64 anyways, rendering
the llseek stuff pointless.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7052 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoOn second thought, this is a better way to fix things
andersen [Mon, 14 Jul 2003 08:49:43 +0000 (08:49 +0000)]
On second thought, this is a better way to fix things

git-svn-id: svn://busybox.net/trunk/busybox@7050 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDon't use Linux kernel headers
andersen [Mon, 14 Jul 2003 08:46:30 +0000 (08:46 +0000)]
Don't use Linux kernel headers
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7049 69ca8d6d-28ef-0310-b511-8ec308f3f277

19 years agoThis declaration no longer needs to hide when using dmalloc
andersen [Mon, 7 Jul 2003 06:10:31 +0000 (06:10 +0000)]
This declaration no longer needs to hide when using dmalloc

git-svn-id: svn://busybox.net/trunk/busybox@7046 69ca8d6d-28ef-0310-b511-8ec308f3f277