people/mcb30/busybox.git
18 years agoPatch from duane no-name, optionally request additional items
bug1 [Fri, 5 Mar 2004 14:35:00 +0000 (14:35 +0000)]
Patch from duane no-name, optionally request additional items

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

18 years agoPatch by Andrew Victor,
bug1 [Fri, 5 Mar 2004 14:25:49 +0000 (14:25 +0000)]
Patch by Andrew Victor,
In arpping.h, fix structure alignment of "struct arpMsg".
GCC can insert padding in the structure which causes udhcpd to send an
invalid ARP packet on the network.  It will then not receive a valid
reply, which can cause it to assign an IP address that's already in use
on the network.
(With kernels before 2.4.20, the "struct ethhdr" in linux/if_ether.h
wasn't marked as packed.  This is also an issue if your toolchain was
built with a pre-2.4.20 kernel).

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

18 years agoFix a typo, patch by Andrew Victor
bug1 [Fri, 5 Mar 2004 14:23:16 +0000 (14:23 +0000)]
Fix a typo, patch by Andrew Victor

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

18 years agoPatch from Tony J. White to allow paths to be configured
bug1 [Fri, 5 Mar 2004 13:23:40 +0000 (13:23 +0000)]
Patch from Tony J. White to allow paths to be configured

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

18 years agoPatch by Denis Vlasenko to add forground support.
bug1 [Fri, 5 Mar 2004 13:11:05 +0000 (13:11 +0000)]
Patch by Denis Vlasenko to add forground support.

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

18 years agoFix debugging output, patch by Hideki IWAMOTO
bug1 [Fri, 5 Mar 2004 13:04:39 +0000 (13:04 +0000)]
Fix debugging output, patch by Hideki IWAMOTO

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

18 years agoPatch by Felipe Kellermann to fix a compiler compatability problem
bug1 [Fri, 5 Mar 2004 12:55:30 +0000 (12:55 +0000)]
Patch by Felipe Kellermann to fix a compiler compatability problem

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

18 years agoPatch from Steven Scholz to fix compiler warnings
bug1 [Fri, 5 Mar 2004 09:38:16 +0000 (09:38 +0000)]
Patch from Steven Scholz to fix compiler warnings

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

18 years agoNew applet, eject, by Peter Willis
bug1 [Fri, 5 Mar 2004 07:26:28 +0000 (07:26 +0000)]
New applet, eject, by Peter Willis

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

18 years agoClose bracket in description from Peter Willis's eject applet
bug1 [Fri, 5 Mar 2004 06:47:25 +0000 (06:47 +0000)]
Close bracket in description from Peter Willis's eject applet

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

18 years agoPatch from Vernon Sauder.
bug1 [Fri, 5 Mar 2004 05:47:19 +0000 (05:47 +0000)]
Patch from Vernon Sauder.
The off_t type is not a consistent size; it depends on the kernel options
(something about large file support). Therefore, the format string for
printing an address is not always the same.

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

18 years agoFix a compile error identiefied by Steven Scholz.
bug1 [Wed, 3 Mar 2004 21:12:16 +0000 (21:12 +0000)]
Fix a compile error identiefied by Steven Scholz.
Declare variables first for compatability.

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

18 years agoCheck file has execute permission for the current user, minor formating
bug1 [Mon, 1 Mar 2004 08:32:49 +0000 (08:32 +0000)]
Check file has execute permission for the current user, minor formating

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

18 years agoQuick fix for tftp truncation bug
bug1 [Thu, 26 Feb 2004 07:47:20 +0000 (07:47 +0000)]
Quick fix for tftp truncation bug

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

18 years agoPatch from Denis Dowling to fix a ocuple of usage entries
bug1 [Wed, 25 Feb 2004 10:35:55 +0000 (10:35 +0000)]
Patch from Denis Dowling to fix a ocuple of usage entries

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

