Glenn L McGrath [Fri, 29 Aug 2003 11:34:08 +0000 (11:34 -0000)]
Fix for compiling with ipv6
Glenn L McGrath [Fri, 29 Aug 2003 10:58:46 +0000 (10:58 -0000)]
"This function was not updating the argc and argv pointers to reflect
the arguments it consumed, which means the calling function encountered
them as well. As a result, a command like "ip -6 addr" was yielding a usage
error." - Philip Blundell
Glenn L McGrath [Fri, 29 Aug 2003 07:47:52 +0000 (07:47 -0000)]
label's dont work in v4 tunnels, patch by Eric Spakman
Glenn L McGrath [Fri, 29 Aug 2003 07:38:56 +0000 (07:38 -0000)]
Vodz, last patch 105
Busybox "mount" applet unsupport "user" option and
result: must have _BB_SUID_NEVER applet option (my bug).
Last patch have reducing 216 bytes for "su" applet also.
Glenn L McGrath [Fri, 29 Aug 2003 07:35:08 +0000 (07:35 -0000)]
Vodz, last patch 104
Glenn L McGrath [Fri, 29 Aug 2003 07:29:30 +0000 (07:29 -0000)]
vodz, last patch 103
Glenn L McGrath [Fri, 29 Aug 2003 06:25:04 +0000 (06:25 -0000)]
Correct logic in determining size of block to download, as pointed out
by Junio C Hamano
Glenn L McGrath [Thu, 28 Aug 2003 22:12:53 +0000 (22:12 -0000)]
"Typo and/or thinko: scanning till the end of NUL terminated string
should check the byte pointed at not the pointer itself." -junkio@
Glenn L McGrath [Thu, 28 Aug 2003 22:03:19 +0000 (22:03 -0000)]
"When the initial request by wget is responded by a 3XX redirect
response sent in chunked transfer encoding, the code path to
resubmit the request to the redirected URL forgets to reset
got_clen and chunked variables in the loop. If the redirected
URL does not use chunked transfer encoding, this causes the code
that slurps the body of the response to incorrectly try to parse
out the chunk length which does not exist." - junkio@
----------------------------------------------------------------------
Glenn L McGrath [Thu, 28 Aug 2003 21:55:22 +0000 (21:55 -0000)]
"When the filesize is known from content-length header, safe_fread is
always told to read sizeof(buf). This waits until the underlying
fread() to time-out for the last part of the downloaded body. Fix
this by sending the number of remaining bytes to read when known." -
junkio@
I reworked the logic in his patch
Glenn L McGrath [Thu, 28 Aug 2003 19:54:16 +0000 (19:54 -0000)]
*** empty log message ***
Glenn L McGrath [Thu, 28 Aug 2003 19:12:23 +0000 (19:12 -0000)]
Dont unlink when testing !
Always preserve creation date
Disable the -p option its for modification date
Remove some cpio header debugging noise
Syncronise file listing behaviour with upstream.
Robert Griebl [Tue, 26 Aug 2003 11:06:39 +0000 (11:06 -0000)]
Removed some debug printfs
Glenn L McGrath [Tue, 26 Aug 2003 04:50:23 +0000 (04:50 -0000)]
Syncronise some build files with busybox-cvs-
20030819
Glenn L McGrath [Tue, 26 Aug 2003 04:28:05 +0000 (04:28 -0000)]
Woops, depend on SHA1 not the option
Glenn L McGrath [Tue, 26 Aug 2003 04:25:59 +0000 (04:25 -0000)]
SHA1 options depend on SHA1
Glenn L McGrath [Tue, 26 Aug 2003 02:14:58 +0000 (02:14 -0000)]
Fix overflow for machines greater than 4GB, return unsigned int to avoid
a cast and for greater accuracy.
Eric Andersen [Fri, 22 Aug 2003 23:08:37 +0000 (23:08 -0000)]
"staywithu" writes:
In BusyBox v1.00-pre2,
commands like ls, df with -h option report a wrong file size for files larger than 4GBtye!!
For example,
when I execute 'ls -l', it reports
-rw-r--r-- 1 root root
5368709120 Aug 17 2003 large_stream.tp
when I execute 'ls -lh', I expect that
-rw-r--r-- 1 root root 5.0G Aug 17 2003 large_stream.tp
but it reports
-rw-r--r-- 1 root root 1.0G Aug 17 2003 large_stream.tp
I fixed this bug that...
Line 31 in libbb/human_readable.c and line 275 include/libbb.h
const char *make_human_readable_str(unsigned long size
=> const char *make_human_readable_str(unsigned long long size
It's OK!
Eric Andersen [Fri, 22 Aug 2003 21:15:07 +0000 (21:15 -0000)]
trivial doc fix
Eric Andersen [Fri, 22 Aug 2003 20:53:38 +0000 (20:53 -0000)]
Fixup 'make clean' to properly clean the _install directory
Glenn L McGrath [Tue, 19 Aug 2003 03:49:00 +0000 (03:49 -0000)]
Typo
Glenn L McGrath [Thu, 14 Aug 2003 02:55:15 +0000 (02:55 -0000)]
Change hardlink handling for tar to work the same way as cpio
Manuel Novoa III [Thu, 14 Aug 2003 02:28:49 +0000 (02:28 -0000)]
Fix a bug reported by junkio@cox.net involving the mode_chars index.
Eric Andersen [Wed, 13 Aug 2003 19:56:33 +0000 (19:56 -0000)]
Patch from Paul Mundt (lethal) adding sh64 insmod support for busybox
Manuel Novoa III [Wed, 13 Aug 2003 17:48:47 +0000 (17:48 -0000)]
Rewrite timescmd() function to avoid the use of floating point and to
correct a bug in the seconds display where something like 65 seconds
would be output as "1m65.000000s".
Manuel Novoa III [Wed, 13 Aug 2003 12:11:33 +0000 (12:11 -0000)]
Remove unnecessary pointer dereference.
Eric Andersen [Tue, 12 Aug 2003 06:55:03 +0000 (06:55 -0000)]
fix style sheet so site doesn't look like crap with IE
Manuel Novoa III [Sat, 9 Aug 2003 02:57:55 +0000 (02:57 -0000)]
Adjust Erik's change, as I don't claim copyright of the applet.
Eric Andersen [Fri, 8 Aug 2003 23:41:50 +0000 (23:41 -0000)]
Move shell descriptions to the config system
Eric Andersen [Fri, 8 Aug 2003 23:40:12 +0000 (23:40 -0000)]
Use the new 'select' option to make the shell config
much less evil and far more obvious.
-Erik
Eric Andersen [Fri, 8 Aug 2003 23:12:12 +0000 (23:12 -0000)]
Begin using the new "select" option. Good stuff!
Eric Andersen [Fri, 8 Aug 2003 22:26:06 +0000 (22:26 -0000)]
Implement a minimalist 'last' which allows the LEAF project to
no longer need dumtp. Remove the 'dumtp' applet.
-Erik
Eric Andersen [Fri, 8 Aug 2003 22:13:41 +0000 (22:13 -0000)]
quiet some noise
Eric Andersen [Fri, 8 Aug 2003 20:09:03 +0000 (20:09 -0000)]
Kent Robotti noted that mt.c uses "rewind" not "rew"
Eric Andersen [Fri, 8 Aug 2003 20:04:56 +0000 (20:04 -0000)]
Patch from Kent Robotti to being fdisk in sync with v2.12 final.
Eric Andersen [Fri, 8 Aug 2003 08:57:03 +0000 (08:57 -0000)]
Remove unnecessary defamatory comment
Eric Andersen [Fri, 8 Aug 2003 07:39:57 +0000 (07:39 -0000)]
Fix a stupid bug I introduced several months ago
Eric Andersen [Wed, 6 Aug 2003 11:22:36 +0000 (11:22 -0000)]
Begin preparing for another release
Eric Andersen [Wed, 6 Aug 2003 11:20:52 +0000 (11:20 -0000)]
Latest dash update from vodz
Eric 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.
Eric 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.
Eric 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.
Eric 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?
Eric 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
Eric 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,
Eric 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.
Eric 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.
Eric Andersen [Wed, 6 Aug 2003 07:43:58 +0000 (07:43 -0000)]
Fixup segfault on 'kill -q'
Eric 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)
Eric Andersen [Tue, 5 Aug 2003 05:59:48 +0000 (05:59 -0000)]
Seems I missed a spot
Eric 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
Manuel Novoa III [Sat, 2 Aug 2003 00:19:29 +0000 (00:19 -0000)]
Might as well get my name in AUTHORS before 1.0...
Manuel Novoa III [Sat, 2 Aug 2003 00:04:18 +0000 (00:04 -0000)]
Save 0.5K.
Eric Andersen [Fri, 1 Aug 2003 22:27:57 +0000 (22:27 -0000)]
Remove code that too agressively disabled inlines
Eric Andersen [Thu, 31 Jul 2003 17:50:17 +0000 (17:50 -0000)]
Minor cleanup
Glenn L McGrath [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.
Eric Andersen [Wed, 30 Jul 2003 17:17:33 +0000 (17:17 -0000)]
Remove LRP (now defunct) and replace it with leaf.
Eric Andersen [Wed, 30 Jul 2003 09:33:54 +0000 (09:33 -0000)]
Update webpage and changelog for release
Eric 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
Eric Andersen [Wed, 30 Jul 2003 08:40:37 +0000 (08:40 -0000)]
last_patch100 from vidz updating fdisk to 2.12pre
Eric Andersen [Wed, 30 Jul 2003 08:29:56 +0000 (08:29 -0000)]
Do not require that the signal number be specified
Eric 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.
Eric 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
Eric 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
Eric 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.
Eric 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).
Eric Andersen [Tue, 29 Jul 2003 07:45:05 +0000 (07:45 -0000)]
Set libbb dead last in the link order
Eric Andersen [Tue, 29 Jul 2003 07:37:39 +0000 (07:37 -0000)]
Match up interfaces
Eric Andersen [Tue, 29 Jul 2003 07:15:17 +0000 (07:15 -0000)]
Fixup typo noticed by Nick Fedchik
Eric 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
Eric 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).
Eric 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.
Eric Andersen [Mon, 28 Jul 2003 10:34:38 +0000 (10:34 -0000)]
bump version to 1.0.0-pre2
Eric Andersen [Mon, 28 Jul 2003 10:13:03 +0000 (10:13 -0000)]
A small update to the new docs. Plenty more is needed...
Eric Andersen [Mon, 28 Jul 2003 09:59:05 +0000 (09:59 -0000)]
Patch from vodz to update httpd usage
Eric 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
Eric Andersen [Mon, 28 Jul 2003 09:37:56 +0000 (09:37 -0000)]
Avoid shadowing built-in function `log'
Eric Andersen [Mon, 28 Jul 2003 09:31:28 +0000 (09:31 -0000)]
Fixup bugs in last patch
Eric Andersen [Mon, 28 Jul 2003 08:31:56 +0000 (08:31 -0000)]
Update docs a bit
Eric 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
Eric 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
Eric Andersen [Mon, 28 Jul 2003 06:42:59 +0000 (06:42 -0000)]
Add a "search google" button
Eric 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:
Eric Andersen [Sat, 26 Jul 2003 09:33:16 +0000 (09:33 -0000)]
There should be only one instance of CONFIG_FEATURE_AUTOWIDTH
Eric Andersen [Sat, 26 Jul 2003 09:27:02 +0000 (09:27 -0000)]
Allow people to use the full blown iproute2 programs with busybox ifupdown.
Eric 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
Eric Andersen [Sat, 26 Jul 2003 09:10:35 +0000 (09:10 -0000)]
cleanup and add long options
Eric 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
Eric 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.
Eric Andersen [Sat, 26 Jul 2003 08:07:56 +0000 (08:07 -0000)]
Some additional description based on a patch from Terje Kvernes
Eric 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.
Eric 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
Eric 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...
Eric 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.
Manuel Novoa III [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.
Eric Andersen [Tue, 22 Jul 2003 22:15:21 +0000 (22:15 -0000)]
eliminate DOSTATIC, DODEBUG, etc and name them sensibly
Eric Andersen [Tue, 22 Jul 2003 17:14:10 +0000 (17:14 -0000)]
Several simplifications and indenting changes, per
last_patch97 from vodz
Eric Andersen [Tue, 22 Jul 2003 17:04:54 +0000 (17:04 -0000)]
As vodz noticed, I screwed up reboot
Eric Andersen [Tue, 22 Jul 2003 17:03:24 +0000 (17:03 -0000)]
the word "only" is repeated for CONFIG_FEATURE_SHADOWPASSWDS
Eric Andersen [Tue, 22 Jul 2003 10:18:17 +0000 (10:18 -0000)]
There is no need to expose CONFIG_FEATURE_TRACEROUTE_SO_DEBUG