b988462d3e
Ok, features.h already defines _OPEN_SOURCE (and complains if it's already defined), yet it's not doing it for scripts/individual for some reason. (I hate fighting with header files.)
Rob Landley
2006-08-10 01:08:41 +00:00
519d7df930
Another whack at scripts/individual. Now builds 212 applets.
Rob Landley
2006-08-09 20:56:23 +00:00
e55a73c7a8
Update usage to talk about the new shared subtree stuff in mount.
Rob Landley
2006-08-09 20:55:35 +00:00
3ba7bd143e
Vladimir Dronnikov convinced me to twiddle the semantics of the new shared subtree stuff to look more like http://lwn.net/Articles/159077/ thinks they should.
Rob Landley
2006-08-09 19:51:13 +00:00
721b46e0e6
Fix a typo (|| instead of |) and remove two comments about a problem fixed in the previous patch.
Rob Landley
2006-08-08 12:54:02 +00:00
e3781b7312
Add shared subtree support, suggested by Vladimir Dronnikov. Also break out a few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems...
Rob Landley
2006-08-08 01:39:49 +00:00
47b16a6fe9
Using lstat() instead of stat() means that attempting to loopback mount a symlink doesn't work.
Rob Landley
2006-08-08 00:47:17 +00:00
7250915d78
Make a warning go away on 64-bit systems.
Rob Landley
2006-08-06 20:41:11 +00:00
236c6755d2
Teach md5sum and sha1sum to work the way other applets do so I don't have to teach scripts/individual new tricks. And while I'm at it, teach scripts/individual other new tricks. Now builds 198 applets, some of which I should teach it to hardlink together because they're really the same app...
Rob Landley
2006-08-06 02:13:36 +00:00
affb7a61a6
scripts/individual now builds 171 applets. Some of them may even work. :)
Rob Landley
2006-08-05 00:41:39 +00:00
59fe8b9089
There are a number of reasons for reinventing printf(). Writing status to stdout is not one of them.
Rob Landley
2006-08-04 22:02:55 +00:00
f4e50b0bcd
We haven't got a CONFIG_APT_GET.
Rob Landley
2006-08-04 21:12:14 +00:00
e6a3fef08c
Add busybox_old to distclean.
Rob Landley
2006-08-04 20:39:56 +00:00
23b61be0df
Add comments to all the functions in this file documenting what they're for.
Rob Landley
2006-08-04 20:20:03 +00:00
74bb70cf54
Ok, that's not a typo, that's just me not thinking.
Rob Landley
2006-08-04 20:19:01 +00:00
3629d95a24
Typo.
Rob Landley
2006-08-04 20:15:18 +00:00
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.
Rob Landley
2006-08-04 19:16:31 +00:00
daf58ef61a
Use xopen3() instead of an after-the-fact chown.
Rob Landley
2006-08-04 17:26:58 +00:00
2c55fcac08
Thinko spotted by Vladimir Dronnikov.
Rob Landley
2006-08-04 05:24:58 +00:00
6ced427a6d
Try to make a "type-punned pointer" warning go away for somebody on the buildroot list.
Rob Landley
2006-08-03 20:39:59 +00:00
403777ffae
Patch from tito to improve options parsing.
Rob Landley
2006-08-03 20:22:37 +00:00
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.
Rob Landley
2006-08-03 20:07:35 +00:00
86b4d64aa3
These should have been part of 15767 too.
Rob Landley
2006-08-03 17:58:17 +00:00
7478804b78
Fix umount so loop device disassociation hopefully doesn't screw up errno on a failed mount. And while I'm at it, legacy mdev removal was only being done in the _failure_ case? That can't be right. Plus minor header cleanups and an option parsing tweak.
Rob Landley
2006-08-03 17:54:45 +00:00
280a264fb8
Attempt to fixup httpd.c to match svn 15767.
Rob Landley
2006-08-03 17:49:15 +00:00
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.
Rob Landley
2006-08-03 15:41:12 +00:00
6dce0b6fa7
Remove apparent typo in "bool" line.
"Robert P. J. Day"
2006-08-03 11:28:36 +00:00
581d4f36b3
Move declaration to be compatible with older gcc's.
"Robert P. J. Day"
2006-08-03 10:50:39 +00:00
cae61e7ca4
Make a gcc 4.1 warning go away.
Rob Landley
2006-08-01 00:30:26 +00:00
2aced7ea04
Announce 1.2.1
Rob Landley
2006-07-31 23:56:26 +00:00
533320c659
1) ifeq is make syntax, #ifeq is a make comment. 2) The check_cc macros should probably all have the same number of arguments. 3) Move the -Werror into the gcc 4.0 on i386 test, because gcc 4.1 is broken and produces warnings for things that provably aren't incorrect.
Rob Landley
2006-07-31 22:56:17 +00:00
565bc33332
Remove code that can't be reached.
Rob Landley
2006-07-31 22:50:12 +00:00
c052576821
Tito said that strings is a complete rewrite.
Rob Landley
2006-07-31 16:37:57 +00:00
91dc086d63
Switch off CONFIG_NITPICK in defconfig. (Kind of the point of CONFIG_NITPICK.)
Rob Landley
2006-07-30 18:56:29 +00:00
446129adae
Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attribution right this time.
Rob Landley
2006-07-27 16:40:55 +00:00
52c7d7ebf3
And now, with a for loop, so it can handle the nested USE() case.
Rob Landley
2006-07-27 15:12:21 +00:00
fc367f9824
There's no excuse for adding new #ifdefs to the code like that. None at all.
Rob Landley
2006-07-27 15:02:58 +00:00
277eb6bb44
I touched perl. I feel dirty.
Rob Landley
2006-07-27 14:59:36 +00:00
eac0c06938
allow people to display dmesg output without syslog levels
Mike Frysinger
2006-07-27 11:18:36 +00:00
0b7dfb5ae7
eat gremlins
Mike Frysinger
2006-07-27 03:42:30 +00:00
a7881119cc
de-cuddle if( to if (
Mike Frysinger
2006-07-27 03:00:49 +00:00
4795e4e011
Rich Filker spotted that sed -e 's/xxx/[/' didn't work right. Did a smaller fix than his, and shrank the code a bit on top of that so the net size is smaller, and added a test to the test suite for this case. Plus I cleaned up the #includes and removed unnecessary "const"s while I was there.
Rob Landley
2006-07-26 17:25:08 +00:00
7cc6b69bb0
Patch from Shaun Jackman, set optind by hand if we don't call getopt.
Rob Landley
2006-07-26 16:10:39 +00:00
e1a0f5372f
Unbreak allbareconfig. (Todo item: rewrite dependency checker. Yeah, I already have that one, but it moves up the list...)
Rob Landley
2006-07-26 15:38:46 +00:00
5ebeb3ec56
Somebody on the buildroot list hit: insmod.c:515:10: extra tokens at end of #ident directive
Rob Landley
2006-07-25 20:37:45 +00:00
91a339002a
get rid of udhcp submenu
Mike Frysinger
2006-07-24 07:35:52 +00:00
8840759c61
move lchown/chown define out of specific files and into platform.h where it belongs
Mike Frysinger
2006-07-20 19:31:07 +00:00
eea561871b
"formated" -> "formatted" throughout the code base.
"Robert P. J. Day"
2006-07-20 19:02:24 +00:00
bf30c69a38
Patch from Yann Morin to fix bug 941, underscores in module aliases.
Rob Landley
2006-07-20 17:36:18 +00:00
f86a5ba510
Remove unnecessary consts.
Rob Landley
2006-07-19 21:45:30 +00:00
53702e53ba
Replace the previous checkin with the correct fix.
Rob Landley
2006-07-19 21:43:53 +00:00
3e4da920bd
For now, get around the error that "child" might be uninitialized.
"Robert P. J. Day"
2006-07-18 12:05:43 +00:00
fc2aea1a76
Rearrange order of type qualifiers.
"Robert P. J. Day"
2006-07-18 11:33:44 +00:00
f0623a2c98
Patch from Thaddeus Ternes, adding chuid to start-stop-daemon.
Rob Landley
2006-07-17 00:35:07 +00:00
62103757ef
Bugfix from Tito to make sure /etc/group gets updated.
Rob Landley
2006-07-16 18:58:18 +00:00
d893b120ba
New mkswap. Small and simple. Might even work. :)
Rob Landley
2006-07-16 08:17:03 +00:00
534374755d
Cleaup read() and write() variants, plus a couple of new functions like xlseek and fdlength() for the new mkswap.
Rob Landley
2006-07-16 08:14:35 +00:00
afb94ecf2b
Convert setuid/setgid users to xsetuid/xsetgid.
Rob Landley
2006-07-16 08:06:34 +00:00
25c194fd19
Add -Werror.
Rob Landley
2006-07-16 08:03:29 +00:00
df822f2606
We need xsetuid() and xsetgid() because per-user process resource limits can prevent a process from switching to a user that has too many processes, and when that happens WE'RE STILL ROOT. See http://lwn.net/Articles/190331/
Rob Landley
2006-07-15 23:00:46 +00:00
1870737480
Comment tweak from tito.
Rob Landley
2006-07-15 19:46:46 +00:00
83169c607b
Tito writes: If the gecos field of an user is empty, obscure reports a false "similar to gecos" error.
Mike Frysinger
2006-07-15 03:59:00 +00:00
91ed1a4a41
Patch from Suresh Rajashekara moving comments and #includes and such around.
Rob Landley
2006-07-14 17:59:36 +00:00
a4622324dd
mention osuosl
Eric Andersen
2006-07-13 00:52:29 +00:00
3a9cceb092
Add the two busybox developers' home pages that have busybox related stuff on them.
Rob Landley
2006-07-13 00:10:33 +00:00
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