people/mcb30/busybox.git
16 years agocommiting:
pgf [Mon, 1 Aug 2005 22:52:09 +0000 (22:52 +0000)]
commiting:
    0000028 03-16-05 patch: new setsid applet

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

16 years agofix bbconfigopts.h depend
vapier [Mon, 1 Aug 2005 20:49:32 +0000 (20:49 +0000)]
fix bbconfigopts.h depend

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

16 years agoscrew around with whitespace
vapier [Mon, 1 Aug 2005 20:48:00 +0000 (20:48 +0000)]
screw around with whitespace

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

16 years agocommiting:
pgf [Mon, 1 Aug 2005 19:39:47 +0000 (19:39 +0000)]
commiting:
    0000073: Add option to inetd applet to run in foreground
this option was already there for uclinux -- this just exposes
it in the normal case as well.

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

16 years agocommiting patch from bug 71:
pgf [Mon, 1 Aug 2005 19:33:30 +0000 (19:33 +0000)]
commiting patch from bug 71:
    0000071: patch: implement "--color" option for ls coloring control

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

16 years agoapplying patch for bug 72:
pgf [Mon, 1 Aug 2005 18:12:30 +0000 (18:12 +0000)]
applying patch for bug 72:
    0000072: Add applet to redirect console output via ioctl(..., TIOCCONS)
applet name changed to setconsole, since suse has a very similar
utility.  better to treat differences as bugs than invent a new command.

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

16 years agoapplying patch from bug 24:
pgf [Mon, 1 Aug 2005 16:43:13 +0000 (16:43 +0000)]
applying patch from bug 24:
    0000024 03-16-05 patch: allow init to set controlling tty

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

16 years agonew config display applet, from bug 46. i've changed the name
pgf [Mon, 1 Aug 2005 16:04:40 +0000 (16:04 +0000)]
new config display applet, from bug 46.  i've changed the name
of the applet from "config" to "bbconfig", and renamed the
source filenames and symbols to match appropriately.

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

16 years agoallow suppression of default client-id. fixes bug 000037. allows
pgf [Mon, 1 Aug 2005 14:31:13 +0000 (14:31 +0000)]
allow suppression of default client-id.  fixes bug 000037.  allows
busybox to match kernel and u-boot behavior with respect to client-id.

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

16 years agopatch by pkj in Bug 3 to not export all make variables
vapier [Sun, 31 Jul 2005 22:50:17 +0000 (22:50 +0000)]
patch by pkj in Bug 3 to not export all make variables

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

16 years agopatch by apgo in Bug 345 to not use ether_hostton() with uClibc
vapier [Sun, 31 Jul 2005 22:49:12 +0000 (22:49 +0000)]
patch by apgo in Bug 345 to not use ether_hostton() with uClibc

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

16 years agopatch by srowe in Bug 359 to fix fgrep aliasing
vapier [Sun, 31 Jul 2005 22:41:05 +0000 (22:41 +0000)]
patch by srowe in Bug 359 to fix fgrep aliasing

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

16 years agotypecast to int
vapier [Sun, 31 Jul 2005 22:22:20 +0000 (22:22 +0000)]
typecast to int

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

16 years agouse socklen_t instead of size_t with socket related functions
vapier [Sun, 31 Jul 2005 22:20:02 +0000 (22:20 +0000)]
use socklen_t instead of size_t with socket related functions

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

16 years agomove -s from LDFLAGS to STRIPCMD
vapier [Sun, 31 Jul 2005 22:11:33 +0000 (22:11 +0000)]
move -s from LDFLAGS to STRIPCMD

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

16 years agouse defines instead of const integers
vapier [Sun, 31 Jul 2005 22:09:33 +0000 (22:09 +0000)]
use defines instead of const integers

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

16 years agoshrink the flag setting by reversing the operation
vapier [Sun, 31 Jul 2005 22:06:38 +0000 (22:06 +0000)]
shrink the flag setting by reversing the operation

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

16 years agoeat leading whitespace with preprocessor
vapier [Sun, 31 Jul 2005 21:05:19 +0000 (21:05 +0000)]
eat leading whitespace with preprocessor

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