18 years agoFix option handling, -i or -t must be given, if both ignore the -t.
bug1 [Wed, 25 Feb 2004 09:30:06 +0000 (09:30 +0000)]
Fix option handling, -i or -t must be given, if both ignore the -t.
Use bb_getopt_ulflags.

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

18 years agoJoe.C, joe at numa dot com dot tw writes:
andersen [Tue, 24 Feb 2004 07:28:38 +0000 (07:28 +0000)]
Joe.C, joe at numa dot com dot tw writes:

Hi,

When downloading files over slow network (e.g. wireless/
internet) using IE, sometimes it will stop downloading and
show error message 'connection closed' when the download
is almost complete. This is because IE can't handle server
close connection properly.

Apache http_main.c fix this problem by close the connection
after client close the connection. This patch do exactly the
same thing. Please consider include this patch.

Joe.C

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

18 years agoPrepare for release
andersen [Mon, 23 Feb 2004 09:14:07 +0000 (09:14 +0000)]
Prepare for release

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

18 years agobb_full_fd_action was incorrectly returning an error message causing
bug1 [Mon, 23 Feb 2004 08:11:07 +0000 (08:11 +0000)]
bb_full_fd_action was incorrectly returning an error message causing
major breaking.

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

18 years agoBump up version in preparation for -pre8
andersen [Sun, 22 Feb 2004 12:27:04 +0000 (12:27 +0000)]
Bump up version in preparation for -pre8

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

18 years agoFernando Silveira writes:
andersen [Sun, 22 Feb 2004 12:25:47 +0000 (12:25 +0000)]
Fernando Silveira writes:

