1f9145c5c3
More minor tweaks.
Rob Landley
2006-07-12 21:31:16 +00:00
58dda84ecc
decuddle () from for/if/while
Mike Frysinger
2006-07-12 20:04:00 +00:00
c9c1a41c58
A couple things that got tangled up in my tree, easier to check in both than untangle them:
Rob Landley
2006-07-12 19:17:55 +00:00
801ab14013
Add one-line GPL boilerplate to numerous (but not all yet) source files.
"Robert P. J. Day"
2006-07-12 07:56:04 +00:00
ab7d9be17c
Patch from Tito to remove pwd_to_spwd (which we don't actually need), with some #ifdef removal from me.
Rob Landley
2006-07-11 16:19:17 +00:00
2819f757ca
Add one-line GPL boilerplate to these source files.
"Robert P. J. Day"
2006-07-11 11:32:31 +00:00
22d3958d76
Denis Vlasenko spotted the lack of bounds checking in my first attempt at itoa/utoa.
Rob Landley
2006-07-11 00:44:36 +00:00
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.
Rob Landley
2006-07-10 19:45:20 +00:00
5d8843e451
Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.
"Robert P. J. Day"
2006-07-10 11:41:19 +00:00
5b88a38157
Add itoa and utoa to see what Denis Vlasenko thinks.
Rob Landley
2006-07-10 07:41:34 +00:00
3bfcf3cccc
Patch from Tito to make syslog configurable and remove #ifdefs. Further cleanups by me.
Rob Landley
2006-07-10 03:05:46 +00:00
cba1b96735
Patch from Shaun Jackman to set environment variable RUNLEVEL equal to init's argv[1], so if you append "single" to your kernel command line and the kernel doesn't parse it, RUNLELEL=single.
Rob Landley
2006-07-09 17:28:17 +00:00
acf448d4f6
Bugfix from Shaun Jackman (check that argv[optind] isn't null before dereferencing it) plus a bunch of tweaks from me.
Rob Landley
2006-07-09 17:03:07 +00:00
1df45cf8e7
Point at fixes.patch for 1.2.1.
Rob Landley
2006-07-08 18:11:00 +00:00
ff6e21c2ce
Fix tar so it can extract git-generated tarballs, based on a suggestion from Erik Frederiksen.
Rob Landley
2006-07-06 20:30:19 +00:00
9ebd1bd468
Attempt to address Shaun Jackman's problem adding "busybox: busybox.bflt" to .config.mak.
Rob Landley
2006-07-06 20:02:47 +00:00
e3324502a5
fix dependencies so that compressed usage gets rebuilt if a) include/usage.h is changed, and b) after "make clean".
Paul Fox
2006-07-06 20:00:43 +00:00
4ae905a31c
Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.
Rob Landley
2006-07-06 17:22:54 +00:00
aa516a61b9
Fix three embarassing thinkos in the new dmesg.c: 1) the c argument shouldn't have had a : after that, dunno how that got there. 2) the xgetlarg for level was using size 3) because xgetlarg's error message _SUCKS_ (it does a show_usage() rather than giving any specific info about the range that was violated) I dropped the range down to 2 bytes. (Which works fine, I dunno why we were nit-picking about that...)
Rob Landley
2006-07-06 16:41:56 +00:00
f296f0b77d
Bug fix from Vladimir Oleynic via Paul Fox for: echo "+bond0" > /sys/class/net/bonding_masters while true; do echo hello done
Rob Landley
2006-07-06 01:09:21 +00:00
cf5b80ba32
This file doesn't appear to be used anywhere.
"Robert P. J. Day"
2006-07-05 12:47:26 +00:00
273430aa8d
- Pull r15593: Rename to CROSS_COMPILE and move its configuration to .config.mak. (Shaun Jackman)
Bernhard Reutner-Fischer
2006-07-04 08:26:55 +00:00
c773ac8a79
Delete unused version.c file and corresponding function prototypes from blkid.h. If this file needs to be resurrected, it can be based on ext2fs/version.c.
"Robert P. J. Day"
2006-07-03 18:11:39 +00:00
259472e741
remove duplicate CONFIG_TASKSET option
Mike Frysinger
2006-07-03 05:22:36 +00:00
441bfbf143
make the -0 xargs option a little more clear
Mike Frysinger
2006-07-03 05:19:44 +00:00
4eddb42bbc
Remove the silly redundancy from that header file include.
"Robert P. J. Day"
2006-07-03 00:46:47 +00:00
c9f423a93d
Correct the comment to match the code.
"Robert P. J. Day"
2006-07-02 19:52:52 +00:00
63fc1a9e08
Standardize on the vi editing directives being on the first line.
"Robert P. J. Day"
2006-07-02 19:47:05 +00:00
087b9d640e
Allow a user-configurable minimum password length.
"Robert P. J. Day"
2006-07-02 18:35:39 +00:00
e02706fe45
- note that get_hz potentially needs cleanup.
Bernhard Reutner-Fischer
2006-07-02 10:33:10 +00:00
7a8e491dff
Patch from Shaun Jackman moving the var=value logic to here it can do some good.
Rob Landley
2006-07-01 17:19:02 +00:00
7ccb65f3a4
Yet more "#if 0" content removed.
"Robert P. J. Day"
2006-07-01 15:09:17 +00:00
d35ef0f666
More removal of "#if 0" content.
"Robert P. J. Day"
2006-07-01 14:59:54 +00:00
edd9ca5743
More removal of "#if 0" content.
"Robert P. J. Day"
2006-07-01 14:52:12 +00:00
53f21e34a7
Remove "#if 0" content.
"Robert P. J. Day"
2006-07-01 14:34:33 +00:00
177c9f3128
Get rid of all "#if 0" content.
"Robert P. J. Day"
2006-07-01 14:30:28 +00:00
68229837ff
Remove all usage of the "register" storage class specifier.
"Robert P. J. Day"
2006-07-01 13:08:46 +00:00
f350160963
Remove "#if 1" directives.
"Robert P. J. Day"
2006-07-01 12:19:39 +00:00
01772aea33
Annoint 1.2.0.
Rob Landley
2006-06-30 22:40:13 +00:00
12d9419273
Revert taskset for 1.2.0. It emits a warning, breaks building under RH9, and nobody seemed interested in fixing it despite repeated complaints. I'll worry about it in the 1.3 timeframe...
Rob Landley
2006-06-30 22:20:43 +00:00
5df6d9f777
- Give Rob Landley things TODO like depmod
Ned Ludd
2006-06-30 21:48:38 +00:00
a526c30cc5
Make another warning go away.
Rob Landley
2006-06-30 20:30:10 +00:00
ab58d5cf8a
Make warnings go away.
Rob Landley
2006-06-30 19:04:09 +00:00
9c0e4f03d9
More random todo items...
Rob Landley
2006-06-30 16:38:09 +00:00
8bbdb8732f
This kind of paranoia is a debug option at best.
Rob Landley
2006-06-30 16:36:56 +00:00
cd545287c5
Fix bug 744 by moving the flushing logic into the exhausted read buffer test. (Also some other minor cleanups while I was there, shouldn't affect the resulting binary.)
Rob Landley
2006-06-30 16:35:40 +00:00
db1ab1aeb3
Top was catching sigterm (and fumbling sigint) so it could reset the terminal type on the way out, but the signal handler didn't exit. Plus it did unnecessary things with sigaction. This code is overgrown and needs a serious weed-whacking...
Rob Landley
2006-06-28 14:11:25 +00:00
ea7c18514b
Fix http://bugs.busybox.net/view.php?id=826 in which "(echo; echo) | sed x" crashes because the empty state of the hold space is NULL but the empty state of the pattern space is "".
Rob Landley
2006-06-28 13:50:59 +00:00
cc826d74e4
cleanup patch usage
Mike Frysinger
2006-06-28 00:22:32 +00:00
1979d3ccbc
More website cleanup.
Rob Landley
2006-06-27 22:33:22 +00:00
d879ffb79e
Move 2005 and earlier to oldnews.
Rob Landley
2006-06-27 21:29:56 +00:00
ed9aec908b
Redo the license section completely, and update the header to group the tabs.
Rob Landley
2006-06-27 20:47:08 +00:00
cddba6c61f
Move documentation links into the index so they're more visible.
Rob Landley
2006-06-27 18:59:57 +00:00
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.
Rob Landley
2006-06-27 18:41:03 +00:00
21302c2b78
Properly print the output for a sit (IPv6-in-IPv4) interface.
"Robert P. J. Day"
2006-06-26 22:03:43 +00:00
4137dd783b
Aesthetic fix to use newer structure initialization format.
"Robert P. J. Day"
2006-06-26 21:54:57 +00:00
cd68a2e1a8
fix watchdog on no-mmu systems by adding -F option for rexec
Mike Frysinger
2006-06-26 21:31:17 +00:00
42705abc28
dont setpgrp() for now as it breaks system() and that is more important than ctrl+c handling of background processes
Mike Frysinger
2006-06-26 20:42:36 +00:00
ef10d52745
Upgrade mdev to allow commands to be run on create/delete.
Rob Landley
2006-06-26 14:11:33 +00:00
cf7577d417
Missed one. Based on suggestions from Erik Hovland.
Rob Landley
2006-06-25 22:59:31 +00:00
11c7a7bed6
Various cleanups I made while going through Erik Hovland's patch submissions, some of which are even from him. :)
Rob Landley
2006-06-25 22:39:24 +00:00
f087798e8b
- convert old-style parameter declarations (K&R) to modern style.
Bernhard Reutner-Fischer
2006-06-25 22:08:53 +00:00
a892bf8284
Whitespace. (Vim's auto-indent is kind of annoying at times, like "daytime" and "nighttime"...)
Rob Landley
2006-06-25 15:37:28 +00:00
934da82913
Fix a possible race condition if two processes try to claim the same loop device at the same time. We should only CLR_FD if the set status fails, not if the SET_FD fails.
Rob Landley
2006-06-25 15:29:12 +00:00
768945b762
A few patches from Erik Hovland, turning strncpy() into safe_strncpy() and removing some unnecessary code.
Rob Landley
2006-06-25 00:34:52 +00:00
641c3537c0
Add a test from Glenn.
Rob Landley
2006-06-24 22:55:13 +00:00
e1ee482684
Document mount's new error return conventions.
Rob Landley
2006-06-24 22:39:19 +00:00
c983274565
The logic to make cp -d or -P treat things like regular files should only trigger for symlinks, not for device nodes. This should fix "cp -a /dev ." to work as expected (when run by root, anyway).
Rob Landley
2006-06-24 21:27:36 +00:00
5d9c42aadc
Slowly pulling more common headers into libbb.h. Andre pointed out that older uClibc didn't include sys/socket.h from netinet/in.h, so add an explicit #include for that too...
Rob Landley
2006-06-24 17:55:02 +00:00
53433b3ca1
Clean up.
Rob Landley
2006-06-22 22:28:29 +00:00
1fa4a9448b
Patch from Shaun Jackman to replace CFLAGS_EXTRA with .config.mak
Rob Landley
2006-06-22 22:05:00 +00:00
67d4943393
CONFIG_DHCP -> CONFIG_APP_DHCP.
Rob Landley
2006-06-22 18:48:34 +00:00
135cee3741
Jean Wolter writes: modprobe checks, whether a module is already loaded. The function used for this currently always returns 0.
Mike Frysinger
2006-06-21 23:03:37 +00:00
35492137f8
- add note about strict ordering
Bernhard Reutner-Fischer
2006-06-21 18:19:53 +00:00
c2ad4f5d27
Jean Wolter writes: ash uses bsearch to search in the list of built-in commands, therefore the list of built-in commands has to be ordered. Revision 15077 introduced the source built-in and destroyed this order. And now ash doesn't find the shift command anymore.
Mike Frysinger
2006-06-21 18:04:49 +00:00
0cc2c2c289
Patch from Paul Fox to improve mount's error handling behavior, which I beat on a bit.
Rob Landley
2006-06-21 03:53:33 +00:00
dbfb5a3cb7
Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimes produce an error, due to a missing rc assignment.
Rob Landley
2006-06-21 02:39:57 +00:00
399d45f1c6
Aurelien Jacobs pointed out inline functions that could be removed. Doing so shrank the code a bit.
Rob Landley
2006-06-21 01:49:17 +00:00
e5e1a10cd3
Remove pointless "inline" wrapper around get_terminal_width_height().
Rob Landley
2006-06-21 01:15:36 +00:00
2d6af16035
Zubicaray reported a bug in vi that causes it to eat 100% cpu when you close an xterm it's running in. The vi signal behavior would catch and restarts lots of signals, like SIGHUP, that should just kill the thing. (Leftover behavior from when it would segfault all the time.) Filtered out the more obviously bad ones. If it segfaults, we should find and fix the problem.
Rob Landley
2006-06-21 00:52:31 +00:00
b049c0ec19
only enable count_bit functions when actually needed to fix warning reported by Bernhard Fischer
Mike Frysinger
2006-06-20 23:03:27 +00:00
b13fee4cbb
Since rangecoder is just a bunch of C functions, move it into the one user (decompress_unlzma.c). Also a slight #include cleanup, and I've been meaning to put #include <unistd.h> into libbb.h since it's so darn common...
Rob Landley
2006-06-20 22:38:00 +00:00
5483de1cb7
Cleanup patch from Shaun Jackman converting %m to perror.
Rob Landley
2006-06-20 21:35:26 +00:00
9fe801e0d2
Patch by Robert P. Day to remove obsolete alias code that the 2.4 and 2.6 Linux kernels don't do anymore.
Rob Landley
2006-06-20 21:13:29 +00:00
14ff19b28a
assign default debug level to the MSHDEBUG define
Mike Frysinger
2006-06-20 20:37:01 +00:00
2b8a05a775
I broke allbareconfig with half-finished cleanups I'd forgotten weren't done. Got both to a decent stopping point. (There's a lot more cleanup to do on ls.c but now is not the time...)
Rob Landley
2006-06-20 17:43:01 +00:00
8437ede6c2
The type changed too.
Rob Landley
2006-06-20 16:43:05 +00:00
5ab8f7de4f
Use the new names for tty_baud_to_value() and tty_value_to_baud() again.
Peter Kjellerstedt
2006-06-20 16:35:37 +00:00
57c1f73dd5
Revert the last two patches to go back to a state before this file was controversial.
Rob Landley
2006-06-20 16:17:24 +00:00
2818b292fb
Patch by Robert P. Day to make structs use c99 initializers.
Rob Landley
2006-06-20 15:52:52 +00:00
2a613d7360
Patch from Robert P. J. Day cleaning up some unnecessary preprocessor directives.
Rob Landley
2006-06-20 14:57:00 +00:00
352e117c6b
Amrein-Marie Christophe pointed out that Mandrake changed its name.
Rob Landley
2006-06-20 14:09:20 +00:00
7a260f01ce
Make some 64 bit warnings go away on x86-64.
Rob Landley
2006-06-19 03:20:03 +00:00