29d94b907f
Another attempt at untangling the logic so the compiler can follow it and not generate pointless warnings.
Rob Landley
2006-09-23 19:56:21 +00:00
a94554d010
wget: fix bug where wget creates null file if there is no remote one. add O_LARGEFILE support (not run tested :).
Denis Vlasenko
2006-09-23 17:49:09 +00:00
6429aabbf1
bb_askpass: shorten static password buffer. 256 is way too large. simplify code a bit.
Denis Vlasenko
2006-09-23 12:22:11 +00:00
b97f07f5a1
Follow-up to 16172: this also doesn't produce a warning for me on gcc 4.1, without having to feed the compiler nonsense.
Rob Landley
2006-09-22 19:11:59 +00:00
0372197385
"I'll think about it" != "apply it now". It means I need to think about it.
Rob Landley
2006-09-22 18:47:45 +00:00
ae843e9cc8
- add new applet resize. text data bss dec hex filename 185 0 0 185 b9 console-tools/resize.o 255 0 0 255 ff console-tools/resize.o.print
Bernhard Reutner-Fischer
2006-09-22 08:18:41 +00:00
e9a7a6212b
Change license statements (and clean up headers) on some of the files that Erik or I are primary copyright holders on.
Rob Landley
2006-09-22 02:52:41 +00:00
05592ac00c
- update and expand TODO a little bit
Bernhard Reutner-Fischer
2006-09-21 22:58:38 +00:00
3503ff72c6
- pull r15578 from busybox_scratch branch: - fix bug where it would behave wrong if ./nohup.out was not writable. - debloat and make it readable while at it. $ size coreutils/nohup.o* text data bss dec hex filename 362 0 0 362 16a coreutils/nohup.o.trunk 344 0 0 344 158 coreutils/nohup.o $ make bloatcheck function old new delta nohup_main 324 310 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-14) Total: -14 bytes
Bernhard Reutner-Fischer
2006-09-21 22:10:24 +00:00
42f67026a1
- silence gcc warning about a funcptr possibly being used uninitialized. This is a perfect example on where we should NOT care if the functor is not initialized since the result will not be what the user may expect. Safe bet would be to init to NULL, but let's try normal uu for good measure. - fix commentary typo while at it.
Bernhard Reutner-Fischer
2006-09-21 20:40:56 +00:00
ce32f65a1b
mount: nfs mount should enable bb_error-to-syslog support
Denis Vlasenko
2006-09-21 12:30:16 +00:00
a528643330
- gcc-2.95 doesn't support -static-libgcc - remove Winline
Bernhard Reutner-Fischer
2006-09-21 11:54:51 +00:00
116080a13a
mount: make Rob happy by reinstating #defines
Denis Vlasenko
2006-09-21 11:13:08 +00:00
fbdf121b7d
Teach get_terminal_width_height to fall back to $LINES and $COLUMNS when used via things like a serial console.
Rob Landley
2006-09-20 22:06:01 +00:00
4ef6f647a3
The version checked into the tree is a snapshot of an unifinished applet, and you just made lots of ">>>>>>> mine" lines show up in my working copy of this.
Rob Landley
2006-09-20 21:57:36 +00:00
eb84a42fdd
The Software Freedom Law Center wants us to add a copyright notice to the generated binaries, to make copyright enforcement easier. Our liason with them (Bradley Kuhn) suggested the following text:
Rob Landley
2006-09-20 21:41:13 +00:00
94b383d419
License clarification.
Rob Landley
2006-09-20 20:01:29 +00:00
d1f939eaf3
- fix documentation for the command-line options of ipcs. Closes#1036
Bernhard Reutner-Fischer
2006-09-20 15:56:53 +00:00
a6585774f9
- fix embarrassing typo of mine. Closes bug #1038
Bernhard Reutner-Fischer
2006-09-20 15:29:13 +00:00
debaf2fe02
stty: reorder code, reducing need in forward declarations. added few missed bits of error checking for parameters.
Denis Vlasenko
2006-09-19 14:31:44 +00:00
20b253d2d8
stty: convert "enum mode_type" into unnamed enum (reduces code obfuscation); deindent set_mode; add _or_die suffixes to few functions
Denis Vlasenko
2006-09-19 14:24:23 +00:00
3bc59aa2a4
mount: fix bugs: free(mp->mnt_fsname) of non-malloced ptr; check for "more than 2 arguments" was actually checking for -2.
Denis Vlasenko
2006-09-17 15:04:01 +00:00
fc56dd2e21
mount: use bb_simplify_path as appropriate
Denis Vlasenko
2006-09-17 15:01:53 +00:00
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