oweals/busybox.git
17 years agorespect CFLAGS/CPPFLAGS in env
Mike Frysinger [Fri, 26 Jan 2007 07:14:01 +0000 (07:14 -0000)]
respect CFLAGS/CPPFLAGS in env

17 years agofix option -F mishandling
Denis Vlasenko [Fri, 26 Jan 2007 07:02:56 +0000 (07:02 -0000)]
fix option -F mishandling

17 years agofix non-ipv6 compile
Denis Vlasenko [Fri, 26 Jan 2007 07:01:10 +0000 (07:01 -0000)]
fix non-ipv6 compile

17 years agoannounce 1.4.1
Denis Vlasenko [Thu, 25 Jan 2007 21:10:43 +0000 (21:10 -0000)]
announce 1.4.1

17 years agoarping: stop using last gethostbyname2 in the tree
Denis Vlasenko [Thu, 25 Jan 2007 19:44:38 +0000 (19:44 -0000)]
arping: stop using last gethostbyname2 in the tree
hostname: small optimization

17 years agoaccidentally applied wrong (old) patch, fixing up...
Denis Vlasenko [Thu, 25 Jan 2007 00:00:02 +0000 (00:00 -0000)]
accidentally applied wrong (old) patch, fixing up...

17 years agoopt_complementary doesn't like numeric opts :(
Denis Vlasenko [Wed, 24 Jan 2007 23:55:34 +0000 (23:55 -0000)]
opt_complementary doesn't like numeric opts :(

17 years agoUnify ping and ping6. ping has -4 and -6 which force
Denis Vlasenko [Wed, 24 Jan 2007 23:53:22 +0000 (23:53 -0000)]
Unify ping and ping6. ping has -4 and -6 which force
name resolution into IP or IPv6 only, otherwise
we take address family returned by host2sockaddr()
in lsa->sa.sa_family. IOW: "ping ::1" with do IPv6 ping,
"ping 127.0.0.1" will do IPv4 ping.
ping6 is aliased to "ping -6".

17 years agohostname declaration was misplaced
Denis Vlasenko [Wed, 24 Jan 2007 22:12:35 +0000 (22:12 -0000)]
hostname declaration was misplaced

17 years agoaccumulated post-1.4.0 fixes
Denis Vlasenko [Wed, 24 Jan 2007 22:02:01 +0000 (22:02 -0000)]
accumulated post-1.4.0 fixes

17 years ago- remove nested function. Saves ~30 bytes.
Bernhard Reutner-Fischer [Wed, 24 Jan 2007 21:38:10 +0000 (21:38 -0000)]
- remove nested function. Saves ~30 bytes.

17 years ago- TODO: merge 'struct suffix_mult $several_suffixes[] into a struct suffix_mult
Bernhard Reutner-Fischer [Wed, 24 Jan 2007 21:13:16 +0000 (21:13 -0000)]
- TODO: merge 'struct suffix_mult $several_suffixes[]  into a struct suffix_mult
  for several in head tail od_bloaty hexdump svlogd

17 years agocombine depends lines
Mike Frysinger [Wed, 24 Jan 2007 14:50:27 +0000 (14:50 -0000)]
combine depends lines

17 years agoas Peter Kjellerstedt points out, bool/prompt/depend need to be split up in order...
Mike Frysinger [Wed, 24 Jan 2007 14:34:35 +0000 (14:34 -0000)]
as Peter Kjellerstedt points out, bool/prompt/depend need to be split up in order to achieve the desired behavior (default to Y without a prompt); revert previous to commits to this file

17 years agochange "bool ... if OPT" to more common "depend ... OPT"
Mike Frysinger [Wed, 24 Jan 2007 12:16:08 +0000 (12:16 -0000)]
change "bool ... if OPT" to more common "depend ... OPT"

17 years agocombine bool;prompt to just bool
Mike Frysinger [Wed, 24 Jan 2007 09:32:42 +0000 (09:32 -0000)]
combine bool;prompt to just bool

17 years agocombine bool;prompt to just bool
Mike Frysinger [Wed, 24 Jan 2007 09:32:19 +0000 (09:32 -0000)]
combine bool;prompt to just bool

17 years ago"depends ..." -> "depends on ..."
Mike Frysinger [Wed, 24 Jan 2007 09:14:09 +0000 (09:14 -0000)]
"depends ..." -> "depends on ..."

17 years agocorrect file format errors
Mike Frysinger [Wed, 24 Jan 2007 08:24:43 +0000 (08:24 -0000)]
correct file format errors