16 years agoreplace for loops with one function call
vapier [Sun, 31 Jul 2005 20:51:58 +0000 (20:51 +0000)]
replace for loops with one function call

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

16 years agoAhem: add new faq entry to list at top of FAQ.html
landley [Sun, 31 Jul 2005 04:27:19 +0000 (04:27 +0000)]
Ahem: add new faq entry to list at top of FAQ.html

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

16 years agoFix "nm --size-sort" on the busybox binary and document how to make it work.
landley [Sun, 31 Jul 2005 04:25:00 +0000 (04:25 +0000)]
Fix "nm --size-sort" on the busybox binary and document how to make it work.

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

16 years agoonly declare do_swap if we need it
vapier [Sat, 30 Jul 2005 09:43:58 +0000 (09:43 +0000)]
only declare do_swap if we need it

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

16 years agotouchup syntax
vapier [Sat, 30 Jul 2005 09:42:05 +0000 (09:42 +0000)]
touchup syntax

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

16 years agocleanup the error message so we dont use glibcism of %m and cast a pointer to an...
vapier [Sat, 30 Jul 2005 09:29:10 +0000 (09:29 +0000)]
cleanup the error message so we dont use glibcism of %m and cast a pointer to an int (bad on 64bit arches)

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

16 years agocleanup syntax
vapier [Sat, 30 Jul 2005 09:24:49 +0000 (09:24 +0000)]
cleanup syntax

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

16 years agotell people to ignore the dups/e0 warnings
vapier [Sat, 30 Jul 2005 08:59:38 +0000 (08:59 +0000)]
tell people to ignore the dups/e0 warnings

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

16 years agopunt unused variable
vapier [Sat, 30 Jul 2005 08:58:19 +0000 (08:58 +0000)]
punt unused variable

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

16 years agotell people to ignore the save_name warning
vapier [Sat, 30 Jul 2005 08:57:35 +0000 (08:57 +0000)]
tell people to ignore the save_name warning

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

16 years agoin order to make sure the INET6 prototypes are exported, we would have to include...
vapier [Sat, 30 Jul 2005 08:54:43 +0000 (08:54 +0000)]
in order to make sure the INET6 prototypes are exported, we would have to include the libbb.h header file ... but then we have to worry about including too early/etc...
since simply defining the prototype in an internal header file doesnt hurt anyone, lets not worry about the header file crap and just always prototype the inet6 functions

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

16 years agoapgo in Bug 322 writes: kill off CONFIG_FEATURE_MTAB_FILENAME
vapier [Sat, 30 Jul 2005 08:48:10 +0000 (08:48 +0000)]
apgo in Bug 322 writes: kill off CONFIG_FEATURE_MTAB_FILENAME

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

16 years agoignore .hdepend
vapier [Sat, 30 Jul 2005 08:18:57 +0000 (08:18 +0000)]
ignore .hdepend

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

16 years agorename the accept/reject names since accept overrides the accept() socket function
vapier [Sat, 30 Jul 2005 07:30:26 +0000 (07:30 +0000)]
rename the accept/reject names since accept overrides the accept() socket function

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

16 years agoapgo in Bug 351 says: punt parse_version_number since it is no longer used
vapier [Sat, 30 Jul 2005 07:29:22 +0000 (07:29 +0000)]
apgo in Bug 351 says: punt parse_version_number since it is no longer used

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

16 years agocommiting fix from:
pgf [Fri, 29 Jul 2005 14:58:09 +0000 (14:58 +0000)]
commiting fix from:
     0000353: [PATCH] start-stop-daemon -q is not quiet

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

16 years agofurther refine check_gcc usage so it is only called the bare min number of times
vapier [Thu, 28 Jul 2005 22:26:25 +0000 (22:26 +0000)]
further refine check_gcc usage so it is only called the bare min number of times

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

16 years agodont output anything when running in silent mode
vapier [Thu, 28 Jul 2005 22:14:35 +0000 (22:14 +0000)]
dont output anything when running in silent mode

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

16 years agoFrom Rich Paul:
landley [Thu, 28 Jul 2005 19:38:52 +0000 (19:38 +0000)]
From Rich Paul:

I've noticed that when I compile busybox on my laptop, it compiles more
slowly than one would expect, and although it's a (more-or-less)
multiprocessor system and I use -j5, make never seems to run more than
one job at a time.

I believe I have found the culprit:  each time a file is compiled, gcc
runs about 5 times.  This is because the $(check_gcc) macros and the
TARGET_ARCH macros are late binding.

The attached patch cuts the compilation time by 66%, from 1.5 minutes to
30 seconds.  Your mileage may very.  These statements have not been
evaluated by the FDA.

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

16 years agoErik pointed out that in the last try at the #ifdef cleanup
landley [Thu, 28 Jul 2005 19:36:33 +0000 (19:36 +0000)]
Erik pointed out that in the last try at the #ifdef cleanup
infrastructure, the compiler isn't smart enough to replace const static
int with the constant, and allocates space for each set of them,
bloating the executable something fierce.  Oops.

So now, we #define ENABLE_XXX to 0 or 1 for each CONFIG_XXX (which
is still there so the 1000+ #ifdef/#ifndef tests don't have to be
replaced wholesale).  Changed the test instance in networking/ifconfig.c
to use this.

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

16 years agomove the ifdef to after libbb.h include, so it can do some good.
pgf [Wed, 27 Jul 2005 14:20:52 +0000 (14:20 +0000)]
move the ifdef to after libbb.h include, so it can do some good.

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

16 years ago#ifdef reduction infrastructure, based on an argument between Shaun Jackman,
landley [Wed, 27 Jul 2005 06:55:36 +0000 (06:55 +0000)]
#ifdef reduction infrastructure, based on an argument between Shaun Jackman,
Rob Landley, and others.

Currently CONFIG options are defined or undefined, so we chop out code with
#ifdefs, ala:
#ifdef CONFIG_THING
  stuff();
#endif

This creates a new header file, bb_config.h, which sets the CONFIG entry to 1
or 0, and lets us do:

  if(CONFIG_THING) stuff();

And let the compiler do dead code elimination to get rid of it.  (Note: #ifdef
will still work because for the 1 case it's a static const int, not a #define.)

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

16 years agoThe change in getty.c in Busybox 1.01 caused the /etc/issue file to not
andersen [Wed, 27 Jul 2005 06:05:38 +0000 (06:05 +0000)]
The change in getty.c in Busybox 1.01 caused the /etc/issue file to not
be displayed unless CONFIG_FEATURE_UTMP is set.  This was not the intended
result.

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

16 years agouse toplevel ARFLAGS and update default ARFLAGS to be quiet
vapier [Wed, 27 Jul 2005 01:09:24 +0000 (01:09 +0000)]
use toplevel ARFLAGS and update default ARFLAGS to be quiet

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

16 years ago2005-04-05 Shaun Jackman <sjackman@gmail.com>
vapier [Tue, 26 Jul 2005 23:05:03 +0000 (23:05 +0000)]
2005-04-05  Shaun Jackman  <sjackman@gmail.com>

* libbb/printf.c: Check for __NEWLIB_H__ before __GLIBC__.

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

16 years ago2005-03-19 Shaun Jackman <sjackman@gmail.com>
vapier [Tue, 26 Jul 2005 23:00:59 +0000 (23:00 +0000)]
2005-03-19  Shaun Jackman  <sjackman@gmail.com>

* networking/ping.c (ping): Change the type of fromlen to socklen_t.

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

16 years agoremove unused variable ret as reported by apgo in Bug 350 and touchup syntax along...
vapier [Tue, 26 Jul 2005 22:57:51 +0000 (22:57 +0000)]
remove unused variable ret as reported by apgo in Bug 350 and touchup syntax along the way

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

16 years agono longer used as reported by apgo in Bug 348
vapier [Tue, 26 Jul 2005 22:51:57 +0000 (22:51 +0000)]
no longer used as reported by apgo in Bug 348

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

16 years agojust punt all the f_frsize crap since not all linux headers support it Bug 346
vapier [Tue, 26 Jul 2005 22:39:56 +0000 (22:39 +0000)]
just punt all the f_frsize crap since not all linux headers support it Bug 346

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

16 years agoifdef all of loop.c with CONFIG_FEATURE_MOUNT_LOOP. won't
pgf [Fri, 22 Jul 2005 19:58:32 +0000 (19:58 +0000)]
ifdef all of loop.c with CONFIG_FEATURE_MOUNT_LOOP.  won't
compile due to CONFIG_FEATURE_MOUNT_LOOP_MAX otherwise.  reported
by Stephane Billiart.

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

16 years agoapplying fix for:
pgf [Fri, 22 Jul 2005 13:17:41 +0000 (13:17 +0000)]
applying fix for:
     0000093: Patch for dpkg - can't handle scripts
      Attached patch is needed to fix dpkg's support for preinst,
       postinst etc script files.

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

16 years agoremove duplicate check against chaddr.
pgf [Thu, 21 Jul 2005 20:23:56 +0000 (20:23 +0000)]
remove duplicate check against chaddr.

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

16 years agorevert 10881, and refix by changing "if (vallen)" to "if (val)". this
pgf [Thu, 21 Jul 2005 12:03:05 +0000 (12:03 +0000)]
revert 10881, and refix by changing "if (vallen)" to "if (val)".  this
is per the upstream fix for dash, in dash_0.5.2-6.diff.  thanks vodz, for
catching this.

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

16 years agoapplying fixes from:
pgf [Wed, 20 Jul 2005 20:26:49 +0000 (20:26 +0000)]
applying fixes from:
    0000142: unzip enhancements

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:55:19 +0000 (19:55 +0000)]
applying fix for:
    0000026: poor man's "scriptable" telnet

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:49:15 +0000 (19:49 +0000)]
applying fix for:
    0000271: [PATCH] tftp -g fails if a TFTP_ACK is lost

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:46:32 +0000 (19:46 +0000)]
applying fix for:
    0000265: tail -f should keep following files even if they
                    were truncated

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:40:30 +0000 (19:40 +0000)]
applying fix for:
    0000263: nc cannot use -e when initiating a tcp connection
     to something else

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:24:13 +0000 (19:24 +0000)]
applying fix for:
     0000262: tar -x doesn't believe it has reached the end of archive

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:18:45 +0000 (19:18 +0000)]
applying fix for:
    0000261: Unsafe empty env var export in ash

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:13:21 +0000 (19:13 +0000)]
applying fix for:
     0000260: udhcpc doesn't validate client hardware address

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

