Denis Vlasenko
0bb993f39b
httpd: More robust Content-length: parsing,
...
code reorganization (less indented)
2006-11-21 00:06:28 +00:00
Denis Vlasenko
736230e209
dhcprelay: new applet
2006-11-20 19:40:36 +00:00
Denis Vlasenko
c9cdeaa3fe
add compile-time check for correct DHCP packet size
2006-11-20 01:13:09 +00:00
Denis Vlasenko
4a5cf16a36
login: use %s - we know that string is not too long there
...
ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly
(was requiring '-c 6' with mandatory space)
2006-11-20 00:48:22 +00:00
Denis Vlasenko
89f0b3486d
rodata cleanup. "unable to" == "cannot". -300 bytes
2006-11-18 22:04:09 +00:00
Denis Vlasenko
61126ab30a
small fixes: using fd-based io instead of FILE*-based,
...
missed O_TRUNC, etc
2006-11-18 22:03:26 +00:00
Denis Vlasenko
5a3395bc01
udhcp: fix indentation and style.
...
Eliminate (group) a lot of smallish *.h files
Remove lots of unneeded #includes
2006-11-18 19:51:32 +00:00
Denis Vlasenko
a7189f01a4
add -Wundef, fix uncovered bugs
2006-11-17 20:29:00 +00:00
Denis Vlasenko
a5342b4541
httpd: make Bernhard happier
2006-11-17 18:26:57 +00:00
Denis Vlasenko
b3a071543d
httpd: reduce ifdef forest. comment out redundant PATH setting
2006-11-16 18:04:43 +00:00
Denis Vlasenko
d4f3d1a4bd
httpd:
...
fix union aliasing bug
symptom: wget of non-existent file gets redirected to /text/html/something
on second and subsequend wget attempts
fix double-free bug
symptom: glibc caught double-free (we didn't NULL config->xxx ptrs after free)
2006-11-16 16:20:12 +00:00
Denis Vlasenko
0871bc89fb
httpd: add -i (inetd) and -f (foreground) otions.
...
-i makes possible to run httpd in both inetd and standalone mode
without recompile (or need to have two different binaries)
2006-11-16 16:17:02 +00:00
Denis Vlasenko
e867b7ce86
httpd: stop being silly with setenv
2006-11-16 16:12:09 +00:00
Denis Vlasenko
6c5e5a0e85
httpd: cosmetic fixes (the bug which was being hunted down
...
turned out to be nonexistent :)
2006-11-10 23:28:57 +00:00
Denis Vlasenko
067e3f031a
wget: fix error message.
...
Bad:
wget http://127.0.0.1:81/fgdg/Makefile
Connecting to 127.0.0.1[127.0.0.1]:81
: HTTP/1.0 404 Not Foundror 404 Not Found
Good:
wget http://127.0.0.1:81/fgdg/Makefile
Connecting to 127.0.0.1[127.0.0.1]:81
get: server returned error: HTTP/1.0 404 Not Found
nslookup: fix my mistake
applets: make Bernhard Fischer <rep.nop@aon.at> happy :)
2006-11-10 23:25:53 +00:00
Denis Vlasenko
8528151658
small ipv6 doc changes; nslookup a tiny bit smaller
2006-11-07 19:05:43 +00:00
Denis Vlasenko
9f60929cc4
httpd: sendCgi() forked child needs to close opened
...
server socket and accepted socket
2006-11-05 19:47:33 +00:00
Denis Vlasenko
5af906e7c8
rename: compare_string_array -> index_in_str_array
...
introduce index_in_substr_array and use it in
iproute2
2006-11-05 18:05:09 +00:00
Denis Vlasenko
9d4533ede1
Fix kbuild bugs noticed by Bernhard Fischer <rep.nop@aon.at>
2006-11-02 22:09:37 +00:00
Denis Vlasenko
9225854144
mostly style fixes
2006-11-01 10:25:35 +00:00
Denis Vlasenko
5d499e1600
find: a lot more compliant to 'standard' find
...
(we were not respecting order of actions!).
Add -o and -a handling.
2006-10-29 19:07:01 +00:00
Denis Vlasenko
5c7596058d
ls: cleanup part 1
2006-10-28 12:37:16 +00:00
Denis Vlasenko
621204bbf6
get_terminal_width_height: do not pass insanely large values
2006-10-27 09:03:24 +00:00
Denis Vlasenko
d3d004dd35
last nail into error_msg() (de)capitalization
2006-10-27 09:02:31 +00:00
Denis Vlasenko
f0ed376eda
remove bb_printf and the like
2006-10-26 23:21:47 +00:00
Denis Vlasenko
ebe578ab2f
nslookup: make it more IPv6 friendly
2006-10-26 17:17:59 +00:00
Denis Vlasenko
1457915afc
xconnect is non-conforming to "xfunc like libc" rule. Fixing
2006-10-26 01:09:46 +00:00
Denis Vlasenko
940b2e4b73
ip: "ip addr del" and "ip addr delete" both should work
2006-10-26 00:38:22 +00:00
Denis Vlasenko
c6f188def8
silly size savings and capitalization fixes
2006-10-26 00:37:00 +00:00
Denis Vlasenko
d18a3a20db
use skip_whitespace where appropriate
2006-10-25 12:46:03 +00:00
Denis Vlasenko
c8400a2162
wget: wget $'-\207' ... should not be allowed to work. ever. :)
...
So fix wget & getopt32. Also fix multiple --header options
order: add and use rev_llist.
2006-10-25 00:33:44 +00:00
Denis Vlasenko
7534e0834f
wget: -100 bytes, reduce stack usage, remove --header length limit
2006-10-23 23:21:58 +00:00
Denis Vlasenko
e1a0d486e4
message string changes, mostly for consistency, also -32 bytes in .rodata
2006-10-20 13:28:22 +00:00
Denis Vlasenko
4e33e07f60
strip -> $(STRIP); fix "unused variable" warning
...
(patch by Diekema, Jon (AGRE) <Jon.Diekema@smiths-aerospace.com>)
2006-10-16 18:24:57 +00:00
Denis Vlasenko
d0e70af9d1
nc: fix 2 my own buglets, and few someone else's too.
2006-10-16 01:10:28 +00:00
Denis Vlasenko
c6ec8c9680
telnetd: check ptsname() for NULL
2006-10-15 18:22:05 +00:00
Denis Vlasenko
023b57d935
wget: xatoi's were oversealous ("200 OK" isn't a number)
2006-10-15 17:05:55 +00:00
Denis Vlasenko
ea62077b85
add open_read_close() and similar stuff
2006-10-14 02:23:43 +00:00
Denis Vlasenko
2d5ca60bfb
bb_get_[chomped]line_from_file wasn't descriptive enough.
...
Renaming...
2006-10-12 22:43:20 +00:00
Denis Vlasenko
a6dbb08a48
small style fixes
2006-10-12 19:29:44 +00:00
Denis Vlasenko
f6f43df60b
ifupdown: stop emitting annoying/misleading error messages.
...
Patch by Gabriel Somlo <somlo at cmu.edu>
2006-10-11 22:16:56 +00:00
Denis Vlasenko
cba9ef5523
fixes from Vladimir Dronnikov <dronnikov@gmail.ru>
2006-10-10 21:00:47 +00:00
Denis Vlasenko
7039a66b58
correct largefile support, add comments about it.
2006-10-08 17:54:47 +00:00
Denis Vlasenko
1385899416
attempt to regularize atoi mess.
2006-10-08 12:49:22 +00:00
Denis Vlasenko
5625415085
dd: make it recognize not only 'k' but 'K' too;
...
make it (partially) CONFIG_LFS-aware
2006-10-07 16:24:46 +00:00
Denis Vlasenko
96e9d3c968
wget: don't be careless with xstrdup'ing
2006-10-07 14:28:55 +00:00
Denis Vlasenko
a655152b00
wget: fix download of URLs like:
...
http://busybox.net?var=a/b
http://busybox.net?login=john@doe
http://busybox.net#test/test
2006-10-07 14:28:28 +00:00
Denis Vlasenko
c12f53090b
dnsd fix; option_mask32 added. dnsd needs more love.
2006-10-06 09:49:47 +00:00
Denis Vlasenko
000b9ba91f
eject: -T fix
2006-10-05 23:12:49 +00:00
Denis Vlasenko
de59c0f58f
httpd: add -u user[:grp] support
2006-10-05 22:50:22 +00:00
Denis Vlasenko
7d219aab70
build system overhaul
2006-10-05 10:17:08 +00:00
Denis Vlasenko
8f8f268cfd
bb_applet_name -> applet_name
2006-10-03 21:00:43 +00:00
Denis Vlasenko
67b23e6043
getopt_ulflags -> getopt32.
...
It is impossible to formulate sane ABI based on
size of ulong because it can be 32-bit or 64-bit.
Basically it means that you cannot portably use
more that 32 option chars in one call anyway...
Make it explicit.
2006-10-03 21:00:06 +00:00
Denis Vlasenko
40920825d5
rename bb_default_error_retval -> xfunc_error_retval
2006-10-03 20:28:06 +00:00
Denis Vlasenko
9275814a9e
lots of silly indent fixes
2006-10-03 19:56:34 +00:00
Denis Vlasenko
6edaddec02
traceroute: fix compilation if netinet/protocols.h is missing
2006-10-03 18:19:02 +00:00
Denis Vlasenko
7c1ed2e922
traceroute: do not look up icmp protocol# in /etc, it is well-known :)
2006-10-03 10:47:35 +00:00
Denis Vlasenko
1c3577f91d
ifupdown: Debian users contributed improvement to it
2006-10-02 20:57:10 +00:00
Denis Vlasenko
f8aa109a9f
wget: make progress bar and ETA work correctly with -c
2006-10-01 10:58:54 +00:00
Denis Vlasenko
55a994055f
lsmod: repair indentation
...
httpd: ifdef CONFIG -> if ENABLE (shorted, catched typos)
2006-09-30 20:41:44 +00:00
Denis Vlasenko
3038ac9c19
vconfig: fix bug 701 (I be damned if I understand it)
2006-09-30 19:37:25 +00:00
Denis Vlasenko
7935a5a992
libiproute/ll_map.c: fix bug 279
...
("On-demand net module loading fails with CONFIG_FEATURE_IFUPDOWN_IP")
2006-09-30 00:18:16 +00:00
Denis Vlasenko
a959588b80
Yet another silly little byte saving. couldn't -> cannot
2006-09-29 21:30:43 +00:00
Denis Vlasenko
981b24db5e
rt_names.c: move few strings into rodata
2006-09-28 22:36:23 +00:00
Denis Vlasenko
06b543b217
ifupdown: make dhcp start/stop scripts user configurable
...
in /etc/network/interfaces. Patch author is Gabriel L. Somlo <somlo@cmu.edu>
2006-09-28 22:31:51 +00:00
Denis Vlasenko
c16bd212e3
silly switch style fix
2006-09-27 19:51:06 +00:00
Denis Vlasenko
2f4399c6cc
ifupdown: fix for standalone shell; removed hardcoded PATH
2006-09-27 14:14:51 +00:00
Denis Vlasenko
0534125ccc
ifupdown: style cleanup, no code changes
2006-09-26 20:35:30 +00:00
Denis Vlasenko
e175ff252f
several fixes from openWRT project
2006-09-26 17:41:00 +00:00
Denis Vlasenko
8b8c75e6ab
httpd: sanitize indentation
2006-09-26 10:07:41 +00:00
Denis Vlasenko
a552eeb498
wget: add (configurable) large file support. Run tested.
2006-09-26 09:22:12 +00:00
Denis Vlasenko
a94554d010
wget: fix bug where wget creates null file if there is no remote one.
...
add O_LARGEFILE support (not run tested :).
2006-09-23 17:49:09 +00:00
Denis Vlasenko
c1876d7364
inetd: deindent main loop, other readability enhancements
2006-09-23 15:58:01 +00:00
Denis Vlasenko
ec17d437ab
inetd: reformat with tabs for indentation
2006-09-23 15:18:38 +00:00
Denis Vlasenko
7f1f5b001f
ifupdown: getopt_ulflags'ification.
2006-09-23 12:49:01 +00:00
Denis Vlasenko
a65a17700a
arping: fix bug (getopt_ulflags and optarg don't mix),
...
remove unreachable error path.
2006-09-23 12:46:30 +00:00
Denis Vlasenko
754a88f7aa
netstat: getopt_ulflags'isation
2006-09-22 16:02:40 +00:00
Denis Vlasenko
8514fc5681
hostname: getopt_ulflags'isation
2006-09-22 08:53:14 +00:00
Denis Vlasenko
0e87d347e8
telnetd: getopt_ulflags'isation
2006-09-22 08:50:29 +00:00
Denis Vlasenko
9213a9e0f2
whitespace cleanup
2006-09-17 16:28:10 +00:00
Rob Landley
f5fc1384e9
So, in the cornucopia of superfulous warning directives I didn't add to the
...
tree, we have the warning about failed inlines (which with our inline
limit set to zero means any usage of the "inline" keyword at all). Note
that setting the inline limit to zero, and using -Werror, both predated
adding the warning about inlines to the tree. So whatever checkin added
that did nothing but break the tree. But oh well.
The second category of superfluous warnings is warning about functions with
no previous declaration. Apparently, if you add ALWAYS_INLINE to an empty
function definition, it considers the sucker undeclared as far as the
warning is concerned. (I.E. it's a buggy warning. I try not to ask the
compiler to generate warnings it can't competently generate.)
This is why I removed "inline" (unbreak allbareconfig), and couldn't replace it
with "ALWAYS_INLINE" (still broke allbareconfig).
2006-09-15 04:08:25 +00:00
Bernhard Reutner-Fischer
64d7e93081
- convert a few xopen3(,,0) into xopen(,). Also peruse the fact that xopen defaults to 0777 on it's own, so we don't need to xopen3(,,0777).
...
Saves a few bytes:
$ size busybox.old busybox text data bss dec hex filename
839676 8780 243592 1092048 10a9d0 busybox.old
839660 8780 243592 1092032 10a9c0 busybox
$ make CC=gcc-4.2-HEAD bloatcheck
function old new delta
static.vconfig_main 281 279 -2
static.rx_main 1076 1074 -2
static.mt_main 294 292 -2
static.gzip_main 753 751 -2
static.mkfs_minix_main 4034 4030 -4
static.unzip_main 1771 1766 -5
static.crontab_main 1513 1507 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-23) Total: -23 bytes
2006-09-11 16:01:40 +00:00
Rob Landley
49ea46667f
Build fixes for gcc 4.0 with -Werror, from Tito.
2006-09-11 01:34:21 +00:00
Denis Vlasenko
3526a1320a
wget: wrap one atrociously long line (around 200 chars long!).
2006-09-09 12:20:57 +00:00
Denis Vlasenko
d797fcd726
udhcp: FEATURE_UDHCP_SYSLOG should be selected only if
...
udhcp[cd] really are going to use it.
2006-09-09 12:18:46 +00:00
Denis Vlasenko
239369b368
Fix (hopefully) bug 976. Need more thorough audit.
...
Restore erroneously removed FEATURE_UDHCP_SYSLOG.
2006-09-07 17:05:44 +00:00
Denis Vlasenko
049d6b8c08
Add CONFIG_FEATURE_SYSLOG which controls whether
...
bb_xx_msg will ever try to send output to syslog.
Add "select CONFIG_FEATURE_SYSLOG" to relevant applets.
This allows to omit syslog code if we do not have
any syslog-capable applets in the build.
2006-09-07 06:02:39 +00:00
Denis Vlasenko
3538b9a882
Implement optional syslog logging using ordinary
...
bb_xx_msg calls, and convert networking/* to it.
The rest of bbox will be converted gradually.
2006-09-06 18:36:50 +00:00
Denis Vlasenko
21afc7dc29
uuencode: common implementation for wget and uuencode (closing bug 694)
2006-09-03 15:49:40 +00:00
Denis Vlasenko
65113e8d97
zcip: bb_error_msg had stray newlines; small optimization in opt parsing
2006-09-03 12:31:59 +00:00
Denis Vlasenko
af906a3b6c
zcip: minor fixes
2006-09-03 12:29:53 +00:00
Denis Vlasenko
a9abecd85e
zcip: fix stdout/err versus syslog output.
...
Incomplete: xfunc() would not respect this. TODO.
2006-09-03 12:28:32 +00:00
Denis Vlasenko
65dbd8752b
zcip: getopt -> bb_getopt_ulflags
2006-09-03 12:27:25 +00:00
Denis Vlasenko
60e3dd6016
zcip: convert lots of zero-initialized locals
...
in zcip_main() to statics in bss.
2006-09-03 12:26:06 +00:00
Denis Vlasenko
035aae5841
zcip: use xfunc() where appropriate
2006-09-03 12:23:56 +00:00
Denis Vlasenko
27af5a0dd3
replacing func() with xfunc() where appropriate
2006-09-03 12:21:59 +00:00
Denis Vlasenko
87d80dcc3e
zcip: apply patch from
...
http://bugs.busybox.net/view.php?id=1005
zcip does not claim another IP after defending
2006-09-03 12:20:36 +00:00
Denis Vlasenko
bcf4908e71
ping: bind -> xbind
2006-09-02 17:53:16 +00:00
Denis Vlasenko
e0b7f71d26
ping(6): use htons instead of SWAP_BE.
2006-09-02 16:57:59 +00:00
Denis Vlasenko
2cbe6e6eb2
ping: implement -I option
2006-09-02 16:17:30 +00:00
Denis Vlasenko
db7f2e5881
ping6: resolve interface name to number early.
...
gcc is more efficient at truncating int to int16
via cast, use that instead of &.
2006-09-02 16:16:23 +00:00
Denis Vlasenko
cb6874cc66
Sync ping and ping6 a bit, fix style and indentation.
2006-09-02 16:13:36 +00:00
Denis Vlasenko
d53dd3e627
Fix endianness issue in ping6
2006-09-02 16:11:44 +00:00
Bernhard Reutner-Fischer
bfbc4ebf40
- patch from Csaba Henk to make the "User-Agent" header field configurable.
2006-09-02 15:30:26 +00:00
Rob Landley
88621d7398
Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damage
...
(the e2fsprogs directory is too twisty and evil to easily fix, but I plan
to rewrite it anyway so I'll just bump that up in priority a bit).
2006-08-29 19:41:06 +00:00
Rob Landley
099ed50f91
Unbreak allbareconfig a bit. (The telnetd.c fix is a perfect example of why
...
applets which are a forest of #ifdefs are unmaintainable.)
2006-08-28 09:41:49 +00:00
Bernhard Reutner-Fischer
289e86a0a5
- typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/g
2006-08-20 20:01:24 +00:00
Bernhard Reutner-Fischer
d591a360d3
- merge -r15463:15564 from busybox_scratch branch through these changesets:
...
------------------------------------------------------------------------
r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines
- use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert.
- use xchdir() since all is invain if it fails there anyways, supposedly
------------------------------------------------------------------------
r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines
- adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account.
------------------------------------------------------------------------
r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines
- partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save
s 144 bytes
text data bss dec hex filename
862434 10156 645924 1518514 172bb2 busybox.old
862322 10156 645892 1518370 172b22 busybox
function old new delta
z_len 4 - -4
textend 4 - -4
part_nb 4 - -4
insize 4 - -4
ifile_size 4 - -4
do_link 4 - -4
new_text 70 60 -10
ipaddr_list_link 33 23 -10
gzip_main 898 822 -76
------------------------------------------------------------------------------
(add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120) Total: -120 bytes
------------------------------------------------------------------------
r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines
- remove useless global exports
function old new delta
rpm_main 940 1601 +661
rpm_getstring 107 112 +5
rpm_getint 148 153 +5
loop_through_files 103 106 +3
fileaction_dobackup 115 113 -2
fileaction_list 5 - -5
rpm_getcount 42 - -42
extract_cpio_gz 161 - -161
rpm_gettags 504 - -504
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714) Total: -40 bytes
text data bss dec hex filename
862322 10156 645892 1518370 172b22 busybox.old
862290 10156 645892 1518338 172b02 busybox
------------------------------------------------------------------------
r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines
- shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s
emaphore stuff into single caller manually.
stats:
function old new delta
logMessage 395 427 +32
message 1245 1257 +12
opts - 4 +4
small 1 - -1
local_logging 4 - -4
doRemoteLog 4 - -4
circular_logging 4 - -4
syslogd_main 1299 1285 -14
static.res 36 16 -20
.rodata 186650 186586 -64
static.line 1025 - -1025
------------------------------------------------------------------------------
(add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136) Total: -1088 bytes
cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,}
text data bss dec hex filename
3723 348 5242 9313 2461 sysklogd/syslogd.o.orig
3697 348 4188 8233 2029 sysklogd/syslogd.o
==============================================================================
Overall bloatcheck for the changeset mentioned above:
function old new delta
rpm_main 953 1608 +655
logMessage 395 427 +32
message 1245 1257 +12
opts - 4 +4
rpm_getstring 107 110 +3
rpm_getint 148 151 +3
loop_through_files 103 104 +1
small 1 - -1
fileaction_dobackup 115 113 -2
z_len 4 - -4
textend 4 - -4
part_nb 4 - -4
local_logging 4 - -4
insize 4 - -4
ifile_size 4 - -4
do_link 4 - -4
doRemoteLog 4 - -4
circular_logging 4 - -4
fileaction_list 5 - -5
new_text 70 60 -10
ipaddr_list_link 33 23 -10
clear_bufs 31 21 -10
syslogd_main 1287 1273 -14
builtin_help 190 176 -14
static.res 36 16 -20
builtin_source 229 199 -30
rpm_getcount 42 - -42
gzip_main 842 786 -56
.rodata 227176 227112 -64
lash_main 609 527 -82
busy_loop 3883 3739 -144
extract_cpio_gz 155 - -155
rpm_gettags 501 - -501
static.line 1025 - -1025
------------------------------------------------------------------------------
(add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221) Total: -1511 bytes
2006-08-20 17:35:13 +00:00
Bernhard Reutner-Fischer
13068a4fdb
- typo: s/optarg/nprobes_str; fixes segfault as reported by Raphael HUCK
2006-08-18 18:29:40 +00:00
Bernhard Reutner-Fischer
5bd2a4b6ce
- remove last reminiscents of IN_BUSYBOX
2006-08-18 17:22:23 +00:00
Rob Landley
4640b05afd
Bernhard Fischer pointed out some leftover debris needing cleanup.
2006-08-15 21:37:55 +00:00
Rob Landley
affb7a61a6
scripts/individual now builds 171 applets. Some of them may even work. :)
2006-08-05 00:41:39 +00:00
Rob Landley
74bb70cf54
Ok, that's not a typo, that's just me not thinking.
2006-08-04 20:19:01 +00:00
Rob Landley
27d07c9ce2
Now that we have xopen3(), it's just plain unclean to have xopen() with
...
O_CREAT. Two users are still doing it (and thus getting permissions 777),
I'm not sure what permissions they should be using but here they are
changed to xopen3(). This costs us a dozen or so bytes, but removing the
777 from xopen() should get some of that back.
2006-08-04 19:16:31 +00:00
Rob Landley
081e38483e
Remove xcalloc() and convert its callers to xzalloc(). About half of them
...
were using "1" as one of the arguments anyway, and as for the rest a multiply
and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03 20:07:35 +00:00
Rob Landley
86b4d64aa3
These should have been part of 15767 too.
2006-08-03 17:58:17 +00:00
Rob Landley
280a264fb8
Attempt to fixup httpd.c to match svn 15767.
2006-08-03 17:49:15 +00:00
Rob Landley
d921b2ecc0
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
...
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
2006-08-03 15:41:12 +00:00
"Robert P. J. Day"
581d4f36b3
Move declaration to be compatible with older gcc's.
2006-08-03 10:50:39 +00:00
Rob Landley
cae61e7ca4
Make a gcc 4.1 warning go away.
2006-08-01 00:30:26 +00:00
Mike Frysinger
91a339002a
get rid of udhcp submenu
2006-07-24 07:35:52 +00:00
Rob Landley
534374755d
Cleaup read() and write() variants, plus a couple of new functions like
...
xlseek and fdlength() for the new mkswap.
2006-07-16 08:14:35 +00:00
Rob Landley
afb94ecf2b
Convert setuid/setgid users to xsetuid/xsetgid.
2006-07-16 08:06:34 +00:00
Rob Landley
c9c1a41c58
A couple things that got tangled up in my tree, easier to check in both than
...
untangle them:
Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the
signal list to that required by posix (they can specify the numbers for
the rest if they really need them). (This is preparatory cleanup for adding
a timeout applet like Roberto Foglietta wants.)
Export the itoa (added due to Denis Vlasenko, although it's not quite his
preferred implementation) from xfuncs.c so it's actually used, and remove
several other redundant implementations of itoa and utoa() in the tree.
2006-07-12 19:17:55 +00:00
"Robert P. J. Day"
2819f757ca
Add one-line GPL boilerplate to these source files.
2006-07-11 11:32:31 +00:00
Rob Landley
1cca9484db
Upgrade netcat a lot. Make -e able to take the rest of the command line as
...
what to exec. Add -f mode and a brief explanation of how to use it to replace
minicom. Add -l -l mode so you can turn any command into a server. And group
all of netcat's command line options under two CONFIG entries, so if you
disable both it doesn't use getopt at all.
2006-07-10 19:45:20 +00:00
"Robert P. J. Day"
cf5b80ba32
This file doesn't appear to be used anywhere.
2006-07-05 12:47:26 +00:00
"Robert P. J. Day"
63fc1a9e08
Standardize on the vi editing directives being on the first line.
2006-07-02 19:47:05 +00:00
"Robert P. J. Day"
d35ef0f666
More removal of "#if 0" content.
2006-07-01 14:59:54 +00:00
"Robert P. J. Day"
68229837ff
Remove all usage of the "register" storage class specifier.
2006-07-01 13:08:46 +00:00
Rob Landley
00c051e42d
Bug http://bugs.busybox.net/view.php?id=723 - initialize tv1 the first time
...
through the loop.
2006-06-30 14:05:19 +00:00
Rob Landley
af12cb39d1
Patch from Geoff Baker to fix bug http://bugs.busybox.net/view.php?id=905 by
...
changing wget's ftp code not to chdir but to use the complete path each time.
2006-06-27 18:41:03 +00:00
"Robert P. J. Day"
21302c2b78
Properly print the output for a sit (IPv6-in-IPv4) interface.
2006-06-26 22:03:43 +00:00
"Robert P. J. Day"
4137dd783b
Aesthetic fix to use newer structure initialization format.
2006-06-26 21:54:57 +00:00
Rob Landley
11c7a7bed6
Various cleanups I made while going through Erik Hovland's patch submissions,
...
some of which are even from him. :)
2006-06-25 22:39:24 +00:00
Rob Landley
768945b762
A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and
...
removing some unnecessary code.
2006-06-25 00:34:52 +00:00
Rob Landley
53433b3ca1
Clean up.
2006-06-22 22:28:29 +00:00
Rob Landley
67d4943393
CONFIG_DHCP -> CONFIG_APP_DHCP.
2006-06-22 18:48:34 +00:00
Mike Frysinger
b049c0ec19
only enable count_bit functions when actually needed to fix warning reported by Bernhard Fischer
2006-06-20 23:03:27 +00:00
Rob Landley
9fe801e0d2
Patch by Robert P. Day to remove obsolete alias code that the 2.4 and 2.6
...
Linux kernels don't do anymore.
2006-06-20 21:13:29 +00:00
Rob Landley
2818b292fb
Patch by Robert P. Day to make structs use c99 initializers.
2006-06-20 15:52:52 +00:00
Rob Landley
2a613d7360
Patch from Robert P. J. Day cleaning up some unnecessary preprocessor
...
directives.
2006-06-20 14:57:00 +00:00
Rob Landley
7a260f01ce
Make some 64 bit warnings go away on x86-64.
2006-06-19 03:20:03 +00:00
Rob Landley
ea224be6aa
skip_whitespace() shouldn't claim its return value is const, it doesn't know
...
that and callers wind up typecasting it back.
2006-06-18 20:20:07 +00:00
Rob Landley
14d7065ef1
Make this slightly more readable, and expose the hypocrasy of a comment that
...
says "our implementation makes it impossible to use blocksizes smaller than
22 octets" right above a check for blocksize < 8.
2006-06-18 15:23:13 +00:00
Bernhard Reutner-Fischer
fd4b61d5f3
- add needed includes and include busybox.h needed for the ATTRIBUTE define.
2006-06-16 12:28:39 +00:00
Bernhard Reutner-Fischer
597e70e9e4
- rename CONFIG_FEATURE_TFTP_DEBUG to CONFIG_DEBUG_TFTP
2006-06-14 17:32:11 +00:00
Bernhard Reutner-Fischer
32bf1f9d42
- rename CONFIG_FEATURE_TFTP_DEBUG to CONFIG_DEBUG_TFTP so it's off in defconfig
...
- expand the cmd_get/cmd_put macros
- Jason Schoon writes: unlink only if non-stdio
2006-06-14 17:29:10 +00:00
Bernhard Reutner-Fischer
f1bd42a305
- correct typo
2006-06-14 16:51:50 +00:00
Rob Landley
575c8bacda
Don't break allbareconfig.
2006-06-13 21:30:09 +00:00
Rob Landley
19a3940f15
Patch from Denis Vlasenko:
...
* Rename a var: statbytes -> transferred
* cursize == transferred, always. Nuke cursize.
* Make progressmeter() a nop if !CONFIG_FEATURE_WGET_STATUSBAR
(reduces #ifdef forest)
* double elapsed -> int elapsed
* Do not sprintf to buf first and then write(STDERR) it,
just fprintf directly to stderr
* Progress bar printing code made smaller
* Style fixes
2006-06-13 17:10:26 +00:00
Rob Landley
76ef08c5e3
Whitespace cleanup from Denis Vlasenko.
2006-06-13 16:44:26 +00:00
Bernhard Reutner-Fischer
62f9856f54
- revert incorrect select change
2006-06-10 14:32:56 +00:00
Bernhard Reutner-Fischer
b25f98a417
- fix two segfaults (reported by Horst Kronstorfer)
...
- remove dangling file if get fails (spotted and fixed by Jason Schoon)
- shrink it (Bernhard Fischer)
Thanks, all!
text data bss dec hex filename
2684 0 0 2684 a7c networking/tftp.o.orig
2748 0 0 2748 abc networking/tftp.o.allfixed
2666 0 0 2666 a6a networking/tftp.o.+shrink
2006-06-10 14:15:03 +00:00
Bernhard Reutner-Fischer
3b1936dcf9
- use bb_xbind
...
Thanks Erik Hovland
2006-06-10 11:39:09 +00:00
Bernhard Reutner-Fischer
19008b8373
- reuse strings and messages. Saves about 600B
2006-06-07 20:17:41 +00:00
Mike Frysinger
830d258dee
use bb_xbind/bb_xlisten
2006-06-07 20:06:24 +00:00
Bernhard Reutner-Fischer
e0387a6ee8
- fix the build if we have ftpput without ftpget (speeling reeoe)
...
Thanks to Stephane Billiart
2006-06-07 13:31:59 +00:00
Rob Landley
362dc2bf33
Header cleanup on two more networking files (move libbb.h to the top and
...
remove #includes that libbb.h already does), plus a minor cleanup of
libbb.h to move #includes towards the top of the file where we can see 'em.
2006-06-05 17:35:24 +00:00
Bernhard Reutner-Fischer
1b9d7c9aa9
- use bb_msg_{read,write}_error where appropriate.
...
text data bss dec hex filename
825015 9100 645216 1479331 1692a3 busybox.old
824919 9100 645216 1479235 169243 busybox
2006-06-03 22:45:37 +00:00
Rob Landley
e84f4343b2
Remove #ifdeffed out code, both KEEP_UNUSED and #if 0.
2006-06-03 21:23:20 +00:00
Rob Landley
ecae66ac16
Header cleanup: don't #include headers that libbb.h already includes.
2006-06-02 20:53:38 +00:00
Rob Landley
ff97ee9abd
#ifdef reduction.
2006-06-02 19:03:01 +00:00
Rob Landley
9b1857f79f
Bugfix from Shaun Jackman: don't attempt to write 64 bytes and then fail if
...
the write wasn't 192 bytes long.
2006-05-31 23:54:50 +00:00
Rob Landley
c8b360ebb7
Use BB endianness macro.
2006-05-31 22:24:33 +00:00
Bernhard Reutner-Fischer
8d3a6f7aaf
- add CONFIG_FEATURE_WGET_LONG_OPTIONS
2006-05-31 14:11:38 +00:00
Bernhard Reutner-Fischer
c418d482ba
- s/defined(__uClinux__)/BB_NOMMU/
...
This needs a second pass to:
+ add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag)
+ eventually globally export argc and argv, so we don't need to pass it to
bb_daemon().
2006-05-31 10:19:51 +00:00
Rob Landley
1ec5b29054
More size shrinkage.
2006-05-29 07:42:02 +00:00
Rob Landley
a6e131dab3
Size reductions, mostly switching things to use libbb functions.
2006-05-29 06:43:55 +00:00
Rob Landley
4e3aff3425
Remove _().
2006-05-29 04:37:28 +00:00
Rob Landley
3f78561d63
My first bout of untangling udhcp. Make lots of gratuitous #defines go
...
away, substitutie BB_VER for an external VERSION, use busybox CONFIG symbols
rather than checking for them then defining others, etc. Lots more cleanup
to do...
2006-05-28 01:06:36 +00:00
Rob Landley
299a6b4d7b
Consolidate #include <sys/time.h> so libbb.h does it.
2006-05-27 21:42:58 +00:00
Rob Landley
8bb50782a5
Change llist_add_* to take the address of the list rather than returning the new
...
head, and change all the callers.
2006-05-26 23:44:51 +00:00
Bernhard Reutner-Fischer
01d23ade57
- add central knob to turn off getopt_long everywhere. EXPERIMENTAL!
...
Adds "Enable getopt long" under "General options", default y.
Send patches to fix getopt_ulflags and run_parts.c if you turn this off..
See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts
2006-05-26 20:19:22 +00:00
Mike Frysinger
fa6c4844b2
fix spelling mistakes
2006-05-26 01:48:17 +00:00
Rob Landley
6cd2250953
Remove a pointless #define.
2006-05-25 18:31:11 +00:00
Rob Landley
9ffd42317b
Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessary
...
memset, collate variable declarations...
2006-05-21 18:30:35 +00:00
Rob Landley
9b5a99ad21
Patch from Robert P. Day to remove #ifdefed out SLIP support code that we
...
have no CONFIG option to enable, and which existing SLIP users don't seem
to miss.
2006-05-19 22:54:42 +00:00
Bernhard Reutner-Fischer
b1629b1b2a
- remove emacs layout block as suggested by Robert P.J. Day
...
- use shorter boilerplate while at it
2006-05-19 19:29:19 +00:00
Bernhard Reutner-Fischer
0a8812bdc5
- replace _PATH_DEVNULL with bb_dev_null
2006-05-19 13:12:21 +00:00
Bernhard Reutner-Fischer
a2a647dfc1
- include strings.h
...
Thanks to Rich Felker for pointing this out.
2006-05-19 12:30:00 +00:00
Bernhard Reutner-Fischer
e2e56c7c41
- single KERNEL_VERSION(a,b,c) macro in platform.h
...
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
2006-05-19 11:54:02 +00:00
Rob Landley
7723019c6b
Patch from Bernhard Fischer to remove some useless bits.
2006-05-17 20:24:53 +00:00
Mike Frysinger
d9b6b844e5
pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the mailing list
2006-05-13 02:33:41 +00:00
Mike Frysinger
39440e520c
pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the mailing list
2006-05-13 02:33:09 +00:00
Mike Frysinger
e135a5d746
fix no previous prototype warning
2006-05-11 02:36:51 +00:00
Mike Frysinger
b5547fb0b3
fix no previous prototype warning
2006-05-11 02:35:55 +00:00
Mike Frysinger
49f6afc0a0
rename
2006-05-11 02:10:13 +00:00
Mike Frysinger
e3412d8331
remove files not related to busybox
2006-05-11 02:09:39 +00:00
Mike Frysinger
06b00e8ba7
accept() takes a socklen_t, not an int
2006-05-10 17:18:11 +00:00
Mike Frysinger
d2c8fd6360
fix whitespace in comment example
2006-05-10 17:17:09 +00:00
Mike Frysinger
772a3467ba
some more useful debug info from Jason Holden
2006-05-10 17:14:32 +00:00
Bernhard Reutner-Fischer
72c4d64d20
- add helptext for --retries
2006-05-10 16:11:02 +00:00
Mike Frysinger
62ec21d0cf
touchup whitespace/english a bit more
2006-05-10 15:59:07 +00:00
Mike Frysinger
731f81cbed
whitespace between if and (
2006-05-10 15:23:12 +00:00
Mike Frysinger
1b4e1dae71
re-enable udhcp in a few more places
2006-05-08 03:24:36 +00:00
Mike Frysinger
7031f62d9b
add back in udhcp support
2006-05-08 03:20:50 +00:00
Rob Landley
a389651115
Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytes
...
as the old optimization did (actually does slightly better under gcc 4.0), and
simplifies the code.
2006-05-07 20:20:34 +00:00
Rob Landley
3958e0a151
Busybox's udhcp was deleted a while ago. Bolting an external project onto the
...
tree doesn't change that.
2006-05-05 18:20:42 +00:00
Rob Landley
b1c3fbc677
CONFIG->ENABLE migration.
2006-05-04 19:52:28 +00:00
Rob Landley
a2d9a1752c
More usage.h cleanups, with collateral changes to httpd. Specifically,
...
most of our CONFIG entries switch stuff on instead of off when enabled, so fix
the gratuitously reversed INETD thing.
2006-04-28 19:38:04 +00:00
Bernhard Reutner-Fischer
38fc692e38
- improve wording in some help texts a little bit.
2006-04-18 11:21:07 +00:00
Bernhard Reutner-Fischer
ea46f456d4
- patch from P.J. Day to rely on the automatic indenting provided by depends.
2006-04-18 11:11:40 +00:00
Bernhard Reutner-Fischer
2949577981
- simplify config options of the ip applet.
2006-04-18 08:11:37 +00:00
Mike Frysinger
f8346038e9
kill off pointless malloc.h include
2006-04-16 21:17:00 +00:00
Mike Frysinger
b66c931fad
kill pointless memory.h includes
2006-04-16 21:15:42 +00:00
Rob Landley
b0a2d6c19d
Remove code for protocols we don't properly support. (Most of this could
...
never be selected via menuconfig anyway.) If somebody wants one of these
protocols, ask on the list for us to support it _properly_.
2006-04-14 20:07:33 +00:00
Rob Landley
da0dcd1050
Patch from Robert P Day to remove standalone code from httpd. (Busybox has
...
its own make standalone planned as a general solution to this for all
applets.)
2006-04-14 19:46:19 +00:00
Rob Landley
d086b504c3
Hard wiring configuration symbol values into the code defeats the purpose
...
of _having_ configuration symbol values.
Also, changing #ifdef CONFIG to #if ENABLE isn't nearly as useful as changing
them to if (ENABLE) or USE()/SKIP()...
2006-04-14 02:32:29 +00:00
Bernhard Reutner-Fischer
c2cb0f32b4
- patch from Denis Vlasenko to add and use bb_xopen3()
2006-04-13 12:45:04 +00:00
Bernhard Reutner-Fischer
d9cf7ac781
- patch from Denis Vlasenko to add and use bb_xchdir()
2006-04-12 18:39:58 +00:00
Bernhard Reutner-Fischer
67f641e75b
- patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()
2006-04-12 18:24:37 +00:00
Bernhard Reutner-Fischer
2c99851181
- patch from Denis Vlasenko to add and use bb_xdaemon()
2006-04-12 18:09:26 +00:00
Bernhard Reutner-Fischer
dac7ff15b7
- patch from Denis Vlasenko to add and use bb_xsocket() and to use
...
bb_xopen some more while at it.
Also use shorter boilerplate while at it.
2006-04-12 17:55:51 +00:00
Bernhard Reutner-Fischer
e7f8a32929
- httpd in inetd mode: POST from IE (6) ends up in 'cannot display page'
...
Closes #827
2006-04-11 13:51:50 +00:00
Bernhard Reutner-Fischer
ca7166fe9d
- put udhcp back in (Rob, you removed this in r14787 by accident..).
2006-04-10 18:02:12 +00:00
Rob Landley
0ebecac02e
Second verse, same as the first.
2006-04-10 17:34:12 +00:00
Rob Landley
ea4c53ca43
Missing dependency spotted by Robert P Day.
2006-04-10 17:32:05 +00:00
Bernhard Reutner-Fischer
6554de06fe
- fix typo introduced in the last commit.
2006-04-10 12:32:52 +00:00
Bernhard Reutner-Fischer
a4acf669f4
- typo: s/biltin/builtin/g
2006-04-10 12:26:47 +00:00
Bernhard Reutner-Fischer
886f6afc8a
- this applet should peruse USE_FEATURE_TFTP_...
2006-04-05 16:47:02 +00:00
Bernhard Reutner-Fischer
fa939aae81
- include proper headers.
2006-04-05 16:21:37 +00:00
Bernhard Reutner-Fischer
421d9e5941
- move buffer allocation schemes to libbb.h
...
- include the correct headers: applets need busybox.h while lib* need libbb.h
2006-04-03 16:39:31 +00:00
Bernhard Reutner-Fischer
ebd1355828
- coalesce printf calls.
...
text data bss dec hex filename
3474 4 96 3574 df6 networking/arping.o.orig
3424 4 96 3524 dc4 networking/arping.o
2006-04-03 12:29:12 +00:00
Bernhard Reutner-Fischer
a0f75e2bba
- use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)
2006-04-03 11:52:01 +00:00
Bernhard Reutner-Fischer
6153629097
- set flags in a more reasonable manner. Thanks, vodz.
...
text data bss dec hex filename
3520 4 96 3620 e24 networking/arping.o.oorig
3488 4 96 3588 e04 networking/arping.o
2006-04-03 09:46:29 +00:00
Bernhard Reutner-Fischer
9a67ca309c
- janitorial: include proper prototypes in libiproute.
2006-04-02 21:14:19 +00:00
Rob Landley
07a637df47
Patch from KRONSTORFER Horst to Fix a size mismatch in ping, such as the 56/84
...
mismatch inthe following example:
# ping -c 1 172.16.2.1
PING 172.16.2.1 (172.16.2.1): 56 data bytes
84 bytes from 172.16.2.1: icmp_seq=0 ttl=64 time=0.2 ms
2006-04-01 17:28:11 +00:00
Bernhard Reutner-Fischer
2766eedde8
- use RESERVE_CONFIG_BUFFER. For defconfig this gives:
...
text data bss dec hex filename
3627 4 120 3751 ea7 networking/arping.o.oorig
3548 4 96 3648 e40 networking/arping.o.r14710
3520 4 96 3620 e24 networking/arping.o
2006-03-31 18:13:42 +00:00
Bernhard Reutner-Fischer
137669449a
- shrink it a bit further.
...
text data bss dec hex filename
3627 4 120 3751 ea7 networking/arping.o.oorig
3548 4 96 3648 e40 networking/arping.o
2006-03-31 18:02:46 +00:00
Rob Landley
8ea5205726
Shrink patch from Bernhard Fischer.
2006-03-30 21:50:57 +00:00
Bernhard Reutner-Fischer
214744dba1
- fix paste'o which i overlooked when applying dalias' fmt stuff.
2006-03-30 13:38:19 +00:00
Paul Fox
ef81ce620c
fix from David Daney, on busybox mailing list:
...
> The problem is that if the zcip protocol times out at about the same
> time another ARP packet is being received, the newly calculated timeout
> may be set to wait forever. This prevents the protocol from progressing
> through its various states.
>
> The Fix is to set the timeout to zero if it used to be a positive
> number, but it has already expired. This causes the next protocol state
> to be entered immediately instead of never.
>
> If OK please commit.
>
> Also note that if you may have to apply the patch on this page:
>
> http://www.science.uva.nl/research/air/wiki/LinkLocalARPMeasurements
>
> To the linux kernel to get proper zcip behavior.
>
2006-03-29 23:01:33 +00:00
Bernhard Reutner-Fischer
d409c3a2f7
- Rich Felker writes: fix invalid printf format strings
...
http://busybox.net/lists/busybox/2006-March/019568.html
text data bss dec hex filename
900619 10316 1038724 1949659 1dbfdb busybox.oorig
900603 10316 1038724 1949643 1dbfcb busybox
2006-03-29 22:34:47 +00:00
Mike Frysinger
787140df39
remove in place of external link
2006-03-23 23:44:29 +00:00
Mike Frysinger
dce5809ebc
make the makefile a little more flexible so we can store in either location
2006-03-23 03:47:19 +00:00
Mike Frysinger
13c8327b79
sync busybox and udhcp trees
2006-03-23 03:05:05 +00:00
Rob Landley
a35886c862
Fix from Glenn McGrath.
2006-03-22 16:59:12 +00:00
Mike Frysinger
06adf5fb47
2006-03-21 Shaun Jackman <sjackman@gmail.com>: Include signal.h instead of sys/signal.h.
2006-03-22 00:25:07 +00:00
Eric Andersen
28a6afe975
Roy Walker writes:
...
Here is a patch against the current subversion repository, that makes
udhcpc have an adjustable timeout. Works for both foreground and before
it drops to the background. This brings it more in-line with ISC dhcpc.
Use like so:
udhcpc --timeout=10 ...
or
udhcpc -T 10 ...
Still shooting for 1.1.1 this month? Would really be great if you could
get this in that release.
Please give credit to Paul Pacheco - ppacheco@gmail.com .
2006-03-20 17:37:00 +00:00
Mike Frysinger
2f135fc6bf
update comments as to what caused the defines to change
2006-03-13 23:48:18 +00:00
Bernhard Reutner-Fischer
df10094870
- revert back to r14406
2006-03-13 19:04:00 +00:00
Mike Frysinger
9e094552c8
fix building with glibc-2.4
2006-03-10 23:41:29 +00:00
Rob Landley
bc68cd14cc
Patch from Denis Vlasenko turning static const int (which gets emitted into
...
the busybox binary) into enums (which don't).
2006-03-10 19:22:06 +00:00
Bernhard Reutner-Fischer
39a9fddb53
- fix typo
2006-03-09 16:49:01 +00:00
Bernhard Reutner-Fischer
07a79e75f5
- backout using features which are not available with the previous stable
...
version of make (3.71.1).
2006-03-09 09:03:37 +00:00
Rob Landley
dfba741457
Robert P. Day removed 8 gazillion occurrences of "extern" on function
...
definitions. (That should only be on prototypes.)
2006-03-06 20:47:33 +00:00
Eric Andersen
cbd1c85744
Kill off some unused code that was wasting several k, as noticed by
...
Denis Vlasenko when building with -ffunction-sections -fdata-sections
2006-03-03 18:37:39 +00:00
Bernhard Reutner-Fischer
e3ec99de82
- remove unused lists *-m
2006-03-02 18:23:13 +00:00
Bernhard Reutner-Fischer
022eb311d5
- use absolute path for top_builddir and top_srcdir.
...
Fixes make trying to include the very same file in an endless loop.
2006-03-02 17:33:25 +00:00
Bernhard Reutner-Fischer
5d26126b9e
- fixes parallel builds (make -j)
...
- use less resources for the buildsystem itself
2006-03-01 22:54:48 +00:00
Rob Landley
12c2429a42
Fixup to make warnings from the last patch go away.
2006-03-01 21:36:18 +00:00
Rob Landley
e7c43b66d7
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
...
from before "if(x) free(x)".
2006-03-01 16:39:45 +00:00
Rob Landley
e813ddba18
Cleanup from Glenn McGrath.
2006-02-28 03:53:14 +00:00
Rob Landley
4217bab02e
Patch from Glenn McGrath to remove code that opens a file but does nothing
...
with it.
2006-02-26 04:42:05 +00:00
Bernhard Reutner-Fischer
ed7bb6278d
- put NLS stuff in one central place to avoid redefines.
...
Fixes warnings about:
fdisk.c:45:1: warning: "_" redefined
nfsmount.c:121:1: warning: "_" redefined
nfsmount.c:122:1: warning: "N_" redefined
interface.c:84:1: warning: "_" redefined
2006-02-23 14:25:15 +00:00
Rob Landley
0a7c8ef6e2
Patch from Denis Vlasenko to constify things and fix a few typos.
2006-02-22 17:01:00 +00:00
Rob Landley
e8f504e86d
Bug 751: file handle leaks can add up until available filehandles for the
...
process are exhausted.
2006-02-22 02:10:34 +00:00
Rob Landley
d6e14d8bee
Don't build directory libraries unless we're building an applet that needs it.
...
Cherry-picked from Devin Bayer's big MacOS X patch.
2006-02-21 19:11:35 +00:00
Rob Landley
6f2a0b2275
Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.
2006-02-21 18:34:54 +00:00
Rob Landley
ea6360e393
Missed a file in the last checkin, won't build without this...
2006-02-21 03:12:15 +00:00
Rob Landley
a2841e6d4b
Patch from Giuseppe Ciotta to specify retry count.
2006-02-20 23:26:38 +00:00
Rob Landley
0d8766a3b1
Rename UNUSE() to SKIP().
2006-02-20 23:05:06 +00:00
Mike Frysinger
294254ce6b
rfelker writes in Bug 740: s/u_char/unsigned char/
2006-02-19 22:59:12 +00:00
"Vladimir N. Oleynik"
9a51540b15
demo (UN)USE_FEATURE... usage
2006-02-15 13:27:18 +00:00
Mike Frysinger
b38673fb9f
make the build system puuuuuuuuuuurty
2006-02-02 01:41:53 +00:00
"Vladimir N. Oleynik"
4333a09d65
add feature: support for running scripts through an interpreter. Thanks Florian Schirmer <jolt@tuxbox.org>
2006-01-31 13:53:30 +00:00
Bernhard Reutner-Fischer
9f4a1e1c75
- add and use ATTRIBUTE_ALIGNED(num_bytes)
...
- remove unused parameter pindex from fdisk.c, xbsd_initlabel()
2006-01-31 09:53:53 +00:00
Eric Andersen
a68ea1cb93
fix up yet more annoying signed/unsigned and mixed type errors
2006-01-30 22:48:39 +00:00
Eric Andersen
0cb6f35c33
fix up annoying signed/unsigned and mixed type errors
2006-01-30 22:30:41 +00:00
Eric Andersen
d78aea8b8e
sort out yet more type issues
2006-01-30 18:00:02 +00:00
Bernhard Reutner-Fischer
20f4000086
- add some ATTRIBUTE_UNUSED.
...
- use shorter boilerplate while at it.
2006-01-30 17:17:14 +00:00
"Vladimir N. Oleynik"
79af7d5deb
for change previous log: close bug 186
2006-01-26 10:58:12 +00:00
"Vladimir N. Oleynik"
2e33daaed5
close bug 190
2006-01-26 10:46:14 +00:00
"Vladimir N. Oleynik"
5775aa2ef6
added support /prefix for IPV4 form IPV6 code. Close bug 461
2006-01-25 16:17:58 +00:00
"Vladimir N. Oleynik"
2e5ee8ed93
+#include <sys/socket.h>
...
remove unused 'int i' form main
whitespacing only
2006-01-25 14:40:24 +00:00
"Vladimir N. Oleynik"
7b4aa6ffc6
new applet. Thanks Roberto A. Foglietta
2006-01-25 14:19:11 +00:00
Tim Riker
c1ef7bdd8d
just whitespace
2006-01-25 00:08:53 +00:00
"Vladimir N. Oleynik"
ab90b9f427
close bug 657
2006-01-24 12:02:27 +00:00
Bernhard Reutner-Fischer
86f5c9906b
- add platform.h.
...
- use shorter boilerplate while at it.
2006-01-22 22:55:11 +00:00
Bernhard Reutner-Fischer
a901b40464
- missing bits of patch attached to bug #249 (constify).
2006-01-19 14:51:17 +00:00
"Vladimir N. Oleynik"
0f9ae1a0d7
setgid and setuid have changes effective id too
2006-01-15 14:55:48 +00:00
Bernhard Reutner-Fischer
7ca61b6f33
- shared libbusybox.
...
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
2006-01-15 14:04:57 +00:00
"Vladimir N. Oleynik"
8c9daa12dc
restore erronyous 'cleanups' by Rob Sullivan and landley
2006-01-15 09:29:41 +00:00
Rob Landley
855f1e1320
Cleanup patch from Rob Sullivan.
2006-01-15 02:20:06 +00:00
Bernhard Reutner-Fischer
eedd1be730
- remove warning about redeclaration of __constant_htons
...
- remove warning about format '%ld' expects type 'long int *', but argument #num
has type 'long unsigned int *'
2006-01-12 13:15:49 +00:00
Bernhard Reutner-Fischer
d1d23a6e67
- mark argument who of print_route as unused.
2006-01-12 12:08:46 +00:00
Rob Landley
bbf4e167f2
Ok, ping needs a rewrite from the ground up. (This is not a busybox app.)
...
Fix bug 309, where ping -s 1 localhost would give an elapsed time 9 digits
long due to a stack overflow. Apparently, iputils also does this.
2006-01-11 03:44:11 +00:00
Rob Landley
bc059bc7fa
The brain-dead FTP servers on Solaris don't support the size command.
2006-01-10 06:36:00 +00:00
Bernhard Reutner-Fischer
c00411a16a
- better wording
2006-01-04 13:35:09 +00:00
Mike Frysinger
bb12d6f728
fix comment documentation
2006-01-03 23:59:01 +00:00
"Vladimir N. Oleynik"
0bf67e849a
remove buffer overflow by Erik and decodeString problem by Glenn, add error check of decodeString as Apache
2005-12-26 17:26:59 +00:00
"Vladimir N. Oleynik"
6b903a2d8a
remove debug feature for production
2005-12-20 11:02:54 +00:00
Rob Landley
42eddbafe7
Add a fflush(stdout).
2005-12-15 08:04:17 +00:00
Rob Landley
5aabf4e415
Fix -g and -p options. Patch from Traceman. (I don't know who that is,
...
it's the darn bug generator again.)
2005-12-15 05:42:55 +00:00
Rob Landley
483027f166
Patch from dlively (whoever that is, see bug 591) to fix
...
"ip link set <dev> addr".
2005-12-15 05:29:48 +00:00
Bernhard Reutner-Fischer
d42ef28b98
- several functions depend on IPv4 or IPv6 od IPX support.
...
removes warning about unused code for allbareconfig.
2005-12-14 14:13:15 +00:00
Bernhard Reutner-Fischer
ec351c32e3
- do away with superfluous keyword.
2005-12-13 10:28:25 +00:00
Bernhard Reutner-Fischer
b7d5342003
- fix zcip for IMA compile mode.
...
rename usage() to zcip_usage, make struct arp_packet static. This applet is
not ISO C89 compatible due to the use of C99-style comments ("c++ comments).
2005-12-12 10:21:35 +00:00
"Vladimir N. Oleynik"
2f0a5f947a
restore compare_string_array new interface (make broken by landley)
2005-12-06 12:00:39 +00:00
Rob Landley
d1569c215c
If we really _need_ an #ifdef like this, then we should be using the libbb
...
getopt infrastructure instead.
2005-12-02 17:57:23 +00:00
"Vladimir N. Oleynik"
27d42a08c8
remove warnings if compile with -W, use ENABLE_FEATURE vs CONFIG_FEATURE
2005-12-02 09:46:04 +00:00
Paul Fox
5a16a89427
eliminate mixed declaration, to support older compilers a little longer.
2005-11-28 16:29:45 +00:00
Rob Landley
c819ca98ee
Can't store a pointer in an int on 64 bit platforms.
2005-11-22 17:09:14 +00:00
Rob Landley
b4c823211d
Move interface.c to networking directory since it's only used by ifconfig.
2005-11-22 07:52:54 +00:00
Rob Landley
64a5f96780
telnetd -b (bind to specific address) support from Iuri Gomes Diniz.
2005-11-10 22:37:40 +00:00
"Vladimir N. Oleynik"
ecfd1f6a35
change osbolete sigpause() to sigsuspend()
2005-11-09 09:19:29 +00:00
Rob Landley
6f03722448
Patch from Tomasz Mateja: don't try to CWD to a _filename_, just send the full
...
path to the STOR command.
2005-11-08 00:52:31 +00:00
Rob Landley
7ad4b30ed4
Yann E. Morin pointed out that rpcsvc/nfs_prot.h isn't needed with any
...
reasonably recent glibc, and breaks with uClibc. So yank it.
2005-11-06 23:37:47 +00:00
Rob Landley
1b751c894b
Rob Sullivan sent in some cleanups, which I beat on slightly.
2005-10-28 09:24:33 +00:00
Bernhard Reutner-Fischer
ab1878245c
* uniq.c: remove unneeded include and use short boilerplate.
...
* coreutils.h: remove prototype of non-existing xgetoptfile_sort_uniq
and add boilerplate.
* networking/{ipaddr,ip,iplink,iproute,iptunnel}.c: touch includes
and use short boilerplate.
* libiproute/iproute.c: rename round to avoid clashes with older
SuSE gcc and use short boilerplate.
2005-10-26 10:47:26 +00:00
Bernhard Reutner-Fischer
38d6615ed2
- fix bug to avoid aliasing busybox' main to zcip_main in IMA mode.
2005-10-21 10:43:11 +00:00
"Vladimir N. Oleynik"
86ac072b44
more const, use bb_getopt_ulflags, insert XXX for show place of problems
2005-10-17 10:47:19 +00:00
"Vladimir N. Oleynik"
6f347ef9dc
common BUFSIZ BSS buffer, small reduce code, data and bss
2005-10-15 10:23:55 +00:00
"Vladimir N. Oleynik"
f704b27b5b
- new bb_opt_complementally syntax, use [-:?] only - 'free' chars
...
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets
- use bb_default_error_retval for env applet
2005-10-14 09:56:52 +00:00
"Vladimir N. Oleynik"
6c35c7c976
usage bb_dev_null
2005-10-12 15:34:25 +00:00
Bernhard Reutner-Fischer
1d62d3b7b9
- make libiproute compile..
2005-10-08 20:47:15 +00:00
Bernhard Reutner-Fischer
0b42a6a8cf
- remove superfluous C statements ";;" in decompress_unzip.c, dpkg_deb.c ifconfig.c
...
- gzip.c: see if O_NOFOLLOW is defined before using it, else take alternate path
closes bug #221 (partially; The rest will follow later).
2005-10-07 11:34:50 +00:00
"Vladimir N. Oleynik"
c06e80e1e7
more lost changes BSD signals -> SysV signals. Noticed by Bernhard
2005-10-05 14:14:55 +00:00
"Vladimir N. Oleynik"
f382c0236e
BSD signals -> SysV signals, int->socklet_t. Noticed by Bernhard
2005-10-05 14:01:13 +00:00
Mike Frysinger
23fedb3ad4
dont typecast lvalue since gcc hates that
2005-10-05 00:50:03 +00:00
"Vladimir N. Oleynik"
1a2f4d9af7
sync inetd with slackware-10.2 inetd (OpenBSD-1.79), have destroy bug 455
2005-10-03 08:08:58 +00:00
"Vladimir N. Oleynik"
39a841cecf
change interface to bb_xasprintf() - more perfect for me.
...
ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers
reduce 100 bytes don't care in sum
2005-09-29 16:18:57 +00:00
Bernhard Reutner-Fischer
bee9eb1a9d
- rename llist_add_to.c to llist.c
...
- move llist_add_to_end() from ifupdown.c to libbb/llist.c
2005-09-29 12:55:10 +00:00
"Vladimir N. Oleynik"
7090800870
revert wait zombie, it have as linux-specific signal(SIG_CHLD,SIG_IGN) already, do not confuse me\!
2005-09-26 13:55:43 +00:00
Mike Frysinger
3978abd05b
Cristian Ionescu-Idbohrn writes to fix a warning: networking/ifconfig.c uses an uchar ptr to work with a char ptr so change the uchar to char
2005-09-24 23:52:09 +00:00
Mike Frysinger
b7f88e01a4
touchup argc/argv handling to shrink a bit and fix a segfault when given wrong number of parameters as noted and fixed by Cristian Ionescu-Idbohrn
2005-09-24 23:48:18 +00:00
Mike Frysinger
62f18e1f20
use the shorter license header
2005-09-24 07:16:29 +00:00
Mike Frysinger
0d4ee68be5
use brief license line
2005-09-24 06:01:57 +00:00
Bernhard Reutner-Fischer
30b17863bd
- ifupdown needs run-parts. Thanks Derosnec for pointing this out.
2005-09-23 19:37:13 +00:00
"Vladimir N. Oleynik"
b628409b1e
more make safe the exported namespace for udhcp. Move to bb-specific file for reduce change into udhcp-CVS
2005-09-23 11:25:29 +00:00
"Vladimir N. Oleynik"
53ad366fe7
remove 1 exported
2005-09-23 10:44:02 +00:00
Paul Fox
b6f71645f4
move a couple of functions from common code (options.c) to udhcpd private
...
code (files.c) to make udhcpc a little smaller.
2005-09-22 19:03:24 +00:00
Paul Fox
28de951b02
add support for setting the dhcp vendor class option (option 60).
...
udhcpc now has a -V (--vendorclass), which will replace the default
"udhcpRELEASE" string in this option.
2005-09-22 18:59:13 +00:00
"Vladimir N. Oleynik"
2f9c30a2d5
safe exported namespace for udhcp. Not full, bore :-(
2005-09-22 15:07:33 +00:00
"Vladimir N. Oleynik"
e4baaa2d27
more remove lost exported
2005-09-22 12:59:26 +00:00
"Vladimir N. Oleynik"
007a011647
network "default" --> bb_INET_default. Reduce 2 exported from find applet
2005-09-22 11:11:11 +00:00
Bernhard Reutner-Fischer
d5bd137a24
- rename libbb's password helpers as suggested in libbb.h
...
my_getpwnam -> bb_xgetpwnam /* dies on error */
my_getgrnam -> bb_xgetgrnam /* dies on error */
my_getgrgid -> bb_getgrgid
my_getpwuid -> bb_getpwuid
my_getug -> bb_getug
2005-09-20 21:06:17 +00:00
"Vladimir N. Oleynik"
54deebf4e4
destroy bug #421
2005-09-19 10:46:44 +00:00
Rob Landley
6a65d2f8cc
Amir Shalem observed that telnetd doesn't really require login, so forcing
...
it is wrong.
2005-09-15 18:22:43 +00:00
Mike Frysinger
887a1ad57f
BsAtHome writes in Bug 433:
...
Ping packets sent by busybox have wrong endian on f.x. mips32 (openwrt). Attatched is a patch that
uses htons() and ntohs() to be platform independent.
2005-09-15 01:32:48 +00:00
Rob Landley
230b411de8
Fix the warning by rewriting the function to be smaller and simpler.
...
I'd appreciate somebody on a __BIG_ENDIAN platform testing this out; I haven't
got the hardware...
2005-09-08 03:22:09 +00:00
"Vladimir N. Oleynik"
45a8ed89c6
- sync traceroute with Slackware-10.1
...
(support -FIl -g gw -i if -z pt now).
- libbb/getopt_ulflags.c support bb_opt_complementally="x-x" as trigger now
2005-09-06 16:08:33 +00:00
"Vladimir N. Oleynik"
27421a1878
1) bb_opt_complementaly -> bb_opt_complementally
...
2) better support long options
3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-09-05 14:46:07 +00:00
Rob Landley
344ea471ef
Tracking system but #4 : php needs the environment variable SCRIPT_FILENAME.
2005-09-01 09:38:32 +00:00
Rob Landley
37adefc670
Off by one error in max_leases sanity check. Bug 349, apparently.
2005-09-01 02:43:39 +00:00
Rob Landley
6417564eeb
Two FEATURE_CLEAN_UP patches from Shaun Jackman, closing filehandles.
2005-08-22 15:57:50 +00:00
Paul Fox
b831753676
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.
2005-08-01 19:39:47 +00:00
Paul Fox
a39bba33c8
allow suppression of default client-id. fixes bug 000037. allows
...
busybox to match kernel and u-boot behavior with respect to client-id.
2005-08-01 14:31:13 +00:00
Mike Frysinger
d84a35f649
patch by apgo in Bug 345 to not use ether_hostton() with uClibc
2005-07-31 22:49:12 +00:00
Mike Frysinger
66c37d1390
typecast to int
2005-07-31 22:22:20 +00:00
Mike Frysinger
2e3054f413
use socklen_t instead of size_t with socket related functions
2005-07-31 22:20:02 +00:00
Rob Landley
ef8f423e90
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.
2005-07-28 19:36:33 +00:00
Rob Landley
193c8c7383
#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.)
2005-07-27 06:55:36 +00:00
Mike Frysinger
4d00896d05
use toplevel ARFLAGS and update default ARFLAGS to be quiet
2005-07-27 01:09:24 +00:00
Mike Frysinger
03e827a422
2005-03-19 Shaun Jackman <sjackman@gmail.com>
...
* networking/ping.c (ping): Change the type of fromlen to socklen_t.
2005-07-26 23:00:59 +00:00
Paul Fox
7b86134032
remove duplicate check against chaddr.
2005-07-21 20:23:56 +00:00
Paul Fox
f2ddc05ee7
applying fix for:
...
0000026: poor man's "scriptable" telnet
2005-07-20 19:55:19 +00:00
Paul Fox
1d4c88c8a5
applying fix for:
...
0000271: [PATCH] tftp -g fails if a TFTP_ACK is lost
2005-07-20 19:49:15 +00:00
Paul Fox
982d35ffa2
applying fix for:
...
0000263: nc cannot use -e when initiating a tcp connection
to something else
2005-07-20 19:40:30 +00:00
Paul Fox
01f67987e0
applying fix for:
...
0000260: udhcpc doesn't validate client hardware address
2005-07-20 19:13:21 +00:00
Paul Fox
5dc0ceeb9e
applying fix for:
...
0000203: 'ip route flush cache' not implemented
2005-07-20 19:01:05 +00:00
Paul Fox
77ee52333c
applying fix for:
...
0000185: httpd infinite loop when piping to CGI script
2005-07-20 18:42:52 +00:00
Paul Fox
28069404a4
much more concise fix for bug #45 . just align the packet...
2005-07-20 11:55:08 +00:00
Paul Fox
146e83a60e
applying fix from:
...
0000108: busyboxy/networking/ftpgetput.c not conforming to
RFC 959. ftpget and ftpput send <LF> as EOL.
2005-07-19 21:26:57 +00:00
Paul Fox
deac371690
applying fix from:
...
0000088: inetd chargen stream does not generate the
characters as recommended in RFC 864
Chragen service is generating garbage characters.
2005-07-19 21:19:20 +00:00
Paul Fox
b270315b21
applying fix for:
...
0000045: traceroute causes an alignment trap due to unaligned buffer on arm
2005-07-19 20:37:15 +00:00
Paul Fox
7b71d740b9
fix for "0000027: patch: nc will spin if stdin closed"
2005-07-18 22:23:16 +00:00
Ned Ludd
778ee6da60
- remove extra/unneeded function call. testing svn
2005-06-24 03:47:57 +00:00
Eric Andersen
3efa51d943
characters encoded as html should have a trailing semicolon
...
to be interpreted properly
2005-06-23 05:51:48 +00:00
Rob Landley
f3133c4149
Thus spake Brenda J. Butler:
...
We were seeing some timeouts when getting files with the busybox tftp
client.
With tcpdump, we saw that the tftp client was receiving blocks and
ack'ing them, but the server was failing to receive the occasional
ack.
When that happened, the server would send the last block over again,
but the tftp client was expecting the next block.
This patch allows the client to recover from this situation
(it sends an ack for the repeat block but does not write it
to the local file).
I hope it meets your approval, please don't hesitate to send
me comments for improvement.
The patch is against "head" in svn, I tested it on an older version
of busybox in our environment. It applied cleanly to the older
version.
Credit for this goes to my co-worker John McCarthy for finding
it and me for fixing it (assuming it works for everyone else too).
cheerio,
bjb
2005-06-07 02:40:39 +00:00
Rob Landley
0b1ff5a606
Tobias Krawutschke found a bug where the DHCP client would accept packets
...
with the wrong ARP address, meaning we could easily get somebody else's IP.
That is a bad thing, and this is the minimal two-line fix.
2005-05-26 05:25:12 +00:00
Mike Frysinger
b662f0d58b
import ether-wake applet by haveaniceday Bug 252
2005-05-11 03:59:53 +00:00
Rob Landley
00e76cb6b9
Patch from Jason Schoon to add IPV6 support to telnetd. Reworked by Rob
...
Landley to remove an #ifdef and move another one out of the flow of code.
2005-05-10 23:53:33 +00:00
Mike Frysinger
9c85ecdef4
use shared busybox error messages to save a few bytes
2005-05-07 06:45:29 +00:00
Mike Frysinger
7dc7f402a7
make the exec (-e) an optional feature of netcat
2005-05-06 05:00:34 +00:00
Mike Frysinger
60a5c38a4b
In bug 247, haveaniceday writes:
...
The option "-w secs" adds a timeout for writing.
2005-05-06 04:45:38 +00:00
Rob Landley
918f2ab3d7
Revert the uptime() removal. Let the list sort it out...
2005-05-04 02:15:23 +00:00
Rob Landley
8b80c71d70
Patch from Shaun Jackman:
...
Replace uptime with time(NULL). time is more portable than uptime and
eliminates the need to define uptime, reducing code size slightly.
2005-05-04 00:38:15 +00:00
Rob Landley
0d38301d85
From: Shaun Jackman <sjackman@gmail.com>
...
To: busybox@mail.codepoet.org
Wrap sockaddr_in6 in a ifdef CONFIG_FEATURE_IPV6.
Include sys/types.h instead of asm/types.h.
Include netinet/if_ether.h instead of linux/if_ether.h
The ioctl request argument is an int, not an unsigned short.
2005-05-03 22:30:08 +00:00
Rob Landley
e3752e56a4
Revert Tito's patch to zcip. My bad, David Brownell had objected and I missed
...
it...
2005-05-03 03:28:55 +00:00
Rob Landley
8445a9ff99
On Tuesday 19 April 2005 21:10, Tito wrote and today added:
...
> Hi,
> this is a first attempt of size optimization for zcip taking into account all
> the hints given so far on the list.
> I've applied just the more obvious busyboxifications so maybe it could be
> optimized more.
BTW: I've ripped out a lot of debug code and changed c++ // comments to /* */
as both were rather confusing for a newbie like me. ;-)
Sorry to the author for that.
I know that this makes mantaining the code easier, but I'm simple minded....
2005-05-01 00:22:03 +00:00
Rob Landley
ad8071f582
David Brownell submitted a new applet, zcip, based on RFC 3927. This is
...
version 0418b. It compiled.
2005-04-30 03:49:37 +00:00
Eric Andersen
70a5a1abde
Do not attempt to free() the application's environment, which is was
...
not dynamically allocated. Instead, use a private variable to store
the environment array, which is used when we exec applications.
2005-04-27 11:44:11 +00:00
Mike Frysinger
7202e00b4c
remove unused variable and declare writepid inline
2005-04-23 01:42:29 +00:00
Mike Frysinger
91d8f0e892
touchups as suggested by Vladimir N. Oleynik
2005-04-18 18:52:15 +00:00
Mike Frysinger
fa69f110d9
import fakeidentd module started by Thomas Lundquist
2005-04-17 07:24:19 +00:00
Eric Andersen
14f5c8d764
Patch from Bernhard Fischer to make a bunch of symbols static
...
which were otherwise cluttering the global namespace.
2005-04-16 19:39:00 +00:00
Eric Andersen
63e5e7bf0e
Fix broken macro
2005-04-16 08:04:31 +00:00
Eric Andersen
42e3b00ae5
Only define a local environ when not using the prototype from unistd.h
2005-04-16 08:02:15 +00:00
Mike Frysinger
4e5936ef95
In Bug 208, bernhardf writes:
...
On machines with only ANSI compliant compilers, not explitily delcaring
an empty parameter list 'void' causes failure.
2005-04-16 04:30:38 +00:00
Mike Frysinger
3cc01a80a3
In Bug 209, bernhardf writes:
...
struct named {
named_field: init,
};
appear to be depraced by now; rather use C{99} format as in
struct named {
.named_field = init,
};
2005-04-16 04:17:39 +00:00
Mike Frysinger
d824853de3
merge from udhcp module
2004-12-06 14:59:45 +00:00
Eric Andersen
9789bf1019
return failure when nslookup fails
2004-10-13 07:25:01 +00:00
Eric Andersen
abf58d6ba5
Wade Berrier writes:
...
Hello,
Here's a patch for a first attempt at static leases for udhcpd.
Included in the tarball are 2 files (static_leases.c, static_leases.h)
and a patch against the latest cvs.
In the config file you can configure static leases with the following
format:
static_lease 00:60:08:11:CE:4E 192.168.0.54
static_lease 00:60:08:11:CE:3E 192.168.0.44
Comments/suggestions/improvements are welcome.
Wade
2004-10-08 08:49:26 +00:00
Eric Andersen
751750e3ee
Patch from Denis Vlasenko to fix a problem where
...
wget http://1.2.3.4/abc/ loses last '/'
2004-10-08 08:27:40 +00:00
Eric Andersen
07f2fea62c
last_patch139.gz from Vladimir N. Oleynik:
...
>I also don't mean to disagree about leaving 30x status codes until after
>1.0. In fact, although redirecting http://host/dir to http://host/dir/
>with a 301 is common practice (e.g. Apache, IIS), AFAIK it isn't
>actually required (or mentioned) by the HTTP specs.
Ok.
Attached patch have 302 and 408 implemented features.
--w
vodz
2004-10-08 08:03:29 +00:00
Eric Andersen
7daa076d3e
egor duda writes:
...
Hi!
I've created a patch to busybox' build system to allow building it in
separate tree in a manner similar to kbuild from kernel version 2.6.
That is, one runs command like
'make O=/build/some/where/for/specific/target/and/options'
and everything is built in this exact directory, provided that it exists.
I understand that applyingc such invasive changes during 'release
candidates' stage of development is at best unwise. So, i'm currently
asking for comments about this patch, starting from whether such thing
is needed at all to whether it coded properly.
'make check' should work now, and one make creates Makefile in build
directory, so one can run 'make' in build directory after that.
One possible caveat is that if we build in some directory other than
source one, the source directory should be 'distclean'ed first.
egor
2004-10-08 07:46:08 +00:00
Eric Andersen
31ec93e580
Add some notes on how to make telnetd actually work
2004-09-23 20:08:46 +00:00
Glenn L McGrath
d4004ee6a9
Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also.
2004-09-14 17:24:59 +00:00