17 years ago- add hostcc-option checker
Bernhard Reutner-Fischer [Tue, 23 Jan 2007 11:44:14 +0000 (11:44 -0000)]
- add hostcc-option checker

17 years ago- call cc-option to check if the compiler supports the flags we asked to use
Bernhard Reutner-Fischer [Tue, 23 Jan 2007 11:39:13 +0000 (11:39 -0000)]
- call cc-option to check if the compiler supports the flags we asked to use

17 years ago- add an unsupported makefile for IMA compiles
Bernhard Reutner-Fischer [Tue, 23 Jan 2007 01:29:04 +0000 (01:29 -0000)]
- add an unsupported makefile for IMA compiles
  Nice for catching eventual breakage early on..

17 years ago- rtnl_rttable_a2n wants an unsigned int32
Bernhard Reutner-Fischer [Tue, 23 Jan 2007 01:27:17 +0000 (01:27 -0000)]
- rtnl_rttable_a2n wants an unsigned int32

17 years agoadd link to fixes-1.4.0
Denis Vlasenko [Mon, 22 Jan 2007 23:39:08 +0000 (23:39 -0000)]
add link to fixes-1.4.0

17 years agofix warning from needlessly-global functions
Denis Vlasenko [Mon, 22 Jan 2007 23:04:27 +0000 (23:04 -0000)]
fix warning from needlessly-global functions

17 years agoremove empty source files
Denis Vlasenko [Mon, 22 Jan 2007 22:47:07 +0000 (22:47 -0000)]
remove empty source files

17 years agoclean up commented out old code
Denis Vlasenko [Mon, 22 Jan 2007 22:46:04 +0000 (22:46 -0000)]
clean up commented out old code

17 years agoping6: stop using xgethostbyname2, remove it from libbb.
Denis Vlasenko [Mon, 22 Jan 2007 22:45:27 +0000 (22:45 -0000)]
ping6: stop using xgethostbyname2, remove it from libbb.

17 years agonslookup: full circle. Here we started IPv6 work. Use "new API"
Denis Vlasenko [Mon, 22 Jan 2007 22:43:05 +0000 (22:43 -0000)]
nslookup: full circle. Here we started IPv6 work. Use "new API"
and thus save a few bytes.