16 years agoapplying patch from:
pgf [Wed, 20 Jul 2005 19:07:27 +0000 (19:07 +0000)]
applying patch from:
    0000227: sort use wrong type for getopt return variable

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 19:01:05 +0000 (19:01 +0000)]
applying fix for:
    0000203: 'ip route flush cache' not implemented

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 18:42:52 +0000 (18:42 +0000)]
applying fix for:
    0000185: httpd infinite loop when piping to CGI script

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

16 years agoapplyinf fix for:
pgf [Wed, 20 Jul 2005 18:33:12 +0000 (18:33 +0000)]
applyinf fix for:
    0000155: variable expansion with braces in backticks in msh

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

16 years agoapplying fix from:
pgf [Wed, 20 Jul 2005 18:23:39 +0000 (18:23 +0000)]
applying fix from:
    0000152: ash: quoting rules for local variables different to globals

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 18:02:11 +0000 (18:02 +0000)]
applying fix for:
     0000143: sysklogd remote logging adds a space between facility and tag

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

16 years agoapplying fix for:
pgf [Wed, 20 Jul 2005 17:39:52 +0000 (17:39 +0000)]
applying fix for:
    0000118: vi join command does not mark file as modified for certain lines.

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

16 years agomuch more concise fix for bug #45. just align the packet...
pgf [Wed, 20 Jul 2005 11:55:08 +0000 (11:55 +0000)]
much more concise fix for bug #45.  just align the packet...

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

16 years agoIf /tmp and /home were different partitions, then "mv /tmp/file /home/file"
landley [Wed, 20 Jul 2005 00:45:40 +0000 (00:45 +0000)]
If /tmp and /home were different partitions, then "mv /tmp/file /home/file"
would delete /home/file even if /tmp/file didn't exist.

This fixes that, although the logic of both mv and cp is a bit tangled and
should probably be untangled.

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

