aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Now that "make sizes" is in, the faq should mention it...landley2005-09-051-12/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11328 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the warnings, and fix the following two obvious segfaults:landley2005-09-051-10/+7
| | | | | | | | | | | | | | ./busybox getopt -n one -n two woot ./busybox getopt -o one -o two woot This entire applet is still an enormous pile of garbage, which I can't clean up because I really have no idea what it's for. (Both "man getopt" and trying it out on the command line a bit fail to enlighten me. Reading the code, the fact half of it seems to be special cases for bash vs tcsh does not fill me with confidence.) git-svn-id: svn://busybox.net/trunk/busybox@11326 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Actually returning ret might be good.landley2005-09-051-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixes so "make allnoconfig" works again.landley2005-09-053-149/+137
| | | | | | | | | | | | | | | | | | | | | | | | | The configure system's save function edited out sub-menus that wouldn't be displayed in the current configuration, meaning config.h wouldn't have #udef entries for those symbols, meaning bb_config.h would have the relevant ENABLE_ missing instead of defined to 0. This broke the build. So I fixed it, and then reorganized the applets.c and busybox.c to take away the warnings this revealed (code that would be optimized out was making calls to functions that hadn't been prototyped. So I added an #else case to those #ifdefs to #define the relevant functions to empty macros to placate the warnings. I also reorganized the applets.c code to make adding such an #else case less of a pain (and make the need for prototyping go away by moving the functions up before they were used, and generally wind up with fewer #ifdefs in the code by putting all the logic in one place). This resulted in a huge seeming patch, when most if it just moves code from one place to another without touching it... Upside: make allyesconfig and make allnoconfig should both work now. git-svn-id: svn://busybox.net/trunk/busybox@11324 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing crud from busybox.tests. (Sleep deprivation strikes again...)landley2005-09-041-75/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* General cleanup of command line parsing to allow "busybox" to work as a prefix.landley2005-09-045-127/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (I.E. any argv[0] that starts with "busybox" winds up in busybox_main().) Added testing/busybox.tests which tests the following permutations: ./busybox ./busybox-suffix ./busybox cat ./busybox-suffix cat ./busybox --help ./busybox-suffix --help ./busybox --help cat ./busybox-suffix --help cat ./busybox --help unknown ./busybox-suffix --help unknown ./unknown Also repair the test suite so ./runtest calls the ".tests" scripts properly. Note: you can now go "busybox busybox busbox ls -l" and it'll take it. The new code is pretty generic. I can block that if anybody can come up with a good reason to... git-svn-id: svn://busybox.net/trunk/busybox@11322 69ca8d6d-28ef-0310-b511-8ec308f3f277
* touchup some grammar, formatting, and remove some outdated notesvapier2005-09-021-12/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11318 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update the verbage describing what is needed for developer accessandersen2005-09-021-3/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This goes along with the new testsuite code...landley2005-09-023-12/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11314 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Working on a new test harness. Moved the sort tests into it.landley2005-09-024-1/+143
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11313 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Missing break was screwing up 'y//' command. Bug #248.landley2005-09-021-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11312 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for bug 383: attempting to "tar c /" would error out because strippinglandley2005-09-011-1/+1
| | | | | | | trailing / turns that into an empty string. git-svn-id: svn://busybox.net/trunk/busybox@11311 69ca8d6d-28ef-0310-b511-8ec308f3f277
* According to bug #63, crond is unhappy with crontab lines that don't end in alandley2005-09-012-8/+10
| | | | | | | newline, or lines that have trailing spaces. git-svn-id: svn://busybox.net/trunk/busybox@11310 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tracking system but #4: php needs the environment variable SCRIPT_FILENAME.landley2005-09-011-1/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11309 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer trimmed down dos2unix a bit.landley2005-09-011-45/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11308 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch -i support from Berhnard Fischer.landley2005-09-013-14/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer suggested that get_terminal_width_height() should returnlandley2005-09-012-23/+8
| | | | | | | | | 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...) git-svn-id: svn://busybox.net/trunk/busybox@11306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Off by one error in max_leases sanity check. Bug 349, apparently.landley2005-09-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer sent a patch to make "make sizes" work when building inlandley2005-09-011-2/+3
| | | | | | | another output directory. git-svn-id: svn://busybox.net/trunk/busybox@11304 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Busybox should only multiplex based on argv[1] when it's called as "busybox".landley2005-09-011-4/+0
| | | | | | | | | | | | | | | 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. (You also get the wrong behavior; it tries to use argv[1] as the command name just like busybox does for _any_ unknown, and although I doubt "echo rm -rf *" is common usage there's no upside and enough downside to make me nervous.) This fixes it. git-svn-id: svn://busybox.net/trunk/busybox@11301 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Anand Avati hit an integer overflow problem in our unzip code.landley2005-08-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11299 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't comment warnings, _FIX_ warnings. (And putting in #warnings aboutlandley2005-08-301-48/+22
| | | | | | | | | other warnings is just gross.) On a side note, while I was there, I made the code slightly smaller. git-svn-id: svn://busybox.net/trunk/busybox@11292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Why have a separate CONFIG_INIT_SWAPON when we already have CONFIG_SWAPONOFF?landley2005-08-302-72/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11291 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug system entry #1 says that when busybox doesn't have swapoff,landley2005-08-301-3/+1
| | | | | | | init shouldn't call swapoff. git-svn-id: svn://busybox.net/trunk/busybox@11290 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Amir Shalem found some bugs in the new mount code; unknown options didn't getlandley2005-08-301-2/+4
| | | | | | | | | 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). git-svn-id: svn://busybox.net/trunk/busybox@11289 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dirk Clemens pointed out how easy it is to support bzip2 compression, since welandley2005-08-301-18/+15
| | | | | | | shell out to an external program to handle gzip anyway... git-svn-id: svn://busybox.net/trunk/busybox@11284 69ca8d6d-28ef-0310-b511-8ec308f3f277
* point to busybox.netandersen2005-08-281-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11277 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dumb little hack, "make sizes". Try it.landley2005-08-281-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11276 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure __NF_sysfs exists before trying to use itvapier2005-08-271-0/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* some portability fixes by rmh in Bug 395vapier2005-08-272-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11266 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer submitted a couple of Makefile patches:landley2005-08-243-12/+14
| | | | | | | | | | - Fix building out-of-tree - remove duplicate rule in toplevel Makefile - peruse make's builtin notion of `dirname $@' git-svn-id: svn://busybox.net/trunk/busybox@11234 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove something we did, not that I'm doing something, and add something welandley2005-08-231-3/+5
| | | | | | | haven't done. Woo. git-svn-id: svn://busybox.net/trunk/busybox@11232 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When compiling with FEATURE_MTAB_SUPPORT disabled, the call to erase_mtab()landley2005-08-231-1/+3
| | | | | | | | | | | | | | | | 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. When compiling for arm using gcc 3.3.3 with FEATURE_MTAB_SUPPORT disabled, the linker complains that it can't find erase_mtab(). The arm optimizer isn't exactly the brightest member of the family, and apparently needs to be hit over the head with a hammer to get its' attention... git-svn-id: svn://busybox.net/trunk/busybox@11231 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Two FEATURE_CLEAN_UP patches from Shaun Jackman, closing filehandles.landley2005-08-222-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11224 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer provided a mountpoint(1) applet. This is apparently somethinglandley2005-08-205-0/+94
| | | | | | | sysvinit provides, and which is used by the debian init scripts. git-svn-id: svn://busybox.net/trunk/busybox@11219 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Announce busybox 1.01.landley2005-08-171-0/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11179 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito (among others) writes: previous patch was wrong, please stop screwing ↵vapier2005-08-171-2/+2
| | | | | | things up git-svn-id: svn://busybox.net/trunk/busybox@11178 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When doing 'make release' nuke the .svn directories, not theandersen2005-08-171-1/+1
| | | | | | | CVS dirs (since they are no longer present) git-svn-id: svn://busybox.net/trunk/busybox@11174 69ca8d6d-28ef-0310-b511-8ec308f3f277
* the () around isspace actually mattersvapier2005-08-161-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer says: use xmalloc() instead of malloc()vapier2005-08-163-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11168 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer says: fix comment typovapier2005-08-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer writes: fix devfsd usagevapier2005-08-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11164 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If we goto singlemount, do _not_ try to continue through the loop we jumpedlandley2005-08-141-1/+1
| | | | | | | | into. (That means "mount -t ext2 /dev/thingy thingy" would segfault if it failed instead of giving us an error message.) git-svn-id: svn://busybox.net/trunk/busybox@11150 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Stephane Billiart to improve ash error message.landley2005-08-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11148 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stephane Billiart noticed that the return code of the new mount was horked.landley2005-08-141-4/+4
| | | | | | | | (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...) git-svn-id: svn://busybox.net/trunk/busybox@11147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Very minor tweak to tail.landley2005-08-131-4/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11128 69ca8d6d-28ef-0310-b511-8ec308f3f277
* err, make sure we edit the correct ignore propertyvapier2005-08-110-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11112 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure distclean punts include/bbconfigopts.hvapier2005-08-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11111 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ignore the auto-generated bb config header filesvapier2005-08-110-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11110 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunklandley2005-08-1012-922/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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...) Note: you no longer need to say "-o loop". It does that for you when necessary. Still need to add "user mount" support, which involves making mount suid. Not too hard to do under the new infrastructure, just haven't done it yet... The previous code had the following notes, that belong in the version control comments: - * 3/21/1999 Charles P. Wright <cpwright@cpwright.com> - * searches through fstab when -a is passed - * will try mounting stuff with all fses when passed -t auto - * - * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab. - * - * 1999-10-07 Erik Andersen <andersen@codepoet.org>. - * Rewrite of a lot of code. Removed mtab usage (I plan on - * putting it back as a compile-time option some time), - * major adjustments to option parsing, and some serious - * dieting all around. - * - * 1999-11-06 mtab support is back - andersee - * - * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's - * mount to add loop support. - * - * 2000-04-30 Dave Cinege <dcinege@psychosis.com> - * Rewrote fstab while loop and lower mount section. Can now do - * single mounts from fstab. Can override fstab options for single - * mount. Common mount_one call for single mounts and 'all'. Fixed - * mtab updating and stale entries. Removed 'remount' default. - * git-svn-id: svn://busybox.net/trunk/busybox@11099 69ca8d6d-28ef-0310-b511-8ec308f3f277