aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't reset parents context when we encounter an terminator. Fixeskraai2001-05-042-2/+0
| | | | | | | if true; then if true; then true; fi; fi git-svn-id: svn://busybox.net/trunk/busybox@2534 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a buffer overflow. Which accounted for the size of the path, plus the theandersen2001-05-042-2/+2
| | | | | | | | | '/', plus the size of the test command. It did not account for the terminating NULL, which overwrote the end of the string. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2533 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If it fails to run a builtin, let it fall through toandersen2001-05-042-2/+0
| | | | | | | | exec the real thing. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix two bugs reported by Ralph Jones.kraai2001-05-042-6/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A todo update from larry to acknowledge the existance of hushandersen2001-05-031-11/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2527 69ca8d6d-28ef-0310-b511-8ec308f3f277
* devfs does not support creation of regular files. So change theandersen2001-05-032-12/+6
| | | | | | | | test a bit so as to not possibly create a regular file. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove summary header. Not present in GNU or SUSv2.kraai2001-05-032-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2521 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move up waitpid error check so that errno isn't clobbered by tcsetpgrp.kraai2001-05-022-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2519 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Canonicalize path before trying to unmount it.kraai2001-05-022-2/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2518 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug #1108 by always canonicalizing arguments.kraai2001-05-022-26/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2517 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some more job control updates. It will now sucessfully backgroundandersen2001-05-022-92/+148
| | | | | | | | stuff. Good luck getting things back into the foreground though... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't treat newline as pipe separator when processing substitutions.kraai2001-05-022-2/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use .png for images (removing all .gifs) and make them all 90x36andersen2001-05-0211-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2514 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix $(...) construction. Noted and patched by Larry Doolittlekraai2001-05-022-0/+2
| | | | | | | <ldoolitt@recycle.lbl.gov>. I'm just a patch whore. :) git-svn-id: svn://busybox.net/trunk/busybox@2513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* First pass at getting job control working. This gets the infrastructureandersen2001-05-022-26/+284
| | | | | | | | | in place, but something is still missing/wrong in there. Testing with 'grep foo &' seems to put _hush_ into the background. Pondering... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2512 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the current pgrp, not pid, when resetting the foreground process group.kraai2001-05-022-2/+2
| | | | | | | Fixes bizarre suspension when executing `echo`. git-svn-id: svn://busybox.net/trunk/busybox@2511 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't segfault if the first word is the empty string.kraai2001-05-022-4/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2510 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another update from Larry:andersen2001-05-022-34/+38
| | | | | | | | Makes hush return code equal to that of the last command executed. Fixes the mode where input comes from a file. git-svn-id: svn://busybox.net/trunk/busybox@2509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Skip headers with empty filenames, rather than stopping.kraai2001-05-012-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another refinement, this time from Larry.andersen2001-05-012-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2504 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Argh. Now we break non-pristine builds. Check a bit more carefully.andersen2001-05-012-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2503 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. The dangers of applying patches by hand...andersen2001-05-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2502 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another hush update from Larry:andersen2001-05-012-10/+26
| | | | | | | | | | | | | | | | | Minor improvements. Something is still broken with running scripts via "hush filename". All the following are now handled acceptably (matches ash, not bash). if true; then echo foo1; fi if true; then echo foo2; fi if true; false; then echo bar; else echo foo3; fi if true || false; then echo foo4; fi - Larry git-svn-id: svn://busybox.net/trunk/busybox@2500 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Larry to fix pristine source builds (again).andersen2001-05-013-3/+3
| | | | | | | I just can't seem to _not_ break it. Sigh. git-svn-id: svn://busybox.net/trunk/busybox@2499 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some more hush.c updates from Larry Doolittle.andersen2001-04-302-26/+92
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2497 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. I was a bit too hasty and also changed applet_name.andersen2001-04-302-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2496 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Made new xreadlink function for libbb and changed applets to use it instead ofmarkw2001-04-3013-90/+77
| | | | | | | readlink(2). git-svn-id: svn://busybox.net/trunk/busybox@2495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* These messages can be .rodata, so make them even more const.andersen2001-04-303-38/+38
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* These do not need initial values. Let them live in the bss.andersen2001-04-304-6/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2493 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per suggestion by Matt, make sh.c a real target. There is noandersen2001-04-301-4/+4
| | | | | | | | need for the useless sh_link dummy target -- use the real thing. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2492 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix user permissions of copied directories.kraai2001-04-301-1/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2491 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify permission handling for FIFOs.kraai2001-04-301-12/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2490 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix exit status when there is an error copying a file.kraai2001-04-301-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Logic reversal for last_char_isbug12001-04-292-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix to applet_source_list rule so Debian package continues to builddwhedon2001-04-281-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2487 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Matt was complaining. Hopefully this helps the sh.c link situationandersen2001-04-271-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Terminate source correctly when copying symlink. Report and patch bykraai2001-04-271-2/+3
| | | | | | | Brian Webb <webbb@desertscenes.net>. git-svn-id: svn://busybox.net/trunk/busybox@2478 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use BUFSIZ for the_command to match size used in cmdeditandersen2001-04-272-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2475 69ca8d6d-28ef-0310-b511-8ec308f3f277
* An update to hush from Larry:andersen2001-04-272-188/+40
| | | | | | | | | | | | | | It should recover more smoothly from syntax errors, and it now has a decent guess when the reserved word construct is over (or not) to control execution and prompting. I took out all the redundant standalone test copies of libbb routines, but left in a hook so I can include those for my testing. I'll post that include file on my web site. - Larry git-svn-id: svn://busybox.net/trunk/busybox@2474 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be a bit more sneaky about the sh.c symlink so you don't need toandersen2001-04-261-2/+4
| | | | | | | | do a mke clean for it to happen. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2468 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Ignore some generated filesandersen2001-04-262-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2467 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is the initial checkin of Larry Doolittle's hush.c, using hisandersen2001-04-264-1935/+4383
| | | | | | | | | | | | | | | April 25, 2001 snapshot, adjusted a bit by me so it has cmdedit support. This checkin also removes sh.c. In the future sh.c will be a symlink to your shell of choice. For now, this symlink will default to pointing to lash.c (as in the past). If you change the symlink to point to hush.c, then thats what you will get. This symlink business is a temporary situation, which will be cleaned up Real Soon Now(tm). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Disable lashandersen2001-04-264-0/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2465 69ca8d6d-28ef-0310-b511-8ec308f3f277
* These days busybox.pod is autogenerated, so it should be removedandersen2001-04-261-2549/+0
| | | | | | | from CVS. git-svn-id: svn://busybox.net/trunk/busybox@2464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A fix from Larry for a corner case where insmod could end upandersen2001-04-262-6/+16
| | | | | | | doing an xrealloc(0). git-svn-id: svn://busybox.net/trunk/busybox@2463 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of permission addition and removal (e.g., o-r).kraai2001-04-262-18/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2461 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doh. I never allocated storate for the struct stat I am using.andersen2001-04-262-6/+6
| | | | | | | | There was just a never initialized pointer. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2460 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of -R flag.kraai2001-04-266-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2459 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another nice cleanup from Larry. This adds a new last_char_is() function andandersen2001-04-2612-11/+46
| | | | | | | | | uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2450 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As Larry pointed out, this the off by one canbe fixed much more elegantly.andersen2001-04-266-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2449 69ca8d6d-28ef-0310-b511-8ec308f3f277