16 years agoapplying fix for:
pgf [Tue, 19 Jul 2005 21:31:05 +0000 (21:31 +0000)]
applying fix for:
     0000117: Remove linefeed after overwrite prompt using cp -i
  User input not on the same line as the prompt when about to
  overwrite a file.

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

16 years agoapplying fix from:
pgf [Tue, 19 Jul 2005 21:26:57 +0000 (21:26 +0000)]
applying fix from:
    0000108: busyboxy/networking/ftpgetput.c not conforming to
                    RFC 959.  ftpget and ftpput send <LF> as EOL.

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

16 years agoapplying fix from;
pgf [Tue, 19 Jul 2005 21:21:58 +0000 (21:21 +0000)]
applying fix from;
    0000092: looks like the initializer for .need_suid was missing.

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

16 years agoapplying fix from:
pgf [Tue, 19 Jul 2005 21:19:20 +0000 (21:19 +0000)]
applying fix from:
    0000088: inetd chargen stream does not generate the
    characters as recommended in RFC 864
    Chragen service is generating garbage characters.

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

16 years agoapplying fix from:
pgf [Tue, 19 Jul 2005 20:55:37 +0000 (20:55 +0000)]
applying fix from:
     0000068: mount limited to max 8 loop devices (patch provided)

(made minor wording change for config help message)

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

16 years agoapplying fix from:
pgf [Tue, 19 Jul 2005 20:47:33 +0000 (20:47 +0000)]
applying fix from:
 0000067: cp -p produces misleading error message

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

16 years agoapplying:
pgf [Tue, 19 Jul 2005 20:41:06 +0000 (20:41 +0000)]
applying:
0000054: Tab completing filenames in ash causes SEGV
Simple tab completion operations cause busybox (ash) to
access illegal addresses.

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

16 years agoapplying fix for:
pgf [Tue, 19 Jul 2005 20:37:15 +0000 (20:37 +0000)]
applying fix for:
 0000045: traceroute causes an alignment trap due to unaligned buffer on arm

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

16 years agoFixup makedevs to handle regular files, and also fix
andersen [Mon, 18 Jul 2005 22:40:59 +0000 (22:40 +0000)]
Fixup makedevs to handle regular files, and also fix
it to properly update file permissions as specified.

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

16 years agofix for "0000027: patch: nc will spin if stdin closed"
pgf [Mon, 18 Jul 2005 22:23:16 +0000 (22:23 +0000)]
fix for "0000027: patch: nc will spin if stdin closed"

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

