aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Gernot Poerner <gp@it-netservice.de>. Adds inandersen2001-05-215-3/+10
| | | | | | | mount bind support. git-svn-id: svn://busybox.net/trunk/busybox@2680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix open mode for IOCTLs which write to the tape.kraai2001-05-212-4/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2678 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is a patch from Vladimir:andersen2001-05-192-396/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > I rewrite *local_variable* function in hush.c with: > 1) remove many memory leaks > 2) add support read_only protect (require write builtin function for set this, > I write this special for variable HUSH_VERION=0.01) > 3) commad read set only local variable now > 4) remove many error messages if "set unset export" not defined variable > (bash syntax not put and set error code). Hmm, if I set result to -1, you hush > called waitpid and returned with error "no waitpid" ( i not found place this > error). > 5) destroy error in new version check xgetcwd()==NULL and set "(unknow)" - > this have error: crashe in next call `pwd`, but xgetcwd(not null) called > free(arg). > 6) next add integraion with libbb Valdimir's patch missed two cases of local variable handling FOO=bar export FOO=baz unset FOO and export FOO=bar FOO=baz which were working before, so I fixed those two cases. git-svn-id: svn://busybox.net/trunk/busybox@2677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix an escape problem in the docs. Some \n's didn't have the '\'andersen2001-05-183-6/+6
| | | | | | | | escaped, and so were messsing the out output. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2676 69ca8d6d-28ef-0310-b511-8ec308f3f277
* (Almost) brand-new version of cut that supports muitiple lists of positions,markw2001-05-182-218/+462
| | | | | | | per feature request from Tom Oehser. git-svn-id: svn://busybox.net/trunk/busybox@2675 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.kraai2001-05-182-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote copyfd to use library functions, terminate, and copy correct data.kraai2001-05-183-26/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix applet_name.kraai2001-05-172-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2671 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Switch from hstrerror to herror for libc5 systems.kraai2001-05-171-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused function. If necessary, we can use remove_file instead.kraai2001-05-172-62/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix invocation of builtin shell to have proper argc and argv.kraai2001-05-172-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2665 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always print a newline after a matching substitution.kraai2001-05-172-12/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out job control in both hush and lash was broken by theandersen2001-05-174-20/+52
| | | | | | | | | signal handling in cmdedit.c. Disabling it makes the shells behave themselves again. hush isn't quite there, but is getting close... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove/replace the "div" call.andersen2001-05-162-10/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2657 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing include, noted by Larry Doolittle.kraai2001-05-161-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whoops. Forgot the x.kraai2001-05-162-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add xgethostbyname and herror_msg* functions.kraai2001-05-1625-96/+236
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.ckraai2001-05-1622-36/+36
| | | | | | | by Larry Doolittle. git-svn-id: svn://busybox.net/trunk/busybox@2653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move init of a bunch of globals into main so we are at leastandersen2001-05-162-14/+32
| | | | | | | | a bit more reentrant. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2652 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the behavior of local shell variables to match that of bash and ash.andersen2001-05-152-50/+218
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2651 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Suggestion from Larry: no format string, use fputs instead.andersen2001-05-152-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Adam Heath <doogie@debian.org> to add arbitrary header supportandersen2001-05-155-9/+79
| | | | | | | to wget, so it can now do funky interactive things with cgi scripts. git-svn-id: svn://busybox.net/trunk/busybox@2649 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Adam Heath <doogie@debian.org>, makes print_fileandersen2001-05-155-6/+72
| | | | | | | (used by cat, grep, sed, etc) quite a bit faster. git-svn-id: svn://busybox.net/trunk/busybox@2648 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir:andersen2001-05-1512-68/+70
| | | | | | | | | | 1) fixed a bug that could crash df, mount, and umount applets if the root device name was longer then the word "root" (/dev/loop1 vs /dev/root) - 2) severl functions needed static declaration in the umount applet 3) update declaration for function in last_char_is() in libbb git-svn-id: svn://busybox.net/trunk/busybox@2647 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. I left in some debug noise.andersen2001-05-152-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2646 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Write set_local_var() and fixup lookup_param() so you can now useandersen2001-05-152-8/+202
| | | | | | | | shell local variables. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2645 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch covers one big part of variable handling.andersen2001-05-152-10/+98
| | | | | | | | | | | | | | | | | | $ a=b foo should be handled correctly. $ a=b is parsed OK, but the actual variable setting is not yet written. Except for some weird exceptions related to quoting rules, this code passes (matches ash behavior) all the tests I threw at it. If someone now writes set_local_var(), and updates lookup_param() to match, we can claim success! - Larry git-svn-id: svn://busybox.net/trunk/busybox@2644 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix incorrect length passed to accept noted by Larry Doolittle.kraai2001-05-152-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2643 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added some testcases for grep and sed (many more could still be added)markw2001-05-141-0/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ...Need to print just a few more newlines.markw2001-05-142-4/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2641 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A compromise solution for insmodandersen2001-05-142-8/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2640 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ...And now that we're chomping lines, we need to re-add the newline later...markw2001-05-142-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2639 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.markw2001-05-142-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2638 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a subtle bug in the handling of -l and -c flags.markw2001-05-142-38/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2637 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will workmarkw2001-05-142-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2636 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Follow symbolic links when searching for modules.kraai2001-05-142-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2635 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per suggestion from Vladimir, eliminate check_wildcard_match(), whichandersen2001-05-146-234/+97
| | | | | | | | | | | | | | was only being used by insmod these days. Also, I spent a minute adjusting insmod so that it first searches /lib/modules/`uname -r` and then (if that fails) searches /lib/modules, which makes bb insmod behave much more like the real insmod, and should avoid nasty surprises (such as the recent "Modutils vs. Busybox..." thread). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2634 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing periods and delete superfluous whitespace.kraai2001-05-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2633 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not ever change permissions on existing directories, onlyandersen2001-05-132-4/+12
| | | | | | | | | | on directories we created while extracting a tarball. Fix based on bug report and patch from Konstantin Boldyshev <konst@linuxassembly.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@2632 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When doing a 'wget -O -' turn on the quiet flag, lest the status barandersen2001-05-132-2/+4
| | | | | | | | noise get mingled with the retrieved webpage. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2631 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Aaron Lehmann <aaronl@vitelus.com> to fix aandersen2001-05-132-2/+18
| | | | | | | crash on a broken regexp. git-svn-id: svn://busybox.net/trunk/busybox@2630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make the locale stuff only do the getpid==1 check if BB_INIT is definedandersen2001-05-132-2/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2629 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for 'r' command in sed.markw2001-05-112-20/+146
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2621 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some silly warningsandersen2001-05-114-12/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2614 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a segfault in lash, hush, and cmdedit. Each of these usedandersen2001-05-1110-5/+40
| | | | | | | | | xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use xgetcwdandersen2001-05-112-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2612 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the chown usage text, also thanks to Lars Kellogg-Stedman ↵andersen2001-05-113-6/+9
| | | | | | <lars@larsshack.org> git-svn-id: svn://busybox.net/trunk/busybox@2611 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Lars Kellogg-Stedman, fixes the behavior ofandersen2001-05-112-6/+22
| | | | | | | | | | chown to be consistant with GNU chown, so that it follows symlinks (who cares about the perms on a link anyways?) unless the -h option is supplied. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2606 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check that putenv succeeded, suggested by Jonas Holmberg.kraai2001-05-112-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2605 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix env usage information.kraai2001-05-113-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2604 69ca8d6d-28ef-0310-b511-8ec308f3f277