Hi,

  Well, I made this patch a long time ago (08/2002) because it was a
  need of a project, but had no time to send it to you. It adds support
  to `autologin' option of the telnet protocol. It has been used since
  made with busybox 0.60.3 at production and I had no problems with it.
  I have ported it to the HEAD revision of the CVS server (20040211) and
  I hope you enjoy and apply it to the official sources. :)

Thanks a lot!

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

18 years agoFix from Paul Kortekaas for syslog -C option, size should be in kB.
bug1 [Sun, 22 Feb 2004 12:17:33 +0000 (12:17 +0000)]
Fix from Paul Kortekaas for syslog -C option, size should be in kB.

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

18 years agoPatch from Dmitry Zakharov, this line was missedfrom the last patch
bug1 [Sun, 22 Feb 2004 11:55:09 +0000 (11:55 +0000)]
Patch from Dmitry Zakharov, this line was missedfrom the last patch

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

18 years agoFor the time being, revert the changes for detecting copying
andersen [Sun, 22 Feb 2004 11:46:49 +0000 (11:46 +0000)]
For the time being, revert the changes for detecting copying
a directory into itself.  It is harder to do this correctly
than it appears.  Not trying at all seems a better compromise
for the time being, untill we can implement this correctly.

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

18 years agoPatch from Chris Larson (kergoth), to allow multiple directores to be
bug1 [Sun, 22 Feb 2004 11:35:13 +0000 (11:35 +0000)]
Patch from Chris Larson (kergoth), to allow multiple directores to be
unmounted at once.

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

18 years agoPatch from Vodz, cleanup memory usage, send strdup error messages to
bug1 [Sun, 22 Feb 2004 11:25:13 +0000 (11:25 +0000)]
Patch from Vodz, cleanup memory usage, send strdup error messages to
syslog.

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

18 years agoVodz. last_patch_128
bug1 [Sun, 22 Feb 2004 11:13:28 +0000 (11:13 +0000)]
Vodz. last_patch_128
- declare applet_using as static from applets.c
- small correction to cmdedit,
   previous version cleared history after Ctrl-C
- small spelling correction (by Friedrich Lobenstock)

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

18 years agoPatch from James Zhu, telnetd window resizing support.
bug1 [Sun, 22 Feb 2004 09:45:57 +0000 (09:45 +0000)]
Patch from James Zhu, telnetd window resizing support.

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

18 years agoUse bb_getopt_ulflags, marginal saving, better argument checking.
bug1 [Sun, 22 Feb 2004 09:11:33 +0000 (09:11 +0000)]
Use bb_getopt_ulflags, marginal saving, better argument checking.

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

18 years agoUse /var/lib/hwclock for adjtime, its really a state file rather than a
bug1 [Sun, 22 Feb 2004 08:33:37 +0000 (08:33 +0000)]
Use /var/lib/hwclock for adjtime, its really a state file rather than a
config file, so it should be in /etc, FHS mentions it also.

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

18 years agoPatch from Florian Schirmer. compile fix for debug builds
bug1 [Sun, 22 Feb 2004 07:38:36 +0000 (07:38 +0000)]
Patch from Florian Schirmer. compile fix for debug builds

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

18 years agoPatch from Hideki IWAMOTO, output debugging messages to stderr
bug1 [Sun, 22 Feb 2004 07:20:25 +0000 (07:20 +0000)]
Patch from Hideki IWAMOTO, output debugging messages to stderr

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

18 years agoremove duplicate header declarations
bug1 [Sun, 22 Feb 2004 04:58:36 +0000 (04:58 +0000)]
remove duplicate header declarations

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

18 years agoFixup braces (patch from Thomas Geulig), run through indent and manually
bug1 [Sun, 22 Feb 2004 04:44:21 +0000 (04:44 +0000)]
Fixup braces (patch from Thomas Geulig), run through indent and manually
adjust.

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

18 years agoThomas Geulig, remove duplicate header
bug1 [Sun, 22 Feb 2004 04:17:26 +0000 (04:17 +0000)]
Thomas Geulig, remove duplicate header

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

18 years agoUpdate usage for ftpget and ftpput
bug1 [Sun, 22 Feb 2004 04:12:58 +0000 (04:12 +0000)]
Update usage for ftpget and ftpput

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

18 years agoPtch by Hideki IWAMOTO, fix a bug preventing tftp from getting or
bug1 [Sun, 22 Feb 2004 03:33:53 +0000 (03:33 +0000)]
Ptch by Hideki IWAMOTO, fix a bug preventing tftp from getting or
putting more than 0xffff blocks.

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

18 years agoReturn 1 upon failure
bug1 [Sun, 22 Feb 2004 02:58:57 +0000 (02:58 +0000)]
Return 1 upon failure

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

18 years agoNo need to check proxy env variable twice, ignore proxy env variable if
bug1 [Sun, 22 Feb 2004 00:27:34 +0000 (00:27 +0000)]
No need to check proxy env variable twice, ignore proxy env variable if
its set to 0

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

18 years agoSometimes i get carried away with the use of function pointers, im sure
bug1 [Sat, 21 Feb 2004 09:20:56 +0000 (09:20 +0000)]
Sometimes i get carried away with the use of function pointers, im sure
it seemed like a good idea at the time.

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

18 years agoUse return instead of exit, use == instead of & ==, left justify labels,
bug1 [Sat, 21 Feb 2004 07:49:54 +0000 (07:49 +0000)]
Use return instead of exit, use == instead of & ==, left justify labels,
adjustment of whitespace.

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

18 years agoDocument missing cp options
andersen [Fri, 20 Feb 2004 09:55:37 +0000 (09:55 +0000)]
Document missing cp options

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

18 years agoFix up hard links
bug1 [Fri, 20 Feb 2004 02:34:42 +0000 (02:34 +0000)]
Fix up hard links

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

18 years agoA strict interpretation of the ustar format requires the type flag to be
bug1 [Fri, 20 Feb 2004 02:25:18 +0000 (02:25 +0000)]
A strict interpretation of the ustar format requires the type flag to be
interpreted, we cannot depend on the file type being set in the mode
field.

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

18 years agoAdd extra comments, freakout if a pax archive is encoutered.
bug1 [Thu, 19 Feb 2004 08:48:30 +0000 (08:48 +0000)]
Add extra comments, freakout if a pax archive is encoutered.

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

18 years agoChris Larson (kergoth) writes:
andersen [Thu, 19 Feb 2004 01:52:29 +0000 (01:52 +0000)]
Chris Larson (kergoth) writes:

As Manuel points out, this is a flawed fix, and doesnt fix the
following:

mkdir -p cpa cpb cpc
cp -a cpa cpa/cpb/cpc

Attached what appears to be a more sane fix.  Apply on top of previous.
Please confirm sanity.

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

18 years agoChris Larson (kergoth) writes:
andersen [Thu, 19 Feb 2004 00:44:08 +0000 (00:44 +0000)]
Chris Larson (kergoth) writes:

I was adding -s/--symbolic-link support to busybox cp when I noticed a
bug with -r/-a.  Test case:

mkdir -p test/out
cd test
busybox cp -a * out/

Will never return until we run out of open files or similar.
Coreutils cp on the other hand will error with "cannot copy a directory,
`out', into itself, `out'".  Patch attached.

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