16 years agoallow both ^H and DEL to backspace in insert mode (bug #23)
pgf [Mon, 18 Jul 2005 22:17:25 +0000 (22:17 +0000)]
allow both ^H and DEL to backspace in insert mode (bug #23)

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

16 years agoFix vi so that error messages, insert mode messages, etc are
andersen [Mon, 18 Jul 2005 10:32:59 +0000 (10:32 +0000)]
Fix vi so that error messages, insert mode messages, etc are
all actually displayed in the status line as expected

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

16 years agoa bit more polish
andersen [Mon, 18 Jul 2005 09:45:35 +0000 (09:45 +0000)]
a bit more polish

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

16 years agoa bit of polish on makedevs
andersen [Mon, 18 Jul 2005 09:42:37 +0000 (09:42 +0000)]
a bit of polish on makedevs

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

16 years agothe makedevs config option was pretty much totally broken
andersen [Mon, 18 Jul 2005 09:36:49 +0000 (09:36 +0000)]
the makedevs config option was pretty much totally broken

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

16 years agoFixup device table based makedevs so it actually works
andersen [Mon, 18 Jul 2005 09:28:36 +0000 (09:28 +0000)]
Fixup device table based makedevs so it actually works

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

16 years agomove var decls around a little to help gcc make smaller code
vapier [Wed, 6 Jul 2005 05:00:48 +0000 (05:00 +0000)]
move var decls around a little to help gcc make smaller code

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

16 years ago2005-07-04 Shaun Jackman <sjackman@gmail.com>
vapier [Wed, 6 Jul 2005 04:46:14 +0000 (04:46 +0000)]
2005-07-04  Shaun Jackman  <sjackman@gmail.com>

        * init/init.c: Do not include sys/mount.h.
        (message): Use O_NONBLOCK instead of O_NDELAY.
        (console_init): Ditto.

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

16 years ago2005-07-05 Shaun Jackman <sjackman@gmail.com>
vapier [Wed, 6 Jul 2005 04:39:08 +0000 (04:39 +0000)]
2005-07-05  Shaun Jackman  <sjackman@gmail.com>

        * init/Config.in (CONFIG_FEATURE_INIT_SWAPON): New option.
        * init/init.c (check_memory): Disable the swapon feature unless
        CONFIG_FEATURE_INIT_SWAPON is defined.

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

16 years agorename log var to log_console so we dont override internal gcc/glibc log func
vapier [Tue, 5 Jul 2005 02:19:20 +0000 (02:19 +0000)]
rename log var to log_console so we dont override internal gcc/glibc log func

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

16 years ago2005-06-30 Shaun Jackman <sjackman@gmail.com>
vapier [Fri, 1 Jul 2005 01:29:44 +0000 (01:29 +0000)]
2005-06-30  Shaun Jackman  <sjackman@gmail.com>

        * loginutils/getty.c: (open_tty): Use dup2 instead of close/dup.

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

16 years ago2005-06-30 Shaun Jackman <sjackman@gmail.com>
vapier [Fri, 1 Jul 2005 01:07:16 +0000 (01:07 +0000)]
2005-06-30  Shaun Jackman  <sjackman@gmail.com>

        * loginutils/getty.c: Include utmp.h only if
        CONFIG_FEATURE_U_W_TMP is defined.
        (getty_main): Use ISSUE only if it is defined.

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

16 years agoPatch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and WTMP options
vapier [Fri, 1 Jul 2005 01:04:32 +0000 (01:04 +0000)]
Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and WTMP options

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

16 years agopatch by Shaun Jackman to combine dup/close funcs into dup2
vapier [Thu, 30 Jun 2005 03:43:14 +0000 (03:43 +0000)]
patch by Shaun Jackman to combine dup/close funcs into dup2

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

16 years agodont use f_frsize unless linux-2.6.0 or better
vapier [Wed, 29 Jun 2005 01:07:04 +0000 (01:07 +0000)]
dont use f_frsize unless linux-2.6.0 or better

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

16 years agorip out all the non-linux code and ugly workarounds
vapier [Tue, 28 Jun 2005 23:50:18 +0000 (23:50 +0000)]
rip out all the non-linux code and ugly workarounds

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

16 years agotweak signed/unsigned char usage to avoid mismatches
vapier [Fri, 24 Jun 2005 21:37:59 +0000 (21:37 +0000)]
tweak signed/unsigned char usage to avoid mismatches

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

16 years ago- remove extra/unneeded function call. testing svn
solar [Fri, 24 Jun 2005 03:47:57 +0000 (03:47 +0000)]
- remove extra/unneeded function call. testing svn

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

16 years agoEnabling runtime SUID/SGID configuration via /etc/busybox.conf
andersen [Thu, 23 Jun 2005 19:15:40 +0000 (19:15 +0000)]
Enabling runtime SUID/SGID configuration via /etc/busybox.conf
is not a very good default.  Better to default to having it off
and let people get the default behavior.  If they want to enable
/etc/busybox.conf they should explicitly ask for it.

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

16 years agoapplets specified as _BB_SUID_ALWAYS in applets.h should also select
andersen [Thu, 23 Jun 2005 18:58:57 +0000 (18:58 +0000)]
applets specified as _BB_SUID_ALWAYS in applets.h should also select
CONFIG_FEATURE_SUID to ensure proper behavior when installed.

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

16 years agocharacters encoded as html should have a trailing semicolon
andersen [Thu, 23 Jun 2005 05:51:48 +0000 (05:51 +0000)]
characters encoded as html should have a trailing semicolon
to be interpreted properly

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

16 years agoRodney Radford submitted ipcs and ipcrm (system V IPC stuff). They could use
landley [Mon, 20 Jun 2005 04:30:36 +0000 (04:30 +0000)]
Rodney Radford submitted ipcs and ipcrm (system V IPC stuff).  They could use
some more work to shrink them down.

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