17 years ago- add more strict prototype checking to catch wrong and broken code (like nested...
Bernhard Reutner-Fischer [Mon, 22 Jan 2007 17:50:21 +0000 (17:50 -0000)]
- add more strict prototype checking to catch wrong and broken code (like nested functions)

17 years ago- the archivers expect mode to be a mode_t, so do not trip signed/unsigned conversion...
Bernhard Reutner-Fischer [Mon, 22 Jan 2007 17:48:08 +0000 (17:48 -0000)]
- the archivers expect mode to be a mode_t, so do not trip signed/unsigned conversion purposefully

17 years ago- forgot to include ip_common.h
Bernhard Reutner-Fischer [Mon, 22 Jan 2007 17:42:37 +0000 (17:42 -0000)]
- forgot to include ip_common.h

17 years ago- not sure if we want a timestamp there, so put one in
Bernhard Reutner-Fischer [Mon, 22 Jan 2007 17:12:56 +0000 (17:12 -0000)]
- not sure if we want a timestamp there, so put one in

17 years ago- sed -i -e "/\$Id:/d;"
Bernhard Reutner-Fischer [Mon, 22 Jan 2007 17:04:53 +0000 (17:04 -0000)]
- sed -i -e "/\$Id:/d;"

17 years agocleanups: unnecessary casts, unified const_1, eliminate cross-.c file
Denis Vlasenko [Mon, 22 Jan 2007 14:12:08 +0000 (14:12 -0000)]
cleanups: unnecessary casts, unified const_1, eliminate cross-.c file
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED",
removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.

17 years agodnsd: getfileentry was leaking memory
Denis Vlasenko [Mon, 22 Jan 2007 14:06:03 +0000 (14:06 -0000)]
dnsd: getfileentry was leaking memory
mount: improve readability

17 years agoexterminate u_intXXX.
Denis Vlasenko [Mon, 22 Jan 2007 14:04:27 +0000 (14:04 -0000)]
exterminate u_intXXX.
fix ping6 buglet (memset is too short), minor sync between ping and ping6

17 years agocomment out unused old networking API parts
Denis Vlasenko [Mon, 22 Jan 2007 09:36:41 +0000 (09:36 -0000)]
comment out unused old networking API parts
sockaddr2dotted: return IPV6 addrs in [addr]:port form (was addr:port)

17 years agoremove obsolete FEATURE_WGET_IP6_LITERAL
Denis Vlasenko [Mon, 22 Jan 2007 09:14:02 +0000 (09:14 -0000)]
remove obsolete FEATURE_WGET_IP6_LITERAL

17 years agodefconfig: refresh
Denis Vlasenko [Mon, 22 Jan 2007 09:12:15 +0000 (09:12 -0000)]
defconfig: refresh

17 years agomove shell/cmdedit.c -> libbb/lineedit.c
Denis Vlasenko [Mon, 22 Jan 2007 09:03:42 +0000 (09:03 -0000)]
move shell/cmdedit.c -> libbb/lineedit.c

17 years agocmdedit is not a 'command' editing anymore, it's just editing (generic),
Denis Vlasenko [Mon, 22 Jan 2007 09:03:07 +0000 (09:03 -0000)]
cmdedit is not a 'command' editing anymore, it's just editing (generic),
so rename stuff accordingly.

17 years agocmdedit: fix breakage
Denis Vlasenko [Mon, 22 Jan 2007 08:34:44 +0000 (08:34 -0000)]
cmdedit: fix breakage

17 years agocmdedit.h: remove
Denis Vlasenko [Mon, 22 Jan 2007 08:17:14 +0000 (08:17 -0000)]
cmdedit.h: remove

17 years agocmdedit: stop playing dirty games with atexit
Denis Vlasenko [Mon, 22 Jan 2007 07:30:26 +0000 (07:30 -0000)]
cmdedit: stop playing dirty games with atexit

17 years agoConvert cmdedit into more generic line input facility
Denis Vlasenko [Mon, 22 Jan 2007 07:21:38 +0000 (07:21 -0000)]
Convert cmdedit into more generic line input facility
(make history and completion optional at runtime).
Use it for fdisk, as an example.
Some unrelated fixes in fdisk are also here.

17 years agoIntroduce FEATURE_EDITING_FANCY_KEYS, so that user can disable
Denis Vlasenko [Sun, 21 Jan 2007 19:21:21 +0000 (19:21 -0000)]
Introduce FEATURE_EDITING_FANCY_KEYS, so that user can disable
less-known keys (e.g. Ctrl-B/E/F)

17 years agocmdedit: more optimizations
Denis Vlasenko [Sun, 21 Jan 2007 19:19:46 +0000 (19:19 -0000)]
cmdedit: more optimizations

17 years agocmdedit: small optimizations
Denis Vlasenko [Sun, 21 Jan 2007 19:18:59 +0000 (19:18 -0000)]
cmdedit: small optimizations

17 years agosanitize cmdedit a bit (group functions by task etc)
Denis Vlasenko [Sun, 21 Jan 2007 19:18:19 +0000 (19:18 -0000)]
sanitize cmdedit a bit (group functions by task etc)

17 years ago- use makedev to get device number, else it gives wrong major/minor numbers to device...
Bernhard Reutner-Fischer [Sun, 21 Jan 2007 11:20:01 +0000 (11:20 -0000)]
- use makedev to get device number, else it gives wrong major/minor numbers to devices files on systems which use big device numbers.
  Closes #919

17 years agoIntroduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our own
Denis Vlasenko [Sun, 21 Jan 2007 00:41:04 +0000 (00:41 -0000)]
Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our own
executable if we asked to exec someting with argv[0] == known_applet"
Use it in init. Also respect PATH in init, remove explicit "/sbin" etc
from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>

17 years ago- point to correct version. Thanks to Yann E. MORIN.
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:46:20 +0000 (21:46 -0000)]
- point to correct version. Thanks to Yann E. MORIN.

17 years ago- make tty's pre SUSv3 option handling dependant on INCLUDE_SUSv2
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:34:24 +0000 (21:34 -0000)]
- make tty's pre SUSv3 option handling dependant on INCLUDE_SUSv2

17 years ago- get_terminal_width_height does not and should never write to fd. Cosmetic Precaution
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:33:50 +0000 (21:33 -0000)]
- get_terminal_width_height does not and should never write to fd. Cosmetic Precaution

17 years ago- small size tweak
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:32:38 +0000 (21:32 -0000)]
- small size tweak