18 years agoDont use same variable and struct name
bug1 [Wed, 18 Feb 2004 13:19:58 +0000 (13:19 +0000)]
Dont use same variable and struct name

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

18 years agoFormatting
bug1 [Wed, 18 Feb 2004 13:12:53 +0000 (13:12 +0000)]
Formatting

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

18 years agoremove debugging
bug1 [Wed, 18 Feb 2004 12:58:00 +0000 (12:58 +0000)]
remove debugging

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

18 years agoPatch from OpenWrt.
mjn3 [Wed, 18 Feb 2004 10:14:17 +0000 (10:14 +0000)]
Patch from OpenWrt.

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

18 years agoAdd -i option to sed, to edit files in-place.
landley [Wed, 18 Feb 2004 09:54:15 +0000 (09:54 +0000)]
Add -i option to sed, to edit files in-place.

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

18 years agoFix vstype[] to match VS* defines. Patch from OpenWrt by mbm.
mjn3 [Wed, 18 Feb 2004 09:40:41 +0000 (09:40 +0000)]
Fix vstype[] to match VS* defines.  Patch from OpenWrt by mbm.

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

18 years agoRemove the unused CONFIG_FEATURE_HTTPD_SET_CGI_VARS_TO_ENV option.
andersen [Tue, 17 Feb 2004 20:08:11 +0000 (20:08 +0000)]
Remove the unused CONFIG_FEATURE_HTTPD_SET_CGI_VARS_TO_ENV option.

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

18 years agoMark Lord writes:
andersen [Tue, 17 Feb 2004 20:04:34 +0000 (20:04 +0000)]
Mark Lord writes:

The config file processing for inetd in busybox-1.00-pre7 and newer
is broken -- the saved command argv[] values overwrite each other.

Patch to fix it is attached.

Cheers
--
Mark Lord
Real-Time Remedies Inc.

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

18 years agoAdd the -r option, patch from Rob with some help from myself.
bug1 [Tue, 17 Feb 2004 12:22:21 +0000 (12:22 +0000)]
Add the -r option, patch from Rob with some help from myself.

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

18 years agoRemove debugging
bug1 [Tue, 17 Feb 2004 12:04:13 +0000 (12:04 +0000)]
Remove debugging

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

18 years agoDont strip trailing '/' until _after_ i test to set if its there !
bug1 [Tue, 17 Feb 2004 11:55:06 +0000 (11:55 +0000)]
Dont strip trailing '/' until _after_ i test to set if its there !

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

18 years agoPatch from Florian Schirmer <jolt@tuxbox.org>. When I rewrote the parser,
mjn3 [Tue, 17 Feb 2004 10:16:21 +0000 (10:16 +0000)]
Patch from Florian Schirmer <jolt@tuxbox.org>.  When I rewrote the parser,
I overlooked the case of someone wanting to use a valid but empty suid
config file.

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

