a7e14db495
This combines a patch from Bernhard Fischer (moving the clean of scripts/config from distclean to clean) with a sed consolidation that's been in my tree for a bit, and switching the GPL boilerplate to just point at LICENSE.
Rob Landley
2005-09-11 01:16:47 +00:00
b7128c6236
Cleanup patch by Bernhard Fischer, removing unnecessary includes of getopt.h, whitespace changes, typos, etc.
Rob Landley
2005-09-11 01:05:30 +00:00
db289b258d
use CONFIG_BUFFER macros like cow suggested and shrink code size some more by using less variables and more gotos ;)
Mike Frysinger
2005-09-10 04:10:18 +00:00
98ea849623
Patch from Dirk Clemens so df doesn't run numbers together on drives >100gig.
Rob Landley
2005-09-10 02:59:35 +00:00
a80b290e30
some tweaks by cow to shrink a little
Mike Frysinger
2005-09-10 02:47:19 +00:00
6b00d0d3ca
Put the menu_is_visible test back because it avoids printing spurious (albeit commented out) garbage.
Rob Landley
2005-09-08 11:50:48 +00:00
415f6c9628
Rob, I don't know why you feel some unexplainable compulsion to get rid of a meaningless warning. But I do expect you preserve the coding style and variable names when all you're doing is tweaking some of my code.
Manuel Novoa III
2005-09-08 06:02:49 +00:00
ae32016fc9
A bit overdue...
Rob Landley
2005-09-08 03:48:47 +00:00
9f0e00fc61
Tito sent more size tweaks.
Rob Landley
2005-09-08 03:27:06 +00:00
230b411de8
Fix the warning by rewriting the function to be smaller and simpler.
Rob Landley
2005-09-08 03:22:09 +00:00
658d2cf986
Tito sent in a few patches converting instances of CONFIG_FEATURE_CLEAN_UP to ENABLE_FEATURE_CLEAN_UP.
Rob Landley
2005-09-08 03:11:58 +00:00
02eb934b0f
committing: Summary 0000242: ash: read -t broken this also implements -n and -s options to read. (they're configured together because most of their code is in common, and separating them seemed silly.
Paul Fox
2005-09-07 16:56:02 +00:00
a70aa86e25
Yeah, Linus is the original author of three of our apps, but A) he doesn't work at transmeta anymore so that email's bogus, B) hands up everybody who thinks emailing him about a problem in the busybox version of those apps would be productive?
Rob Landley
2005-09-07 07:12:19 +00:00
20a825aed8
Fix warnings.
Rob Landley
2005-09-07 07:04:56 +00:00
90ca6b2878
This code exists to compensate for ancient broken build environments which, as far as I can tell, are no longer relevant. Modern busybox refuses to build under libc5 (there's a specific test and #error for that), and I'm not sure building against 2.1 kernel headers on Alpha was ever relevant.
Rob Landley
2005-09-07 06:39:02 +00:00
14efdc58ce
Don't comment warnings. Don't put #warnings about warnings. _FIX_ warnings.
Rob Landley
2005-09-07 04:18:36 +00:00
99f61719cb
Amir Shalem writes: this patch fix syscall names mix-up in libb/syscalls.c
Mike Frysinger
2005-09-06 21:53:21 +00:00
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
"Vladimir N. Oleynik"
2005-09-06 16:08:33 +00:00
1443487c92
typo, thanks, Bernhard Fischer
"Vladimir N. Oleynik"
2005-09-06 13:21:39 +00:00
1283a150ae
Whitespace-level changes. Replace s0,s1,e0,e1 with real variable names and clean up whitespace and curly brackets a bit. Resulting binary should be identical.
Rob Landley
2005-09-06 01:57:11 +00:00
9955c45907
get_terminal_width_height.c was in there twice.
Rob Landley
2005-09-05 18:42:18 +00:00
ecce943e25
Bernhard Fischer pointed out that CONFIG_FEATURE_MOUNT_FORCE no longer exists.
Rob Landley
2005-09-05 17:52:47 +00:00
f6acb660ea
Regarding 11330: when you fix a bug that the testsuite doesn't catch, add a test case to the test suite.
Rob Landley
2005-09-05 16:27:19 +00:00
d0c41a8519
destroy bug [0000381]
"Vladimir N. Oleynik"
2005-09-05 15:50:56 +00:00
f087480da1
destroy bug [0000404]
"Vladimir N. Oleynik"
2005-09-05 15:46:26 +00:00
a8c23aa795
- usage fresh bb_getopt_ulflags for ls -- very size reduce. - small indent corrections - remove unecessary malloc and free
"Vladimir N. Oleynik"
2005-09-05 15:06:57 +00:00
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
"Vladimir N. Oleynik"
2005-09-05 14:46:07 +00:00
bef14d7a87
1) sync with dash_0.5.2-7 2) but expand PS# as config option 3) correct kill error message again 4) remove show "line number" for interactive run (patch pending for dash)
"Vladimir N. Oleynik"
2005-09-05 13:25:11 +00:00
8f99104362
The previous commit left confdata writing out:
Rob Landley
2005-09-05 11:04:30 +00:00
d1fa5859d6
Now that "make sizes" is in, the faq should mention it...
Rob Landley
2005-09-05 10:25:51 +00:00
dbaf97e463
Fix the warnings, and fix the following two obvious segfaults: ./busybox getopt -n one -n two woot ./busybox getopt -o one -o two woot
Rob Landley
2005-09-05 06:16:53 +00:00
cc1669bcde
Actually returning ret might be good.
Rob Landley
2005-09-05 05:36:15 +00:00
8a7a678b03
Fixes so "make allnoconfig" works again.
Rob Landley
2005-09-05 04:13:33 +00:00
a1a1a9fa2c
Remove trailing crud from busybox.tests. (Sleep deprivation strikes again...)
Rob Landley
2005-09-04 11:13:10 +00:00
b766c39456
General cleanup of command line parsing to allow "busybox" to work as a prefix. (I.E. any argv[0] that starts with "busybox" winds up in busybox_main().)
Rob Landley
2005-09-04 11:10:37 +00:00
9754b91c16
touchup some grammar, formatting, and remove some outdated notes
Mike Frysinger
2005-09-02 23:06:30 +00:00
f46f1b4d8a
update the verbage describing what is needed for developer access
Eric Andersen
2005-09-02 14:10:47 +00:00
7f90ae436f
This goes along with the new testsuite code...
Rob Landley
2005-09-02 01:55:58 +00:00
1689075c99
Working on a new test harness. Moved the sort tests into it.
Rob Landley
2005-09-02 00:41:53 +00:00
babd3fbba6
Missing break was screwing up 'y//' command. Bug #248.
Rob Landley
2005-09-02 00:10:06 +00:00
92255d60b8
Fix for bug 383: attempting to "tar c /" would error out because stripping trailing / turns that into an empty string.
Rob Landley
2005-09-01 11:36:21 +00:00
828548ab56
According to bug #63, crond is unhappy with crontab lines that don't end in a newline, or lines that have trailing spaces.
Rob Landley
2005-09-01 10:23:57 +00:00
344ea471ef
Tracking system but #4: php needs the environment variable SCRIPT_FILENAME.
Rob Landley
2005-09-01 09:38:32 +00:00
f815469a76
Bernhard Fischer trimmed down dos2unix a bit.
Rob Landley
2005-09-01 03:11:19 +00:00
078bacf1e9
Patch -i support from Berhnard Fischer.
Rob Landley
2005-09-01 03:02:23 +00:00
e0537f6194
Bernhard Fischer suggested that get_terminal_width_height() should return the result of the ioctl so callers can tell if we have a tty. (0 means we have a tty, nonzero means the ioctl couldn't find size info and we fake 80x24. Really we should fake 80x25, but oh well...)
Rob Landley
2005-09-01 02:57:45 +00:00
37adefc670
Off by one error in max_leases sanity check. Bug 349, apparently.
Rob Landley
2005-09-01 02:43:39 +00:00
ac692b2cf7
Bernhard Fischer sent a patch to make "make sizes" work when building in another output directory.
Rob Landley
2005-09-01 02:40:21 +00:00
ab76d3acfd
Update unzip to -current, mostly to get the integer overflow bug (commit 11299) but the rest shouldn't hurt.
Rob Landley
2005-09-01 01:34:05 +00:00
9139770764
Busybox should only multiplex based on argv[1] when it's called as "busybox". Otherwise if you build busybox without a given applet you get the wrong error message when you call it via a symlink to that applet.
Rob Landley
2005-09-01 00:02:56 +00:00
29ee76cb2b
Anand Avati hit an integer overflow problem in our unzip code.
Rob Landley
2005-08-31 22:03:15 +00:00
c8b8a2d0cf
Don't comment warnings, _FIX_ warnings. (And putting in #warnings about other warnings is just gross.)
Rob Landley
2005-08-30 20:26:17 +00:00
c3386a4304
Why have a separate CONFIG_INIT_SWAPON when we already have CONFIG_SWAPONOFF?
Rob Landley
2005-08-30 18:50:37 +00:00
7a8f6792f3
Bug system entry #1 says that when busybox doesn't have swapoff, init shouldn't call swapoff.
Rob Landley
2005-08-30 18:17:05 +00:00
9a643149de
Amir Shalem found some bugs in the new mount code; unknown options didn't get added to the list, and my assumption that nfsmount() actually called mount() was incorrect (and I coded it wrong anyway; I hate having to touch codepaths I can't personally test).
Rob Landley
2005-08-30 17:07:49 +00:00
cc8885f6f3
Dirk Clemens pointed out how easy it is to support bzip2 compression, since we shell out to an external program to handle gzip anyway...
Rob Landley
2005-08-30 03:40:03 +00:00
de55987667
point to busybox.net
Eric Andersen
2005-08-28 12:47:39 +00:00
d9f7165de1
Dumb little hack, "make sizes". Try it.
Rob Landley
2005-08-28 08:24:21 +00:00
ddddb94f05
make sure __NF_sysfs exists before trying to use it
Mike Frysinger
2005-08-27 18:19:01 +00:00
038b076e55
some portability fixes by rmh in Bug 395
Mike Frysinger
2005-08-27 18:18:06 +00:00
258685a2e5
Dirk Clemens made tar cj work while upgrading the Siemens M740AV to busybox 1.01.
Rob Landley
2005-08-26 03:27:45 +00:00
e1d9633e20
Bernhard Fischer submitted a couple of Makefile patches: - Fix building out-of-tree - remove duplicate rule in toplevel Makefile - peruse make's builtin notion of `dirname $@'
Rob Landley
2005-08-24 00:41:52 +00:00
a937640bff
Remove something we did, not that I'm doing something, and add something we haven't done. Woo.
Rob Landley
2005-08-23 23:08:17 +00:00
f4c684a1ef
When compiling with FEATURE_MTAB_SUPPORT disabled, the call to erase_mtab() can never be made because useMtab is initialized to 0, and all the other assignments of that variable assign 0 to it. Any compiler that can perform simple constant propogation on local variables will optimize away if statements testing against that variable, thus the call to erase_mtab() will never be made.
Rob Landley
2005-08-23 20:03:17 +00:00
6417564eeb
Two FEATURE_CLEAN_UP patches from Shaun Jackman, closing filehandles.
Rob Landley
2005-08-22 15:57:50 +00:00
d00b3a5e94
Bernhard Fischer provided a mountpoint(1) applet. This is apparently something sysvinit provides, and which is used by the debian init scripts.
Rob Landley
2005-08-20 05:07:08 +00:00
fc3f048f8f
Announce busybox 1.01.
Rob Landley
2005-08-17 01:55:58 +00:00
b8d004631a
Tito (among others) writes: previous patch was wrong, please stop screwing things up
Mike Frysinger
2005-08-17 01:20:10 +00:00
4306bb13f6
When doing 'make release' nuke the .svn directories, not the CVS dirs (since they are no longer present)
Eric Andersen
2005-08-17 00:03:23 +00:00
d3986eb7ec
When doing 'make release' nuke the .svn directories, not the CVS dirs (since they are no longer present)
1_01
Eric Andersen
2005-08-17 00:01:38 +00:00
9e78a1772d
We don't need no stinkin changelog
Eric Andersen
2005-08-16 23:59:17 +00:00
6ebbc7414e
the () around isspace actually matters
Mike Frysinger
2005-08-16 05:39:07 +00:00
1eef0c4571
Bernhard Fischer says: use xmalloc() instead of malloc()
Mike Frysinger
2005-08-16 05:32:42 +00:00
71224980e1
Bernhard Fischer says: fix comment typo
Mike Frysinger
2005-08-16 05:27:51 +00:00
f7c7dde158
Bernhard Fischer writes: fix devfsd usage
Mike Frysinger
2005-08-15 22:13:21 +00:00
c8e2de6e1b
Bernhard Fischer writes: fix devfsd usage
Mike Frysinger
2005-08-15 22:13:21 +00:00
de5fd23f25
If we goto singlemount, do _not_ try to continue through the loop we jumped into. (That means "mount -t ext2 /dev/thingy thingy" would segfault if it failed instead of giving us an error message.)
Rob Landley
2005-08-14 19:26:14 +00:00
830c040f6f
Patch from Stephane Billiart to improve ash error message.
Rob Landley
2005-08-14 19:17:31 +00:00
23246f39ed
Patch from Stephane Billiart to improve ash error message.
Rob Landley
2005-08-14 19:16:51 +00:00
6e98521d68
Stephane Billiart noticed that the return code of the new mount was horked. (Cleaned up the return code path to consistently use numbers so I don't keep confusing EXIT_SUCCESS with TRUE and EXIT_FAILURE with FALSE...)
Rob Landley
2005-08-14 18:46:34 +00:00
045dedad91
A complete rewrite of the README. Probably broke stuff, but it's unlikely to affect the compile, now is it?
Rob Landley
2005-08-14 00:19:32 +00:00
b309ec71c8
Delete the patches directory from 1.0.
Rob Landley
2005-08-13 04:05:50 +00:00
866bad310f
And 10922.
Rob Landley
2005-08-13 03:10:29 +00:00
5e1f2d429d
11043 and 11011
Rob Landley
2005-08-13 02:28:34 +00:00
0be69b1693
More backports: 10957 start-stop-daemon -q 10981, 10982, 10994, 10996, 10997: dumpkmap cleanup 10983: top tweak 11000 traceroute
Rob Landley
2005-08-13 01:22:03 +00:00
c7cba1ae3b
This is published from trunk, remove from 1.0 branch.
Rob Landley
2005-08-13 01:12:49 +00:00
be3dae145f
Makefile related backports: 10945, 10946 Make compile much, much faster. 10923 big makefile change. Nervous. 10946, 10991, 10998, 11003 small makefile fixes.
Rob Landley
2005-08-13 01:10:27 +00:00
6022fc8723
Backport:
Rob Landley
2005-08-13 00:46:00 +00:00
58a651b2e5
Very minor tweak to tail.
Rob Landley
2005-08-13 00:35:00 +00:00
fc455b2101
1.0 backports of:
Rob Landley
2005-08-13 00:26:01 +00:00
365a345e92
Backport 10864 and 10999.
Rob Landley
2005-08-12 06:08:41 +00:00
d5138f44fe
Backport 10853, 10860/10870, and 10862.
Rob Landley
2005-08-12 06:06:54 +00:00
9344d8aa10
And 10873.
Rob Landley
2005-08-12 06:02:30 +00:00
f9bd87b0a7
make sure distclean punts include/bbconfigopts.h
Mike Frysinger
2005-08-11 21:59:52 +00:00
6a6798b8e4
Major rewrite of mount, umount, losetup. Untangled lots of code, shrunk things down a bit, fixed a number of funky corner cases, added support for several new features (things like mount --move, mount --bind, lazy unounts, automatic detection of loop mounts, and so on). Probably broke several other things, but it's fixable. (Bang on it, tell me what doesn't work for you...)
Rob Landley
2005-08-10 20:35:54 +00:00
0b62158475
implemented a builtin echo command in ash. moved the guts of the echo applet into libbb, and now call bb_echo() from both echo.c and ash.c
Paul Fox
2005-08-09 19:38:05 +00:00
3f11b1bf63
commiting: 0000025: vi-editing mode for ash
Paul Fox
2005-08-04 19:04:46 +00:00
8eeb655661
applying jim bauer's patch to eliminate modprobe's dependency on /bin/sh. bug #8. 0000008: modprobe applet is dependent on having a shell
Paul Fox
2005-08-04 18:33:36 +00:00
157e8071be
In bb_config.h, replace AUTOCONF_INCLUDED guard with the more reasonable and obvious (and less side-effect prone in strange build environments) BB_CONFIG_H.
Rob Landley
2005-08-02 10:02:23 +00:00