215c61d3c2
Unbreak allbareconfig.
Rob Landley
2006-09-15 04:10:05 +00:00
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.
Rob Landley
2006-09-15 04:08:25 +00:00
69115c656d
Unbreak allbareconfig.
Rob Landley
2006-09-15 04:01:03 +00:00
da9d1d079e
Strangely, using // in the comments I added was not a persistent accident.
Rob Landley
2006-09-14 19:52:07 +00:00
af9854b81a
umount: do not try to close FILE* which is NULL.
Denis Vlasenko
2006-09-14 16:40:46 +00:00
be507170eb
mount: -o remount should not add lines to /etc/mtab
Denis Vlasenko
2006-09-14 16:09:27 +00:00
25098f7fd5
mount: move code from nfsmount.c into mount.c
Denis Vlasenko
2006-09-14 15:46:33 +00:00
6eb2f8edce
- make sure that the 'build' dir exists even if we are about to build just one applet.
Bernhard Reutner-Fischer
2006-09-14 15:07:48 +00:00
1d6fb6d448
- do away with silly comment and do the Right Thing wrt building the archives. You have to provide the absolute path to the objdir/target.ext you want to build, as can be seen in the respective makefiles..
Bernhard Reutner-Fischer
2006-09-14 15:04:31 +00:00
727ef94447
mount: fix mtab support (but it is still rather buggy)
Denis Vlasenko
2006-09-14 13:19:19 +00:00
85c6de71bf
svn 15355 replaced "BusyBox is licensed under the GNU General Public Public License" with "BusyBox is licensed under the GNU General Public License version 2 or later... (This is the same license the Linux kernel is under...)" Except that the Linux kernel isn't under GPLv2 or later, it's just under GPLv2.
Rob Landley
2006-09-14 05:59:32 +00:00
cc9962d7fb
More code from kernel developers, and therefore licensed under GPLv2 only. Clarify the license boilerplate.
Rob Landley
2006-09-14 05:27:28 +00:00
73810e8d42
Add Larry Doolittle's ntpclient, plus some formatting tweaks.
Rob Landley
2006-09-13 19:54:36 +00:00
7fee0c4357
- fix copy'n paste errors that got introduced when switching to the shorter boilerplate. No object code changes.
Bernhard Reutner-Fischer
2006-09-13 16:39:19 +00:00
92582f2e11
- r16075 broke for de-selected FEATURE_UTMP; Partial fix that wants some more cleanup (see FIXME in the patch).
Bernhard Reutner-Fischer
2006-09-13 15:42:47 +00:00
577905f1e4
Revert duplicate patch.
Rob Landley
2006-09-12 22:42:03 +00:00
1b2b5cfba8
Fix from Bernhard for somebody trying to limp along with gcc 2.95.4.
Rob Landley
2006-09-12 20:29:22 +00:00
16bbb20089
Random cleanup hanging around my tree.
Rob Landley
2006-09-12 20:28:34 +00:00
b5f50ea344
- small trivia to be gentle to gcc-2.95.x which had no va_copy but only __va_copy.
Bernhard Reutner-Fischer
2006-09-12 13:27:55 +00:00
428a5cd0d3
- fix warning about discarding qualifiers in initialization
Bernhard Reutner-Fischer
2006-09-12 13:25:16 +00:00
00d7d6cef6
nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg" option - it was going to return a special flag back to caller and expecting caller to call it again with special parameter! Also caller was charged with calling mount() syscall...
Denis Vlasenko
2006-09-11 17:42:44 +00:00
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
Bernhard Reutner-Fischer
2006-09-11 16:01:40 +00:00
57b56674a3
- merge xstat.c into xfuncs.c
Bernhard Reutner-Fischer
2006-09-11 09:18:09 +00:00
dea6e3d3cf
- Tito pointed out that Rob forgot to add e2fsprogs/blkid/list.c
Bernhard Reutner-Fischer
2006-09-11 09:16:12 +00:00
49ea46667f
Build fixes for gcc 4.0 with -Werror, from Tito.
Rob Landley
2006-09-11 01:34:21 +00:00
69674941dd
Error reporting fix for sulogin, plus remove help entries for options we never implemented. (Plus a bit more of bbsh leaking in from my tree, but it shouldn't hurt anything and I'm lazy...)
Rob Landley
2006-09-11 00:34:01 +00:00
3077294615
nfsmount: remove some really old code (for kernels 1.x!) + small cleanups.
Denis Vlasenko
2006-09-10 18:48:16 +00:00
1bfca7bac7
Cleanup headers and replace the zero padding with an even smaller version. One of the pads turned out to be unnecessary: sizeof(struct TarHeader) is TAR_BLOCK_SIZE, the padding's in the struct. The others could be done inline with bb_common_bufsiz1.
Rob Landley
2006-09-10 03:20:37 +00:00
9852d5a1e6
sulogin: minor cleanup.
Denis Vlasenko
2006-09-09 14:00:58 +00:00
8fafacd7ec
setkeycodes: something horrible happened here to indentation... fixed now
Denis Vlasenko
2006-09-09 13:23:04 +00:00
42dfcd2612
top: fixed wrong comment, made error message more clear
Denis Vlasenko
2006-09-09 12:55:02 +00:00
0c45bb23d2
tar: fix "xopen with O_CREAT" warning, improve zero padding write (was doing zillions of 1-byte write syscalls)
Denis Vlasenko
2006-09-09 12:49:03 +00:00
9cac521f07
using [xa]sprintf for string concatenation is neat and saves ~100 bytes according to bloatcheck. Also this fixes bug in rpm
Denis Vlasenko
2006-09-09 12:24:19 +00:00
3526a1320a
wget: wrap one atrociously long line (around 200 chars long!).
Denis Vlasenko
2006-09-09 12:20:57 +00:00
d797fcd726
udhcp: FEATURE_UDHCP_SYSLOG should be selected only if udhcp[cd] really are going to use it.
Denis Vlasenko
2006-09-09 12:18:46 +00:00
2f50aa42c5
login: use some ideas from util-linux's login. O_NONBLOCKing output on login timeout. fchmod instead of chmod (latter is racy). is_my_tty() is not needed anymore after race is fixed (is_my_tty() was racy too anyway...).
Denis Vlasenko
2006-09-08 17:56:52 +00:00
bd8f43dbab
few random readability enhansements. No code changes
Denis Vlasenko
2006-09-08 17:31:55 +00:00
9a9edf200b
login: make it saner and smaller by ~0.5k.
Denis Vlasenko
2006-09-08 17:29:53 +00:00
6bbd174593
login: small fixes like \n removal, bb_error_msg'ification, etc.
Denis Vlasenko
2006-09-08 17:26:20 +00:00
942e4291fe
login: previous commit comment was wrong :) That commit added login script support. Now _this commit_ is a style fix. Sorry....
Denis Vlasenko
2006-09-08 17:25:04 +00:00
dd93abeaff
Shrinkage/cleanup from Tito.
Rob Landley
2006-09-08 17:22:05 +00:00
ef08184d9e
Fix warnings.
Rob Landley
2006-09-08 17:21:19 +00:00
3476ad651d
Second drop. More infrastructure in place, especially for parsing pipelines. The minimal version got a couple hundred bytes bigger, partly because it's broken into more functions but mostly because it now dynamically reallocates and frees everything with no hard-coded limits. (I thought about making that optional, but there's a limit to what I can debug and maintain. It should still be reasonably NOMMU friendly, the allocations are small and short lived, and shouldn't contribute noticeably to long-term memory fragmentation.)
Rob Landley
2006-09-08 16:59:08 +00:00
c27f4f5445
A quick cleanup pass of some low-hanging mess.
Rob Landley
2006-09-08 00:41:48 +00:00
d35c0efddb
Bugfix for: echo '123456789' | sed 's/./|&/5'
Rob Landley
2006-09-08 00:01:02 +00:00
239369b368
Fix (hopefully) bug 976. Need more thorough audit. Restore erroneously removed FEATURE_UDHCP_SYSLOG.
Denis Vlasenko
2006-09-07 17:05:44 +00:00
a9801658ee
getty, sulogin: convert to using bb_msg for syslog output
Denis Vlasenko
2006-09-07 16:20:03 +00:00
b750dec40a
fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be &&
Denis Vlasenko
2006-09-07 16:03:45 +00:00
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.
Denis Vlasenko
2006-09-07 06:02:39 +00:00
b7d8dd9ab1
CONFIG_FEATURE_COMPRESS_USAGE was impossible to turn on if !CONFIG_NITPICK
Denis Vlasenko
2006-09-07 05:43:38 +00:00
3da6aa878a
adding files missed in prev updates (forgot about svn add)
Denis Vlasenko
2006-09-07 05:09:22 +00:00
f522d1231c
Denis Vlasenko has started to put stuff on his BusyBox home page, so index it.
Rob Landley
2006-09-06 22:56:38 +00:00
6d655be5df
removed a lot of trailing \n in bb_msg() calls. It is added automatically by function itself.
Denis Vlasenko
2006-09-06 19:02:46 +00:00
3538b9a882
Implement optional syslog logging using ordinary bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
Denis Vlasenko
2006-09-06 18:36:50 +00:00
5d725462d4
- strip 399424 off the bss by making decompress_uncompress buffers config buffers. Compile tested (too lazy to look for a small .Z on the net). $ size busybox.old busybox text data bss dec hex filename 859555 10232 645732 1515519 171fff busybox.old 859683 10232 246308 1116223 11083f busybox $ make bloatcheck function old new delta uncompress 1036 1160 +124 inbuf 2116 4 -2112 outbuf 4100 4 -4096 htab 131072 - -131072 codetab 262144 - -262144 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/2 up/down: 124/-399424) Total: -399300 bytes
Bernhard Reutner-Fischer
2006-09-06 15:28:32 +00:00
e614eaf40d
- mdev and grep use xregcomp. Closes bug #1021
Bernhard Reutner-Fischer
2006-09-06 13:24:39 +00:00
4cb035dd23
Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup of his code introduced a bug (an extra backslash in the CIFS mount string).
Rob Landley
2006-09-05 14:00:21 +00:00
02496aa69e
The bb_ prefixes were removed from xasprintf() and xopen() a month ago (in svn 15767).
Rob Landley
2006-09-05 13:48:21 +00:00
d25a2645f5
xfunc: fix: && -> &. Also nuked two double semicolons...
Denis Vlasenko
2006-09-05 09:36:19 +00:00
02add9e53a
Might as well commit this to have the history. It's not linked in to the applet list yet (and won't be until it can replace lash, I'm not having five shells in menuconfig at once), but you can build it with scripts/individual and mostly this is checked in so I can bloatcheck future versions against it easily....
Rob Landley
2006-09-05 03:22:19 +00:00
4d609cb5a3
Thinko.
Rob Landley
2006-09-04 19:43:26 +00:00
8cedabaee0
Patch from Natanael Copa to make start-stop-daemon just use readlink and strcmp to check if a program is already running.
Rob Landley
2006-09-04 18:59:39 +00:00
21afc7dc29
uuencode: common implementation for wget and uuencode (closing bug 694)
Denis Vlasenko
2006-09-03 15:49:40 +00:00
22dca23d52
archival: added O_TRUNC so that when we overwrite files on unpack, we truncate them. Also spotted & fixed hard to trigger bug with extension handling.
Denis Vlasenko
2006-09-03 14:23:29 +00:00
314908da9e
tar: revert older fix (non-portable), added new one. testsuite tar-extracts-all-subdirs now passes.
Denis Vlasenko
2006-09-03 14:04:33 +00:00
65113e8d97
zcip: bb_error_msg had stray newlines; small optimization in opt parsing
Denis Vlasenko
2006-09-03 12:31:59 +00:00
af906a3b6c
zcip: minor fixes
Denis Vlasenko
2006-09-03 12:29:53 +00:00
a9abecd85e
zcip: fix stdout/err versus syslog output. Incomplete: xfunc() would not respect this. TODO.
Denis Vlasenko
2006-09-03 12:28:32 +00:00
db7f2e5881
ping6: resolve interface name to number early. gcc is more efficient at truncating int to int16 via cast, use that instead of &.
Denis Vlasenko
2006-09-02 16:16:23 +00:00
cb6874cc66
Sync ping and ping6 a bit, fix style and indentation.
Denis Vlasenko
2006-09-02 16:13:36 +00:00
bfbc4ebf40
- patch from Csaba Henk to make the "User-Agent" header field configurable.
Bernhard Reutner-Fischer
2006-09-02 15:30:26 +00:00
686298d6fb
Walter Harms contributed a section on scripting languages. (I trimmed it a bit.)
Rob Landley
2006-09-01 17:38:23 +00:00
89d9d4d5f7
Vladimir Dronnikov also submitted a CIFS support patch to mount, which I heavily reworked here and probably broke. Tomorrow I need to set up a copy of samba to test against. (This compiles, I make no promises beyond that.)
Rob Landley
2006-09-01 08:10:44 +00:00
f5bbc692a0
Bernhard Fischer complained about moving --sort-common.
Rob Landley
2006-08-30 16:50:00 +00:00
1fdd83f897
There's some strange bug in glibc that triggers if you combine the --gc-sections linker flag with static linking. If this happens, then the "stdout" variable (used by printf() and such) will only work if stdout is _not_ redirected. I.E "./busybox" prints stuff, but "./busybox | cat" does not produce any output. (But even when redirected, "write(1,"blah",4);" continues to work just fine.)
Rob Landley
2006-08-29 21:46:10 +00:00