oweals/busybox.git
22 years agoUse read_gz, remove fork() woohoo!
Glenn L McGrath [Tue, 19 Nov 2002 08:22:03 +0000 (08:22 -0000)]
Use read_gz, remove fork() woohoo!

22 years agoudhcpc documentation update
Russ Dill [Tue, 19 Nov 2002 00:41:09 +0000 (00:41 -0000)]
udhcpc documentation update

22 years agoUse error_msg_and_die, style
Glenn L McGrath [Mon, 18 Nov 2002 07:26:42 +0000 (07:26 -0000)]
Use error_msg_and_die, style

22 years agoRemove mapping option, its should always be used
Glenn L McGrath [Sun, 17 Nov 2002 21:48:11 +0000 (21:48 -0000)]
Remove mapping option, its should always be used

22 years agoPatch from Laurence Anderson to provide a read_gz function, doesnt require fork(...
Glenn L McGrath [Sun, 17 Nov 2002 21:33:30 +0000 (21:33 -0000)]
Patch from Laurence Anderson to provide a read_gz function, doesnt require fork(), pipe(), consistent with read_bz2 and more flexible.

22 years agoRemove #defines around get_header_ptr, we allways need it.
Glenn L McGrath [Sat, 16 Nov 2002 21:34:57 +0000 (21:34 -0000)]
Remove #defines around get_header_ptr, we allways need it.

22 years agoUse vfork, by vodz
Glenn L McGrath [Fri, 15 Nov 2002 22:18:01 +0000 (22:18 -0000)]
Use vfork, by vodz

22 years agoAllow short reads as we are looping anyway.
Glenn L McGrath [Fri, 15 Nov 2002 21:58:30 +0000 (21:58 -0000)]
Allow short reads as we are looping anyway.

22 years agoPatch from Bastian Blank:
Eric Andersen [Fri, 15 Nov 2002 09:12:47 +0000 (09:12 -0000)]
Patch from Bastian Blank:

    hi erik

    the following patch fixes the handling of iproute add <route> dev <dev>.
    the code got lost while removing things.

    bastian

22 years agoDont chdir untill after we open the archive
Glenn L McGrath [Fri, 15 Nov 2002 08:48:47 +0000 (08:48 -0000)]
Dont chdir untill after we open the archive

22 years agoPatch from Marcel Hamer to fix addgroup argument parsing
Eric Andersen [Thu, 14 Nov 2002 11:10:14 +0000 (11:10 -0000)]
Patch from Marcel Hamer to fix addgroup argument parsing

22 years agoA missing securetty file is not an error.
Eric Andersen [Thu, 14 Nov 2002 10:58:17 +0000 (10:58 -0000)]
A missing securetty file is not an error.
 -Erik

22 years agoMinor cleanups
Glenn L McGrath [Wed, 13 Nov 2002 00:24:20 +0000 (00:24 -0000)]
Minor cleanups

22 years agoReduce block size to 512 to prevent short read's when reading from a pipe
Glenn L McGrath [Tue, 12 Nov 2002 23:34:15 +0000 (23:34 -0000)]
Reduce block size to 512 to prevent short read's when reading from a pipe

22 years agoMake ifupdown use internal run_parts
Glenn L McGrath [Mon, 11 Nov 2002 07:03:02 +0000 (07:03 -0000)]
Make ifupdown use internal run_parts

22 years agoMove awk from textutils to editors. Cleanup run-parts, saves 200 bytes, moves the...
Glenn L McGrath [Mon, 11 Nov 2002 06:21:00 +0000 (06:21 -0000)]
Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, moves the guts of run_parts to libbb to be used by ifupdown.

22 years agoMove readlink, mktemp, run-parts and which to a new debianutils dir.
Glenn L McGrath [Mon, 11 Nov 2002 03:00:12 +0000 (03:00 -0000)]
Move readlink, mktemp, run-parts and which to a new debianutils dir.

22 years agoipcalc applet by Stephan Linz and Jordan Crouse
Glenn L McGrath [Sun, 10 Nov 2002 23:42:27 +0000 (23:42 -0000)]
ipcalc applet by Stephan Linz and Jordan Crouse

22 years agorun through indent and manually check result
Glenn L McGrath [Sun, 10 Nov 2002 22:46:45 +0000 (22:46 -0000)]
run through indent and manually check result

22 years agoConfig feature DEVPTS defined and used in telnetd, by Pavel Roskin
Glenn L McGrath [Sun, 10 Nov 2002 22:26:19 +0000 (22:26 -0000)]
Config feature DEVPTS defined and used in telnetd, by Pavel Roskin

22 years agoWill the real od.c please stand up! (my previous commit was a mistake)
Glenn L McGrath [Sun, 10 Nov 2002 22:16:09 +0000 (22:16 -0000)]
Will the real od.c please stand up! (my previous commit was a mistake)

22 years agoFix for hostname -s, by Stephan Linz
Glenn L McGrath [Sun, 10 Nov 2002 22:07:48 +0000 (22:07 -0000)]
Fix for hostname -s, by Stephan Linz

22 years agoPrevent a segfault if no argument, by Geoffrey Lee <glee@bluesat.unsw.edu.au>
Glenn L McGrath [Sun, 10 Nov 2002 21:52:59 +0000 (21:52 -0000)]
Prevent a segfault if no argument, by Geoffrey Lee <glee@bluesat.unsw.edu.au>

22 years agoRewrite of xargs by Vladimir N. Oleynik
Glenn L McGrath [Sun, 10 Nov 2002 21:47:17 +0000 (21:47 -0000)]
Rewrite of xargs by Vladimir N. Oleynik

22 years agolast_patch57 from Vladimir N. Oleynik
Glenn L McGrath [Sun, 10 Nov 2002 21:33:28 +0000 (21:33 -0000)]
last_patch57 from Vladimir N. Oleynik

22 years agolast_patch64 from Vladimir N. Oleynik <dzo@simtreas.ru>
Glenn L McGrath [Sun, 10 Nov 2002 21:28:13 +0000 (21:28 -0000)]
last_patch64 from Vladimir N. Oleynik <dzo@simtreas.ru>

22 years agoFixup a previous define
Glenn L McGrath [Sun, 10 Nov 2002 13:20:35 +0000 (13:20 -0000)]
Fixup a previous define

22 years agoMake mapping support a definable feature, saves 1.6kB
Glenn L McGrath [Sun, 10 Nov 2002 13:17:08 +0000 (13:17 -0000)]
Make mapping support a definable feature, saves 1.6kB

22 years agoOnly compile the files in this dir if the IP applet is enabled
Glenn L McGrath [Sun, 10 Nov 2002 10:20:45 +0000 (10:20 -0000)]
Only compile the files in this dir if the IP applet is enabled

22 years agoIP applet by Bastian Blank <waldi@debian.org>
Glenn L McGrath [Sun, 10 Nov 2002 01:33:55 +0000 (01:33 -0000)]
IP applet by Bastian Blank <waldi@debian.org>

22 years agodebian compatable ifup and ifdown commands
Glenn L McGrath [Sat, 9 Nov 2002 09:34:15 +0000 (09:34 -0000)]
debian compatable ifup and ifdown commands

22 years agoTeach lash to get $1 $2 $3 etc correct
Eric Andersen [Fri, 8 Nov 2002 09:40:02 +0000 (09:40 -0000)]
Teach lash to get $1 $2 $3 etc correct
 -Erik

22 years ago#ifdef, not just #if... grrr
Glenn L McGrath [Fri, 8 Nov 2002 08:07:38 +0000 (08:07 -0000)]
#ifdef, not just #if... grrr

22 years agoFix reading from stdin (me), Fix tar segfault when no arguments specified (Geoffrey...
Glenn L McGrath [Fri, 8 Nov 2002 07:09:42 +0000 (07:09 -0000)]
Fix reading from stdin (me), Fix tar segfault when no arguments specified (Geoffrey Lee)

22 years agoRemove gratuitous and unnecessary "BusyBox" refernece in login prompt
Eric Andersen [Thu, 7 Nov 2002 02:45:55 +0000 (02:45 -0000)]
Remove gratuitous and unnecessary "BusyBox" refernece in login prompt
 -Erik

22 years agoFix a stupid typo
Eric Andersen [Thu, 7 Nov 2002 02:26:59 +0000 (02:26 -0000)]
Fix a stupid typo

22 years agoImplement a small strings applet
Eric Andersen [Thu, 7 Nov 2002 02:09:37 +0000 (02:09 -0000)]
Implement a small strings applet

22 years agoFix broken tabs
Eric Andersen [Thu, 7 Nov 2002 02:06:58 +0000 (02:06 -0000)]
Fix broken tabs

22 years agoUse a switch instead of successive if (strcmp()) statments.
Glenn L McGrath [Wed, 6 Nov 2002 23:35:28 +0000 (23:35 -0000)]
Use a switch instead of successive if (strcmp()) statments.

22 years agoSplit deb_extract() into more generic functions
Glenn L McGrath [Wed, 6 Nov 2002 22:54:41 +0000 (22:54 -0000)]
Split deb_extract() into more generic functions

22 years agoTerminate the buffer with a '\0'
Glenn L McGrath [Wed, 6 Nov 2002 22:31:45 +0000 (22:31 -0000)]
Terminate the buffer with a '\0'

22 years agotypo in udhcpc help
Russ Dill [Tue, 5 Nov 2002 20:13:41 +0000 (20:13 -0000)]
typo in udhcpc help

22 years agoversion number oops
Russ Dill [Tue, 5 Nov 2002 20:10:21 +0000 (20:10 -0000)]
version number oops

22 years agoSupport for bziped debs, i.e. use .tar.bz2 instead .tar.gz internally
Glenn L McGrath [Tue, 5 Nov 2002 13:56:04 +0000 (13:56 -0000)]
Support for bziped debs, i.e. use .tar.bz2 instead .tar.gz internally

22 years agoFail silently if a partial tar header is read as tar.bz2 is leaving trailing junk...
Glenn L McGrath [Tue, 5 Nov 2002 02:56:57 +0000 (02:56 -0000)]
Fail silently if a partial tar header is read as tar.bz2 is leaving trailing junk (not sure why), add some missing files

22 years agoenable .tar.bz2 for dpkg-deb
Glenn L McGrath [Tue, 5 Nov 2002 01:52:23 +0000 (01:52 -0000)]
enable .tar.bz2 for dpkg-deb

22 years agoChange filter paramaters, filters can be more powefull now
Glenn L McGrath [Mon, 4 Nov 2002 23:47:31 +0000 (23:47 -0000)]
Change filter paramaters, filters can be more powefull now

22 years agoCall lseek directly rather than via data_align()
Glenn L McGrath [Sun, 3 Nov 2002 14:14:53 +0000 (14:14 -0000)]
Call lseek directly rather than via data_align()

22 years agoAbstract read and seek in unarchiving code, convert bunzip to file descriptors, suppo...
Glenn L McGrath [Sun, 3 Nov 2002 14:05:15 +0000 (14:05 -0000)]
Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j

22 years agoFix #define syntax
Glenn L McGrath [Sun, 3 Nov 2002 12:50:33 +0000 (12:50 -0000)]
Fix #define syntax

22 years agoMove data_extract_all_prefix to dpkg, its only used there.
Glenn L McGrath [Sun, 3 Nov 2002 11:57:10 +0000 (11:57 -0000)]
Move data_extract_all_prefix to dpkg, its only used there.

22 years agoAdd copyright notice and license, use strcat+strcpy instead of sprintf
Glenn L McGrath [Sun, 3 Nov 2002 11:46:49 +0000 (11:46 -0000)]
Add copyright notice and license, use strcat+strcpy instead of sprintf

22 years agoUse xread_char to save a few bytes, fix indenting of comments
Glenn L McGrath [Sun, 3 Nov 2002 10:57:25 +0000 (10:57 -0000)]
Use xread_char to save a few bytes, fix indenting of comments

22 years agoMove bunzip2 idecompression code to libunarchive
Glenn L McGrath [Sun, 3 Nov 2002 07:28:38 +0000 (07:28 -0000)]
Move bunzip2 idecompression code to libunarchive

22 years agoTest for holes in swapfiles
Eric Andersen [Sun, 3 Nov 2002 00:25:23 +0000 (00:25 -0000)]
Test for holes in swapfiles
 -Erik

22 years agoMake uncompress a seperate applet so it doesnt pull in all the gunzip code
Glenn L McGrath [Fri, 1 Nov 2002 23:38:54 +0000 (23:38 -0000)]
Make uncompress a seperate applet so it doesnt pull in all the gunzip code

22 years agoAllow short reads when filling compress buffer
Glenn L McGrath [Fri, 1 Nov 2002 22:28:13 +0000 (22:28 -0000)]
Allow short reads when filling compress buffer

22 years agoAllow the .Z prefix if compress support enabled
Glenn L McGrath [Fri, 1 Nov 2002 22:11:53 +0000 (22:11 -0000)]
Allow the .Z prefix if compress support enabled

22 years agoMake it a fatal error if bad chksum or crc, if not we should return an error code
Glenn L McGrath [Fri, 1 Nov 2002 22:08:59 +0000 (22:08 -0000)]
Make it a fatal error if bad chksum or crc, if not we should return an error code

22 years agoReport errror if the first magic character doesnt match
Glenn L McGrath [Fri, 1 Nov 2002 21:40:52 +0000 (21:40 -0000)]
Report errror if the first magic character doesnt match

22 years agosync to udhcp 0.9.8
Russ Dill [Thu, 31 Oct 2002 19:21:27 +0000 (19:21 -0000)]
sync to udhcp 0.9.8

22 years agoUse a nifty macro to make testing gcc features simpler
Eric Andersen [Wed, 30 Oct 2002 06:55:37 +0000 (06:55 -0000)]
Use a nifty macro to make testing gcc features simpler
and much easier to read.
 -Erik

22 years agoFormatting
Eric Andersen [Sun, 27 Oct 2002 06:14:44 +0000 (06:14 -0000)]
Formatting

22 years agoUpdate the webpage
Eric Andersen [Sun, 27 Oct 2002 06:08:30 +0000 (06:08 -0000)]
Update the webpage
 -Erik

22 years agolast_patch64 from vodz: 0_60_5
Eric Andersen [Sat, 26 Oct 2002 10:27:42 +0000 (10:27 -0000)]
last_patch64 from vodz:

    The following usage from original user:
    $ ./busybox swapon -a
    Have typo problem:
    swapon: swapon: Operation not permitted

    But regular version:
    swapon: /dev/hda5: Operation not permitted

    Patch attached, reduced 9 bytes and advanced
    exit code also.

22 years agoA patch from Jouni Malinen to avoid some buffer overflows in vi,
Eric Andersen [Sat, 26 Oct 2002 10:19:19 +0000 (10:19 -0000)]
A patch from Jouni Malinen to avoid some buffer overflows in vi,
closing bug #1270

22 years agoIvan Popov noticed that handling of PREFIX was bad.
Eric Andersen [Sat, 26 Oct 2002 10:17:24 +0000 (10:17 -0000)]
Ivan Popov noticed that handling of PREFIX was bad.
 -Erik

22 years agoA bugfix from Danny Lepage:
Eric Andersen [Sat, 26 Oct 2002 10:05:37 +0000 (10:05 -0000)]
A bugfix from Danny Lepage:
    It seems that under busybox unstable, "tar -c -f - blabla" create
    a tar file named "-" instead of writing to stdout.

    The included patch should fix this.

22 years agoThis patch from Magnus Damm fixed a long standing problem
Eric Andersen [Fri, 25 Oct 2002 12:14:02 +0000 (12:14 -0000)]
This patch from Magnus Damm fixed a long standing problem
with freeing memory.

22 years agoFix warning
Eric Andersen [Tue, 22 Oct 2002 22:15:33 +0000 (22:15 -0000)]
Fix warning

22 years agomjn3 noticed that crond and crontab had #include <pwd.h> and #include <grp.h>
Eric Andersen [Tue, 22 Oct 2002 20:08:51 +0000 (20:08 -0000)]
mjn3 noticed that crond and crontab had #include <pwd.h> and #include <grp.h>
but this conflicted with the internal pwd_.h and grp_.h.  Removing these
headers is correct, since the correct pwd/grp headers will be included via
busybox.h
 -Erik

22 years agovodz forgot to include the suid field
Eric Andersen [Tue, 22 Oct 2002 20:01:08 +0000 (20:01 -0000)]
vodz forgot to include the suid field

22 years agoApply patch from bug #1278 -- fix usage message for the
Eric Andersen [Tue, 22 Oct 2002 19:21:48 +0000 (19:21 -0000)]
Apply patch from bug #1278 -- fix usage message for the
start_stop_daemon applet.

22 years agovodz writes:
Eric Andersen [Tue, 22 Oct 2002 19:19:13 +0000 (19:19 -0000)]
vodz writes:
    Oops... Last patch 63 have small typo (stable/devel) mixing.
    Attached patch removing lines from TODO also :)

22 years agoI committed the fflush in the wrong spot. I should go to bed
Eric Andersen [Tue, 22 Oct 2002 19:15:43 +0000 (19:15 -0000)]
I committed the fflush in the wrong spot.  I should go to bed
earlier so I don't screw up such easy stuff.
 -Erik

22 years agolast_patch63 from vodz: add in crond and crontab applets
Eric Andersen [Tue, 22 Oct 2002 12:24:59 +0000 (12:24 -0000)]
last_patch63 from vodz: add in crond and crontab applets

22 years agoPatch last_pach62 from vodz. This patch moves all the /proc parsing
Eric Andersen [Tue, 22 Oct 2002 12:21:15 +0000 (12:21 -0000)]
Patch last_pach62 from vodz.  This patch moves all the /proc parsing
code into libbb so it can be shared by ps, top, etc, saving over 1.5k.

22 years agoApply last_patch51_3 from vodz
Eric Andersen [Tue, 22 Oct 2002 11:58:59 +0000 (11:58 -0000)]
Apply last_patch51_3 from vodz

22 years agoBe absurdly careful about flushing stdout.
Eric Andersen [Tue, 22 Oct 2002 11:45:20 +0000 (11:45 -0000)]
Be absurdly careful about flushing stdout.

22 years agoMove unzip.c uncompress.c from libbb to archiveal/libunarchive
Glenn L McGrath [Tue, 22 Oct 2002 01:07:32 +0000 (01:07 -0000)]
Move unzip.c uncompress.c from libbb to archiveal/libunarchive

22 years agogz_open is used anymore, use inflate directly, see how its done in get_header_tar_gz
Glenn L McGrath [Mon, 21 Oct 2002 06:29:55 +0000 (06:29 -0000)]
gz_open is used anymore, use inflate directly, see how its done in get_header_tar_gz

22 years agoDont try and make the "/" directory
Glenn L McGrath [Sat, 19 Oct 2002 23:56:41 +0000 (23:56 -0000)]
Dont try and make the "/" directory

22 years agoUpdate dpkg to use new unarchive code
Glenn L McGrath [Sat, 19 Oct 2002 10:40:55 +0000 (10:40 -0000)]
Update dpkg to use new unarchive code

22 years agoFix exclude/include problem
Glenn L McGrath [Sat, 19 Oct 2002 06:19:22 +0000 (06:19 -0000)]
Fix exclude/include problem

22 years agoFind a string in a list
Glenn L McGrath [Sat, 19 Oct 2002 05:10:51 +0000 (05:10 -0000)]
Find a string in a list

22 years agoRemove entries from the accept list as they are matched so we can determine if any...
Glenn L McGrath [Sat, 19 Oct 2002 02:18:51 +0000 (02:18 -0000)]
Remove entries from the accept list as they are matched so we can determine if any files that were specified in the list wernt found.

22 years agoDont use absolute pathname (dunno why i did that), fix tar filename/stdin problems
Glenn L McGrath [Sat, 19 Oct 2002 00:46:35 +0000 (00:46 -0000)]
Dont use absolute pathname (dunno why i did that), fix tar filename/stdin problems

22 years agoPut bac kthe code that handles cases where a '-' wasnt specified prior to the options.
Glenn L McGrath [Fri, 18 Oct 2002 23:59:40 +0000 (23:59 -0000)]
Put bac kthe code that handles cases where a '-' wasnt specified prior to the options.

22 years agoFix an obvious thinko
Eric Andersen [Fri, 18 Oct 2002 22:31:02 +0000 (22:31 -0000)]
Fix an obvious thinko
 -Erik

22 years agodisambiguate a test
Eric Andersen [Fri, 18 Oct 2002 22:18:10 +0000 (22:18 -0000)]
disambiguate a test

22 years agoFix needless formatting differences vs modutils
Eric Andersen [Fri, 18 Oct 2002 22:14:07 +0000 (22:14 -0000)]
Fix needless formatting differences vs modutils

22 years agoFix needless difference vs GNU
Eric Andersen [Fri, 18 Oct 2002 22:13:23 +0000 (22:13 -0000)]
Fix needless difference vs GNU

22 years agomissed add for udhcp
Russ Dill [Mon, 14 Oct 2002 21:47:07 +0000 (21:47 -0000)]
missed add for udhcp

22 years agoadded full udhcp integration
Russ Dill [Mon, 14 Oct 2002 21:41:28 +0000 (21:41 -0000)]
added full udhcp integration

22 years agoDoh! I screwed up applying vodz' patch.
Eric Andersen [Sat, 12 Oct 2002 04:16:08 +0000 (04:16 -0000)]
Doh!  I screwed up applying vodz' patch.
 -Erik

22 years agoAfter thinking about it, I think this patch from Matt Kraai is probably the
Eric Andersen [Sat, 12 Oct 2002 04:05:48 +0000 (04:05 -0000)]
After thinking about it, I think this patch from Matt Kraai is probably the
best way to go.  Sysvinit does not provide a controlling tty since it doesn't
even try to open ttys for apps.  We do.  So we should _try_ to provide a
controlling tty if possible, but we needn't freak out if it doesn't work.  This
way we won't need to use openvt or similar, we'll just have init do the Right
Thing(tm).

22 years agolast_patch61 from vodz:
Eric Andersen [Thu, 10 Oct 2002 04:20:21 +0000 (04:20 -0000)]
last_patch61 from vodz:
    New complex patch for decrease size devel version. Requires previous patch.
    Also removed small problems from dutmp and tar applets.
Also includes vodz' last_patch61_2:
    Last patch correcting comment for #endif and more integrated
    with libbb (very reduce size if used "cat" applet also).
    Requires last_patch61 for modutils/config.in.

22 years agolast_patch60 from vodz:
Eric Andersen [Thu, 10 Oct 2002 03:55:09 +0000 (03:55 -0000)]
last_patch60 from vodz:
    login and getty applets writes utmp/wtmp but init do clearing not.
    I think, in current time deny wtmp/utmp writes as undefault features.

22 years agolast_patch59 from vodz to cleanup chmod and correctly parse '-rwxgoa'
Eric Andersen [Thu, 10 Oct 2002 03:47:01 +0000 (03:47 -0000)]
last_patch59 from vodz to cleanup chmod and correctly parse '-rwxgoa'

22 years agolast_patch58_2 from vodz -- add FEATURE_CPU_USAGE_PERCENTAGE option
Eric Andersen [Thu, 10 Oct 2002 03:44:12 +0000 (03:44 -0000)]
last_patch58_2 from vodz -- add FEATURE_CPU_USAGE_PERCENTAGE option