17 years ago- make pre SUSv3 option handling dependant on INCLUDE_SUSv2
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:32:20 +0000 (21:32 -0000)]
- make pre SUSv3 option handling dependant on INCLUDE_SUSv2

17 years ago- small size tweak
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:31:21 +0000 (21:31 -0000)]
- small size tweak

17 years ago- reuse retval for the option handling.
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:30:49 +0000 (21:30 -0000)]
- reuse retval for the option handling.
- TODO add tee, readahead and splice support to uClibc and use it in busybox!

17 years ago- small size tweaks
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:29:50 +0000 (21:29 -0000)]
- small size tweaks

17 years ago- make read_stduu() and read_base64() void, small size tweaks
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:29:32 +0000 (21:29 -0000)]
- make read_stduu() and read_base64() void, small size tweaks

17 years ago- small size tweak
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:28:36 +0000 (21:28 -0000)]
- small size tweak

17 years ago- add C99 bool type for setups that support it.
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:27:18 +0000 (21:27 -0000)]
- add C99 bool type for setups that support it.

17 years agoAnnounce 1.3.2 and 1.4.0 on busybox.net
Denis Vlasenko [Sat, 20 Jan 2007 20:38:57 +0000 (20:38 -0000)]
Announce 1.3.2 and 1.4.0 on busybox.net

17 years agohead is 1.5.0.svn now
Denis Vlasenko [Sat, 20 Jan 2007 20:02:29 +0000 (20:02 -0000)]
head is 1.5.0.svn now

17 years agoreleasing busybox 1.4.0 1_4_0
Denis Vlasenko [Sat, 20 Jan 2007 19:57:57 +0000 (19:57 -0000)]
releasing busybox 1.4.0

17 years agofixing bugs revealed by randomconfig runs
Denis Vlasenko [Sat, 20 Jan 2007 16:54:19 +0000 (16:54 -0000)]
fixing bugs revealed by randomconfig runs

17 years agofixes for amd64 compilation
Denis Vlasenko [Sat, 20 Jan 2007 01:47:44 +0000 (01:47 -0000)]
fixes for amd64 compilation

17 years agols: stop doing time() for each file in "ls -l"
Denis Vlasenko [Fri, 19 Jan 2007 22:03:06 +0000 (22:03 -0000)]
ls: stop doing time() for each file in "ls -l"
ls: use fully-buffered stdout (can it be problematic
on VERY slow/hanging NFS mounts?)

17 years agostrdup -> xstrdup
Denis Vlasenko [Fri, 19 Jan 2007 21:33:19 +0000 (21:33 -0000)]
strdup -> xstrdup
sed: de-obfuscate piece of code

17 years agols: use get_cached_username/groupname
Denis Vlasenko [Fri, 19 Jan 2007 21:24:17 +0000 (21:24 -0000)]
ls: use get_cached_username/groupname

17 years agoopenvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup code
Denis Vlasenko [Fri, 19 Jan 2007 21:19:35 +0000 (21:19 -0000)]
openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup code
(will close all fd's > 2 on daemonization now)
getty: fix "getty -" support, and also do not try to chown/chmod "-"
telnetd: fix "lost ctty" bug
Yet another attempt on saner function names:
bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize();

17 years agofsck: dead code removal; also disable progress indicator code
Denis Vlasenko [Fri, 19 Jan 2007 02:04:09 +0000 (02:04 -0000)]
fsck: dead code removal; also disable progress indicator code
(doesn't look good to me)

17 years agofsck: stop using strtok
Denis Vlasenko [Fri, 19 Jan 2007 02:03:14 +0000 (02:03 -0000)]
fsck: stop using strtok

17 years agofsck: move functions around so that related ones are nearby
Denis Vlasenko [Fri, 19 Jan 2007 02:02:33 +0000 (02:02 -0000)]
fsck: move functions around so that related ones are nearby
no actual code changes

17 years agofsck: small optimization
Denis Vlasenko [Fri, 19 Jan 2007 02:01:19 +0000 (02:01 -0000)]
fsck: small optimization

17 years agofix potentially misaligned 32-bit accesses
Denis Vlasenko [Thu, 18 Jan 2007 15:42:00 +0000 (15:42 -0000)]
fix potentially misaligned 32-bit accesses

17 years ago- move the smallint that is platform dependant to it's proper place
Bernhard Reutner-Fischer [Thu, 18 Jan 2007 10:32:09 +0000 (10:32 -0000)]
- move the smallint that is platform dependant to it's proper place

17 years agoUse char for smallint on CRIS as well.
Peter Kjellerstedt [Thu, 18 Jan 2007 10:26:07 +0000 (10:26 -0000)]
Use char for smallint on CRIS as well.

17 years ago- reinstate paranoia check in wrapf().
Bernhard Reutner-Fischer [Thu, 18 Jan 2007 08:41:22 +0000 (08:41 -0000)]
- reinstate paranoia check in wrapf().

17 years agofix subtle bug inherited from dash
Denis Vlasenko [Thu, 18 Jan 2007 01:12:57 +0000 (01:12 -0000)]
fix subtle bug inherited from dash

17 years agostop using global variable needlessly
Denis Vlasenko [Thu, 18 Jan 2007 00:53:35 +0000 (00:53 -0000)]
stop using global variable needlessly

17 years agosmallint can be a char for amd64 too
Denis Vlasenko [Thu, 18 Jan 2007 00:16:06 +0000 (00:16 -0000)]
smallint can be a char for amd64 too

17 years agosed,get_line_from_file: improve comments
Denis Vlasenko [Wed, 17 Jan 2007 23:16:16 +0000 (23:16 -0000)]
sed,get_line_from_file: improve comments

17 years ago- stty's visible() function and catv's guts are identical. Merge them into
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:51:00 +0000 (19:51 -0000)]
- stty's visible() function and catv's guts are identical. Merge them into
  an appropriate libbb function.

17 years ago- remove superfluous define that expanded to "!strcmp"
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:46:46 +0000 (19:46 -0000)]
- remove superfluous define that expanded to "!strcmp"
- remove some dead code