18 years agoWoops, im getting ahead of myself, we dont have the -r (refernece)
bug1 [Tue, 17 Feb 2004 07:58:04 +0000 (07:58 +0000)]
Woops, im getting ahead of myself, we dont have the -r (refernece)
option yet

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

18 years agodefine option names to be clearer, simplify nested if statements, remove
bug1 [Tue, 17 Feb 2004 07:51:31 +0000 (07:51 +0000)]
define option names to be clearer, simplify nested if statements, remove
un-needed if statement, minor indenting change

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

18 years agoAvoid naming conflict with symbol in newer glibc headers
andersen [Sat, 14 Feb 2004 21:33:39 +0000 (21:33 +0000)]
Avoid naming conflict with symbol in newer glibc headers

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

18 years agoAccomodate the fact that newer libc versions may in fact not
andersen [Fri, 13 Feb 2004 08:09:43 +0000 (08:09 +0000)]
Accomodate the fact that newer libc versions may in fact not
contain query_module and friends and more

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

18 years agooops. Leave the default feature set enbled for now...
andersen [Tue, 10 Feb 2004 01:30:21 +0000 (01:30 +0000)]
oops.  Leave the default feature set enbled for now...

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

18 years agoInitial effort at disabling job control as well
andersen [Tue, 10 Feb 2004 01:28:36 +0000 (01:28 +0000)]
Initial effort at disabling job control as well

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

18 years agoSupport disabling pipe and redirect support
andersen [Tue, 10 Feb 2004 01:07:45 +0000 (01:07 +0000)]
Support disabling pipe and redirect support

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

18 years agoUpdate URL
andersen [Mon, 9 Feb 2004 10:57:04 +0000 (10:57 +0000)]
Update URL

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

18 years agoBuffalo appears to have resolved their GPL problems
andersen [Mon, 9 Feb 2004 10:01:01 +0000 (10:01 +0000)]
Buffalo appears to have resolved their GPL problems

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

18 years agoRichard Kojedzinszky writes:
andersen [Fri, 6 Feb 2004 10:36:08 +0000 (10:36 +0000)]
Richard Kojedzinszky writes:

Hi All,

I aplogoize for the mistake, but i have just recognized that somehow the
last patch I sent in was wrong, and a '0' was instead of a '-1'. Because
of this, vi does behave the wrong way. So again, it should be the last
patch for vi. This is for pre7.

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

18 years agoPatch from vodz, based on bug report from Richard Kojedzinszky:
andersen [Fri, 6 Feb 2004 10:33:19 +0000 (10:33 +0000)]
Patch from vodz, based on bug report from Richard Kojedzinszky:

Richard,

>I have a problem, which I can reproduce now. I am using pre7 version of
>busybox, and the tab completion works fine. I mean, with an empty command
>line I press the TAB twice, and ash shows me the available commands. But
>when i process the profile file below, as
> $ . /etc/profile
>then it stops working, and the double-tab lists the directories available
>from the cwd, and not the commands. Has someone else meet this problem
>before, or am i doing something wrong?
>
>This is  my '/etc/profile':
>- ---
># System profile
>
>PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
>export PATH
>trap ":" INT QUIT TERM
>
>export PS1="\h \w # "

Thanks. Patch attached.

--w
vodz

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

18 years agoMake the loop support stuff be much less evil, and make it cope
andersen [Fri, 6 Feb 2004 07:16:36 +0000 (07:16 +0000)]
Make the loop support stuff be much less evil, and make it cope
with 2.6.x asm/posix_types.h, which has done singularly evil thing
by yanking __kernel_dev_t and renaming it.  The loop interface was
really poorly designed in the first place.  The new 64 bit loop
interface looks to be somewhat less horrible, too bad it is only
present in 2.6.x kernels.
 -Erik

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

