Russ Dill [Fri, 26 Dec 2003 23:41:28 +0000 (23:41 -0000)]
it should work even if you don't assign a pidfile
Glenn L McGrath [Fri, 26 Dec 2003 14:01:37 +0000 (14:01 -0000)]
Isolate code better for unused options, config option to enable long
options, add some conditions to the tar tests in testsuite.
Glenn L McGrath [Fri, 26 Dec 2003 02:19:34 +0000 (02:19 -0000)]
Vodz last_patch120, more busybox integration, saves 330 Bytes. Tested.
Eric Andersen [Wed, 24 Dec 2003 20:30:45 +0000 (20:30 -0000)]
re-indent
Russ Dill [Wed, 24 Dec 2003 19:57:13 +0000 (19:57 -0000)]
fix a long standing underallocation bug
Russ Dill [Wed, 24 Dec 2003 19:31:08 +0000 (19:31 -0000)]
move debugging to safe place (before vfork)
Eric Andersen [Wed, 24 Dec 2003 06:02:11 +0000 (06:02 -0000)]
Patch from Ned Ludd, solar at gentoo dot org:
I had previously provided you with a patch to help complete busybox's
props suite, but have heard no word back. Sense then I've made use of as
many of busybox's native API settings as I could find and would really
love for you to include support for this. If there is something more I
need to do to get this supported added in please let me know.
Eric Andersen [Tue, 23 Dec 2003 20:47:22 +0000 (20:47 -0000)]
match changes made to cmdedit
Eric Andersen [Tue, 23 Dec 2003 20:45:14 +0000 (20:45 -0000)]
Match changes made to cmdedit
Eric Andersen [Tue, 23 Dec 2003 20:37:54 +0000 (20:37 -0000)]
fix broken formatting
Eric Andersen [Tue, 23 Dec 2003 20:37:23 +0000 (20:37 -0000)]
don't mess up errno
Eric Andersen [Tue, 23 Dec 2003 20:24:51 +0000 (20:24 -0000)]
Cmdedit update from Vladimir N. Oleynik (vodz)
Eric Andersen [Tue, 23 Dec 2003 10:00:00 +0000 (10:00 -0000)]
Show the news by default
Eric Andersen [Tue, 23 Dec 2003 09:12:09 +0000 (09:12 -0000)]
Prepare for release
Eric Andersen [Tue, 23 Dec 2003 08:53:51 +0000 (08:53 -0000)]
Patch from Matt Kraai:
sed is broken:
busybox sed -n '/^a/,/^a/p' >output <<EOF
a
b
a
b
EOF
cmp -s output - <<EOF
a
b
a
EOF
The attached patch fixes it.
Glenn L McGrath [Tue, 23 Dec 2003 07:21:33 +0000 (07:21 -0000)]
Fix compile error, the indenting really needs to be fixed here
Glenn L McGrath [Mon, 22 Dec 2003 21:02:41 +0000 (21:02 -0000)]
Fix a bug of mine where extracting files to stdout would extract to
much, modified patch from Bastian Blank
Eric Andersen [Sun, 21 Dec 2003 09:04:54 +0000 (09:04 -0000)]
Bump version
Eric Andersen [Sun, 21 Dec 2003 08:59:24 +0000 (08:59 -0000)]
Don't hose up perms for files that happen to have symlinks
in the tarball that point to them.
-Erik
Eric Andersen [Sat, 20 Dec 2003 10:23:28 +0000 (10:23 -0000)]
bother. It seems I can't read.
Eric Andersen [Sat, 20 Dec 2003 09:17:50 +0000 (09:17 -0000)]
doh!
Glenn L McGrath [Sat, 20 Dec 2003 07:30:35 +0000 (07:30 -0000)]
New applet, rx, by Christopher Hoover
Eric Andersen [Sat, 20 Dec 2003 07:26:10 +0000 (07:26 -0000)]
Try to accomodate systems that do not define PAGE_SHIFT
Eric Andersen [Sat, 20 Dec 2003 07:16:22 +0000 (07:16 -0000)]
Eradicate all references to loadacm
Eric Andersen [Sat, 20 Dec 2003 07:07:22 +0000 (07:07 -0000)]
Kill off the loadacm applet. It is unused, unmaintained
garbage leftover from before I started maintaining BusyBox.
As the Klingon's like to say, Today is a good day to die.
-Erik
Glenn L McGrath [Sat, 20 Dec 2003 06:00:08 +0000 (06:00 -0000)]
Use bb_xopen
Glenn L McGrath [Sat, 20 Dec 2003 05:43:34 +0000 (05:43 -0000)]
Allow recieving file to stdout, sending files from stdin, use the '-'
filename. Save a variable.
Glenn L McGrath [Sat, 20 Dec 2003 04:38:01 +0000 (04:38 -0000)]
Use low level file descriptors to match bb_copyfd_eof
Glenn L McGrath [Sat, 20 Dec 2003 03:19:27 +0000 (03:19 -0000)]
display the port number number correctly, other minor optimisations
Glenn L McGrath [Sat, 20 Dec 2003 01:47:18 +0000 (01:47 -0000)]
Change interface to bb_lookup_host, dont try and set port inside this
function as there is no gracefull way of handling failures.
Rename bb_getport to bb_lookup_port, allow a default port to be
specified so it always returns a correct value.
Modify ftpgetput/rdate/wget to use the new interface.
wget/rdate now use etc/services with a falback default value.
Eric Andersen [Fri, 19 Dec 2003 21:04:19 +0000 (21:04 -0000)]
Patch from Woody Suwalski:
Erik, I think we have met online some time ago when I was in Corel/Rebel
Netwinder project....
Anyway, I would like to use BB on 2.6.0 initrd. 1.00-pre4 works OK, if
insmod is actually presented with a full path to the module. Otherwise -
problems (not to mention conflicts when 2.4 modutil is enabled)
Here are some patches for insmod and modprobe which try to walk around
the default ".o" module format for 2.2/2.4 modules (you have probably
noticed it is now .ko in 2.6 ;-)) Trying to steal as little space as
possible if 2.6 not enabled...
The modprobe is still not perfect on 2.6 - seems to be jamming on some
dependencies, but works with some (to be debugged). Anyway after the
patches it at least tries to work....
Will there be a 1.00-pre5 coming any time soon?
Thanks, Woody
Glenn L McGrath [Fri, 19 Dec 2003 12:08:56 +0000 (12:08 -0000)]
Use getopt_ulflags
Glenn L McGrath [Fri, 19 Dec 2003 12:03:18 +0000 (12:03 -0000)]
Allow escaped 8 bit characters in bb_opt_complementaly
Eric Andersen [Fri, 19 Dec 2003 11:32:14 +0000 (11:32 -0000)]
Patch from Fillod Stephane:
You will find in the attached file "syslog.patch" a patch which adds
config options to set at compile time the size of the circular buffer,
and some documentation update.
Eric Andersen [Fri, 19 Dec 2003 11:30:13 +0000 (11:30 -0000)]
Patch from Fillod Stephane:
* While I'm at it, there's also a "telnetd.patch" which maps CRLF to CR,
like netkit-telnet does, required by the loosy Windows telnet clients.
Eric Andersen [Fri, 19 Dec 2003 11:29:29 +0000 (11:29 -0000)]
Patch from Fillod Stephane:
* The "rdate.patch" file makes rdate to NOT settimeofday if the date to be
set equals current date. This prevents the system from experiencing nasty time
discontinuities caused by sub-second changes, with a protocol that has only
over second resolution. Depending on your taste, the "fprintf(stderr..." may be
removed.
Eric Andersen [Fri, 19 Dec 2003 11:23:47 +0000 (11:23 -0000)]
Patch from Stephane Billiart:
This removes references to config->remoteuser when
CONFIG_FEATURE_HTTPD_CGI=y but CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set
Eric Andersen [Fri, 19 Dec 2003 11:07:59 +0000 (11:07 -0000)]
Tito writes:
Hi to all,
here is a new patch for bb's devfsd. The news are:
1) Size reduction for the basic setup with no options compiled in from :
text data bss dec hex filename
10591 392 543 11526 2d06 devfsd.o
rw-r--r-- 1 root root 18536 Dec 18 21:52 devfsd.o
to:
text data bss dec hex filename
9303 392 543 10238 27fe devfsd.o
rw-r--r-- 1 root root 16528 Dec 18 22:02 devfsd.o
With this setup you should not expect much output from devfsd
( just at start or with -v) and if some error occurs it only exits 1.
To have more output enable: " Increases logging (and size)" (+1568 b).
2) The option "Adds function names to program output" was removed from config menu
and now to enable debug output you can use bb's standard option:
"Build BusyBox with Debugging symbols".
Be careful as with this option enabled a lot of data are outputted to /dev/log and/or to stderr.
3) A new option: "Enables the -fg and -np option" was added to config menu (+128 b).
BTW: option "Adds support for MODLOAD keyword in devsfd.conf" adds 268 b.
4) The following keywords in devsfd.conf are supported:
"CLEAR_CONFIG", "INCLUDE", "OPTIONAL_INCLUDE", "RESTORE",
"PERMISSIONS", "EXECUTE", "COPY", "IGNORE", "MKOLDCOMPAT",
"MKNEWCOMPAT","RMOLDCOMPAT", "RMNEWCOMPAT".
But only if they are written UPPERCASE!!!!!!!!
5)Help text in usage.h was modified.
6)Something that I have forgotten..........
I've tested this for the last week on my box and it seems to work as expected.
Thanks in advance and please apply.
Ciao,
Tito
Eric Andersen [Fri, 19 Dec 2003 10:47:40 +0000 (10:47 -0000)]
Manousaridis Angelos writes:
Another issue I found was with the iproute utility. While using another
program I found that it failed because the "ip route del" command was
not found. I looked at the full iproute implementation and this command
exists. The busybox version has the "ip route delete" command. I have
created a patch which makes the "ip route del" command an alias to the
"ip route delete" command.
Eric Andersen [Fri, 19 Dec 2003 10:46:00 +0000 (10:46 -0000)]
Manousaridis Angelos writes:
Hello,
I have been using busybox for some time now, for an ARM based platform.
I was very pleased when I tried the 1.00preX series, with all the new
utilities and daemons.
I found out that the ifupdown in busybox does not behave exaclty like
the debian version. Then the pre-up script fails, the interface is
getting up. Also when the post-up script fails the return value is
ignored. Actually everything is always run and the return value is
always true. I looked at the original implementation from debian and
fixed the busybox version to do the same. A patch is attached if anyone
is interested.
Eric Andersen [Fri, 19 Dec 2003 10:40:56 +0000 (10:40 -0000)]
don't use kernel headers
Glenn L McGrath [Fri, 19 Dec 2003 10:37:52 +0000 (10:37 -0000)]
Use getopt_ulflags
Eric Andersen [Fri, 19 Dec 2003 10:34:36 +0000 (10:34 -0000)]
vodz noticed we need to cast things back to an unsigned long
or the syscall will not get the proper arguments.
Glenn L McGrath [Fri, 19 Dec 2003 10:13:10 +0000 (10:13 -0000)]
Fix a bug preventing use of escaped characters that use the signed bit
Russ Dill [Thu, 18 Dec 2003 22:40:58 +0000 (22:40 -0000)]
rename __getgrent so that it doesn't conflict with some libc's
Russ Dill [Thu, 18 Dec 2003 22:25:38 +0000 (22:25 -0000)]
Finish remerging busybox udhcp and udhcp. Some cleanups as well.
Russ Dill [Tue, 16 Dec 2003 22:46:33 +0000 (22:46 -0000)]
clean up some bad, bad formatting
Russ Dill [Tue, 16 Dec 2003 20:44:15 +0000 (20:44 -0000)]
include headers with prototypes to make sure prototypes match
Eric Andersen [Tue, 16 Dec 2003 12:04:01 +0000 (12:04 -0000)]
remove reference to missing header file which is breaking the build
Eric Andersen [Tue, 16 Dec 2003 07:43:20 +0000 (07:43 -0000)]
Using vlock also requires libcrypt
Russ Dill [Tue, 16 Dec 2003 02:38:09 +0000 (02:38 -0000)]
revert removal of define
Russ Dill [Tue, 16 Dec 2003 02:34:28 +0000 (02:34 -0000)]
forgotten include
Russ Dill [Tue, 16 Dec 2003 02:30:53 +0000 (02:30 -0000)]
why the complication of a static string rather than a define? gcc isn't dumb
Russ Dill [Tue, 16 Dec 2003 02:28:20 +0000 (02:28 -0000)]
start attempting to bring udhcp in busybox back to the state where it is (ideally) an exact copy of udhcp outside of busybox so that its easy to merge back and forth
Russ Dill [Tue, 16 Dec 2003 01:42:18 +0000 (01:42 -0000)]
when compiled standalone, udhcp needs these headers
Russ Dill [Tue, 16 Dec 2003 01:33:38 +0000 (01:33 -0000)]
whoops
Russ Dill [Tue, 16 Dec 2003 01:29:40 +0000 (01:29 -0000)]
not sure who made this change, but it certainly mucks things up (note 'fwrite(leases, ...'), adds a bit more code, and some stack overhead. Anywho, this fixes it, and retains the spirit of what the submitter of this change was attempting to acheive (the entire lease is written at once in a struct)
Russ Dill [Mon, 15 Dec 2003 22:11:26 +0000 (22:11 -0000)]
make udhcp work under uclinux, to an extent
Russ Dill [Mon, 15 Dec 2003 22:09:36 +0000 (22:09 -0000)]
options is a pretty common symbol, bad idea to use as a global in udhcp when compiling into busybox
Russ Dill [Mon, 15 Dec 2003 21:57:44 +0000 (21:57 -0000)]
Get vfork_daemon_rexec working under uclinux
Eric Andersen [Fri, 12 Dec 2003 19:05:15 +0000 (19:05 -0000)]
Be certain we use a correct entity when performing the
BLKGETSIZE64 ioctl -- don't just assume 8,
Eric Andersen [Fri, 12 Dec 2003 07:01:14 +0000 (07:01 -0000)]
Doh! I broke automatic filesystem type guessing. Fix mount so
it will properly fall back to /proc/mounts when /etc/filesystems
is missing, allowing mount to guess the correct fs type when a
fs type is not explicitly specified.
-Erik
Eric Andersen [Fri, 12 Dec 2003 00:08:57 +0000 (00:08 -0000)]
Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabled
Eric Andersen [Thu, 11 Dec 2003 18:03:15 +0000 (18:03 -0000)]
It appears the Netgear WG602 distributes source
Eric Andersen [Thu, 11 Dec 2003 08:04:49 +0000 (08:04 -0000)]
Fixup some html bugs
Eric Andersen [Thu, 11 Dec 2003 07:13:15 +0000 (07:13 -0000)]
some minor website cleanups
Eric Andersen [Thu, 11 Dec 2003 02:48:15 +0000 (02:48 -0000)]
prepare for release
Eric Andersen [Thu, 11 Dec 2003 01:42:13 +0000 (01:42 -0000)]
Update modutils with 2.6 module support
Eric Andersen [Thu, 11 Dec 2003 01:29:46 +0000 (01:29 -0000)]
go directly to current cvs
Eric Andersen [Thu, 11 Dec 2003 01:18:07 +0000 (01:18 -0000)]
remove some spaces that mess up autodocifier.pl
Eric Andersen [Wed, 10 Dec 2003 20:50:14 +0000 (20:50 -0000)]
add missing copyright text
Eric Andersen [Wed, 10 Dec 2003 20:41:48 +0000 (20:41 -0000)]
some minor updates
Eric Andersen [Wed, 10 Dec 2003 12:08:20 +0000 (12:08 -0000)]
update website
Eric Andersen [Tue, 9 Dec 2003 23:50:24 +0000 (23:50 -0000)]
Fix indenting.
Fix a bug noticed by Pete Flugstad. Make certain we close what we open, and
don't try to close invalid files when /etc/filesystems exists and is used.
Eric Andersen [Tue, 9 Dec 2003 17:31:48 +0000 (17:31 -0000)]
Bump version number
Glenn L McGrath [Mon, 8 Dec 2003 20:31:25 +0000 (20:31 -0000)]
Splitting statements with #define's can cause trouble for cross
compilers (and it looks a bit messy)
Glenn L McGrath [Mon, 8 Dec 2003 20:21:53 +0000 (20:21 -0000)]
Stop sending data to the client after the first failure.
Patch by Joe.C
Glenn L McGrath [Mon, 8 Dec 2003 20:11:55 +0000 (20:11 -0000)]
Bring usage upto date, patch by Steven Scholz
Glenn L McGrath [Fri, 5 Dec 2003 02:51:21 +0000 (02:51 -0000)]
Fix a compile error when only using ar, patch by Paul van Gool
Manuel Novoa III [Thu, 4 Dec 2003 15:02:57 +0000 (15:02 -0000)]
Add (untested) support for cris, based on the (old) busybox insmod
that axis distributes.
Glenn L McGrath [Thu, 4 Dec 2003 13:06:44 +0000 (13:06 -0000)]
Patch from Steven Scholz, make usage more consistent with actual
behaviour.
Eric Andersen [Thu, 4 Dec 2003 07:07:14 +0000 (07:07 -0000)]
Do not use the _syscall5 macro -- use syscall(2) instead
Glenn L McGrath [Sun, 30 Nov 2003 23:46:06 +0000 (23:46 -0000)]
Patch from Tito, size optimisation, cleanup noise when in debugging
mode, adds support for MODLOAD keyword in devfsd.conf, provides a
cleaned up version of example/devfsd.conf
Glenn L McGrath [Fri, 28 Nov 2003 22:55:03 +0000 (22:55 -0000)]
Correct Matteo's email address
Glenn L McGrath [Fri, 28 Nov 2003 22:38:14 +0000 (22:38 -0000)]
Patch from Ian Campbell, fix or'ed dependencies and handle virtual
dependencies.
Glenn L McGrath [Thu, 27 Nov 2003 22:40:08 +0000 (22:40 -0000)]
Fix a bug, ignore the source path when installing to a directory.
We may be installing symlinks, so use lstat/lchown.
Make use of bb_getopt_ulflags and cp_mv_stat2, save 100 bytes.
Glenn L McGrath [Thu, 27 Nov 2003 00:01:43 +0000 (00:01 -0000)]
Fix tar hard links
Glenn L McGrath [Wed, 26 Nov 2003 21:53:37 +0000 (21:53 -0000)]
Important bugfixes from Ian Campbell.
init_archive_deb_data()
We want to filter for data.tar.* in the AR file not the TAR
file, else we get nothing.
all_control_list()
Make the 'extensions' array of control file names a global so it
can be used in unpack_package as well. Name the global
all_control_files. Don't hard code the length of
all_control_files but instead used sizeof.
unpack_package()
Only unpack the control files we are interested in (from
all_control_files). Extract the data.tar.gz into / rather than
the current directory.
dpkg_main()
Configure packages in a second pass so all the packages being
installed are unpacked before configuring.
Some purely cosmetic changes:
header
update list of differences since two of them are no longer true.
The .control file is no longer stored as a result of this patch
-- it was redundant since the info is in status. New packages
appear to be added to the end of the status file now rather than
the start.
remove_package()
Make message printing optional, so we can avoid a redundant
message when replacing/upgrading a package. When we do print
stuff then include the version number.
purge_package()
Print "Purging xxx (yyy) ..." message like the other actions.
configure_package()
Add "..." to "Setting up" message to be consistent with other
actions.
Glenn L McGrath [Tue, 25 Nov 2003 20:45:38 +0000 (20:45 -0000)]
Fix for "Broken pipe" issue, vodz last_patch116_3
Glenn L McGrath [Mon, 24 Nov 2003 23:50:07 +0000 (23:50 -0000)]
When a size of 0 is passed to copyfd_size, dont do anything, it was
reading untill eof which breaks tar
Glenn L McGrath [Sat, 22 Nov 2003 02:13:41 +0000 (02:13 -0000)]
Fix warning
Glenn L McGrath [Fri, 21 Nov 2003 22:24:57 +0000 (22:24 -0000)]
As we no longer use function pointers for read in common archiving code
archive_xread can be replaced with bb_full_read, and archive_copy_file
with bb_copyfd*
bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof,
they share a common backend.
Glenn L McGrath [Fri, 21 Nov 2003 22:17:28 +0000 (22:17 -0000)]
Use safe read
Glenn L McGrath [Fri, 21 Nov 2003 21:54:07 +0000 (21:54 -0000)]
Fix warning
Glenn L McGrath [Fri, 21 Nov 2003 09:27:02 +0000 (09:27 -0000)]
Make use of libbb functions bb_xopen, bb_full_read, used #define's
instead of static consts, avoid xmalloc.
Glenn L McGrath [Thu, 20 Nov 2003 22:36:57 +0000 (22:36 -0000)]
Remove unused function
Glenn L McGrath [Thu, 20 Nov 2003 21:30:58 +0000 (21:30 -0000)]
Dont over-read fd, use function pointer for hash function.
Glenn L McGrath [Thu, 20 Nov 2003 10:47:06 +0000 (10:47 -0000)]
Fix tar-handles-nested-exclude testcase
Glenn L McGrath [Thu, 20 Nov 2003 09:57:44 +0000 (09:57 -0000)]
Update status of tests which should pass
Glenn L McGrath [Thu, 20 Nov 2003 09:56:34 +0000 (09:56 -0000)]
remove controversial tests