17 years ago- reuse return code of vsnprintf to avoid pulling in strlen
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:46:33 +0000 (19:46 -0000)]
- reuse return code of vsnprintf to avoid pulling in strlen

17 years ago- merge display_changed() and display_all()
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:46:12 +0000 (19:46 -0000)]
- merge display_changed() and display_all()
  This one is a bit risky but did work for me in cursory testing..

17 years ago- peruse get_terminal_width_height and remove legacy code for ancient
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:45:36 +0000 (19:45 -0000)]
- peruse get_terminal_width_height and remove legacy code for ancient
  slowaris versions.

17 years ago- rewrite find_param to use index_in_str_array
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:45:14 +0000 (19:45 -0000)]
- rewrite find_param to use index_in_str_array

17 years ago- manually inline tty_value_to_baud and remove string_to_baud_or_die
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:44:59 +0000 (19:44 -0000)]
- manually inline tty_value_to_baud and remove string_to_baud_or_die
  (cleanup)

17 years ago- constify some read-only members and remove superfluous casts
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:44:24 +0000 (19:44 -0000)]
- constify some read-only members and remove superfluous casts
  (cleanup)

17 years ago- reuse option_mask32 for state-handling in main
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:42:30 +0000 (19:42 -0000)]
- reuse option_mask32 for state-handling in main
- improve check for errors from fcntl

17 years ago- replace some occurances of "kernel" with busybox
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:36:01 +0000 (19:36 -0000)]
- replace some occurances of "kernel" with busybox

17 years agohttpd: use fd#1 in inetd mode
Denis Vlasenko [Sun, 14 Jan 2007 17:06:11 +0000 (17:06 -0000)]
httpd: use fd#1 in inetd mode
inetd: micro style fix

17 years agoinetd: preparatory patch, no code changes
Denis Vlasenko [Sun, 14 Jan 2007 14:46:18 +0000 (14:46 -0000)]
inetd: preparatory patch, no code changes

17 years agoRename bb_sanitize_stdio -> bb_sanitize_server_stdio
Denis Vlasenko [Sun, 14 Jan 2007 13:12:06 +0000 (13:12 -0000)]
Rename bb_sanitize_stdio -> bb_sanitize_server_stdio
(name is still bad - it doesn't hint that function
may do daemonization trick for you if asked to).
Small fixes to fakeidentd.

17 years agosmall size optimization
Denis Vlasenko [Sun, 14 Jan 2007 12:47:27 +0000 (12:47 -0000)]
small size optimization

17 years agoisrv.h: add copyright info
Denis Vlasenko [Sun, 14 Jan 2007 12:34:48 +0000 (12:34 -0000)]
isrv.h: add copyright info

17 years agoI forgot "svn add" AGAIN! :(
Denis Vlasenko [Sun, 14 Jan 2007 12:32:30 +0000 (12:32 -0000)]
I forgot "svn add" AGAIN! :(