18 years agoEliminate use of a kernel scsi header file.
andersen [Fri, 6 Feb 2004 05:26:58 +0000 (05:26 +0000)]
Eliminate use of a kernel scsi header file.

Prevent potentially misaligned accesses while indexing a pointer
to the partition table, which would be a bad thing on i.e. arm.

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

18 years agoMake sure stdlib.h is always included before dmalloc.h to avoid problems
mjn3 [Thu, 5 Feb 2004 14:45:58 +0000 (14:45 +0000)]
Make sure stdlib.h is always included before dmalloc.h to avoid problems
parsing problems.

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

18 years agoVladimir N. Oleynik writes:
andersen [Thu, 5 Feb 2004 13:52:03 +0000 (13:52 +0000)]
Vladimir N. Oleynik writes:

Hi, Glenn.

Current CVS "ls" applet have small problem: some options
ignoring. Last patch attached ;-)

--w
vodz

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

18 years agoVladimir N. Oleynik writes:
andersen [Thu, 5 Feb 2004 13:49:29 +0000 (13:49 +0000)]
Vladimir N. Oleynik writes:

Ok. I found my mistake :(
The trivial patch attached.

--w
vodz

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

18 years agoElaborate on CONFIG_SELINUX, and explain that most people should
andersen [Thu, 5 Feb 2004 00:18:26 +0000 (00:18 +0000)]
Elaborate on CONFIG_SELINUX, and explain that most people should
not enbable this option.

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

18 years agoGrammar fix
andersen [Wed, 4 Feb 2004 12:07:40 +0000 (12:07 +0000)]
Grammar fix

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

18 years agoMinor grammar fixup
andersen [Wed, 4 Feb 2004 11:59:48 +0000 (11:59 +0000)]
Minor grammar fixup

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

18 years agoBump version number for release
andersen [Wed, 4 Feb 2004 11:44:58 +0000 (11:44 +0000)]
Bump version number for release

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

18 years agoRichard Kojedzinszky writes:
andersen [Wed, 4 Feb 2004 11:19:44 +0000 (11:19 +0000)]
Richard Kojedzinszky writes:

Hi,

I've noticed the bug also, and here is another patch for it. I hope it'll
not introduce more bugs. Not too nice, but works for me.

Here it is for busybox-1.00-pre6

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

18 years agoJoe.C writes:
andersen [Wed, 4 Feb 2004 11:10:28 +0000 (11:10 +0000)]
Joe.C writes:

Hi,

   When httpd connection is closed, bosybox httpd will
not stop reading from CGI program. This patch fix this
problem. It check the return value of bb_full_write and
stop reading from CGI if the connection is closed.
Please apply this patch.

Joe.C

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

18 years agoJean Wolter writes:
andersen [Wed, 4 Feb 2004 11:01:19 +0000 (11:01 +0000)]
Jean Wolter writes:

Hello,

when calling seq with

    seq 1 1

it generates an "endless" list of numbers until the counter wraps and
reaches 1 again. The follwoing small patch should introduce the
expected behavior (output of 1 and termination):

regards,
Jean

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

18 years agoRob Landley writes:
andersen [Wed, 4 Feb 2004 10:57:46 +0000 (10:57 +0000)]
Rob Landley writes:

While building glibc with busybox as part of the development environment, I
found a bug in glibc's regexec can throw sed into an endless loop.  This
fixes it.  Should I put an #ifdef around it or something?  (Note, this patch
also contains the "this is not gnu sed 4.0" hack I posted earlier, which is
also needed to build glibc...)

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

18 years agoThe variable 'complementaly' used to be allocated with calloc, which zeroed it
andersen [Wed, 4 Feb 2004 10:48:37 +0000 (10:48 +0000)]
The variable 'complementaly' used to be allocated with calloc, which zeroed it
out during the allocation process.  When vodz changed it to be allocated on the
stack, he forgot to explicitly zero it, leaving its value filled with whatever
used to be sitting on the stack.  It would garbage values, depending on the
garbage that happened to be sitting on the stack when the function was called.
The result was that applets using bb_getopt_ulflags() were showing
unpredictable behavior (such as segfaults), which naturally broke many things.

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

18 years agoBug fix from Tito.
bug1 [Wed, 4 Feb 2004 08:27:57 +0000 (08:27 +0000)]
Bug fix from Tito.

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

18 years agoVodz last_patch_125_2, this patch have:
bug1 [Wed, 4 Feb 2004 08:24:39 +0000 (08:24 +0000)]
Vodz last_patch_125_2, this patch have:
- synced with dash 0.4.21
- better handle trap "cmds..." SIGINT (strange, i make bad hack for ash
  and cmdedit, but this work only with this...)
- may be haven`t problem with Ctrl-D

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

18 years agoRewrite parse_config_file(). Among the old version's problems:
mjn3 [Sun, 1 Feb 2004 10:03:05 +0000 (10:03 +0000)]
Rewrite parse_config_file().  Among the old version's problems:
  No checking for lines that were too long.
  No checking that fgets returning NULL was actually due to EOF.
  Various whitespace handling inconsistencies.
  Bloat (switches and multiple identical function calls).
  Failure to check for trailing characters in some cases.
  Dynamicly allocated memory was not free()d on error.
Given that this controls suid/sgid behavior, the sloppy coding was
really inexcusable.  :-(

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

18 years agoUse bb_xstrdup() instead of strdup().
mjn3 [Sun, 1 Feb 2004 07:34:28 +0000 (07:34 +0000)]
Use bb_xstrdup() instead of strdup().

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

18 years agoFix http proxy use, bytes were swapped
bug1 [Sat, 31 Jan 2004 08:08:57 +0000 (08:08 +0000)]
Fix http proxy use, bytes were swapped

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

18 years agoMention changes to the daily snapshots
andersen [Sat, 31 Jan 2004 06:11:39 +0000 (06:11 +0000)]
Mention changes to the daily snapshots

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

18 years agoUpdate docs for release
andersen [Sat, 31 Jan 2004 05:44:07 +0000 (05:44 +0000)]
Update docs for release

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

18 years agoBump version for release
andersen [Sat, 31 Jan 2004 05:27:17 +0000 (05:27 +0000)]
Bump version for release

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

18 years agoUse standard C99 types
andersen [Fri, 30 Jan 2004 23:45:53 +0000 (23:45 +0000)]
Use standard C99 types

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

18 years agoUse proper C99 types
andersen [Fri, 30 Jan 2004 22:59:50 +0000 (22:59 +0000)]
Use proper C99 types

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

18 years agoFixup use of 'u_int' to instead use 'unsigned int'
andersen [Fri, 30 Jan 2004 22:56:20 +0000 (22:56 +0000)]
Fixup use of 'u_int' to instead use 'unsigned int'

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

18 years agos/u_int/uint/g
andersen [Fri, 30 Jan 2004 22:54:20 +0000 (22:54 +0000)]
s/u_int/uint/g

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

18 years agos/u_int/unsigned int/g
andersen [Fri, 30 Jan 2004 22:52:27 +0000 (22:52 +0000)]
s/u_int/unsigned int/g
s/u_short/unsigned short/g

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

18 years agoUse proper C99 types
andersen [Fri, 30 Jan 2004 22:40:05 +0000 (22:40 +0000)]
Use proper C99 types

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

18 years agoUse proper C99 types throughout. So not use silly typedefs.
andersen [Fri, 30 Jan 2004 22:31:58 +0000 (22:31 +0000)]
Use proper C99 types throughout.  So not use silly typedefs.

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

18 years agoAvoid symbol naming conflict with libm
andersen [Fri, 30 Jan 2004 22:24:32 +0000 (22:24 +0000)]
Avoid symbol naming conflict with libm

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