aboutsummaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patch from awk maintainer (Dmitry Zakhrov) to fix bugs 642, 663, and 667.landley2006-02-141-5/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14013 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make the build system puuuuuuuuuuurtyvapier2006-02-021-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13793 69ca8d6d-28ef-0310-b511-8ec308f3f277
* changed strange mix signed<->unsignedvodz2006-01-311-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13750 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix up yet more annoying signed/unsigned and mixed type errorsandersen2006-01-301-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* clean up yet more annoying signed/unsigned mismatches and fixupandersen2006-01-301-1/+1
| | | | | | | yet more incorrect types git-svn-id: svn://busybox.net/trunk/busybox@13725 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed warning "comparison between signed and unsigned". Added ↵vodz2006-01-301-8/+7
| | | | | | ATTRIBUTE_UNUSED. Whitespace git-svn-id: svn://busybox.net/trunk/busybox@13708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-252-14/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-221-16/+3
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shared libbusybox.aldot2006-01-151-3/+6
| | | | | | | | - IMA compilation option (aka IPO, IPA,..) Please holler if i broke something.. git-svn-id: svn://busybox.net/trunk/busybox@13346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug 112, return value of awk should be /256. In reality, we should probablylandley2006-01-091-1/+1
| | | | | | | | | be using WEXITSTATUS(), but until I can figure out why the heck that would want to do (*(int *) &(status)) on the value, I'm happy just fixing the bug we actually see. git-svn-id: svn://busybox.net/trunk/busybox@13198 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix bug #474:pgf2005-11-281-14/+3
| | | | | | | | | | | | | | | | 0000474: vi crashes often problem was that the buffer used for "." command ("last_modifying_cmd") wasn't being maintined correctly -- the recording code was walking back over the front of that buffer when a repeatable insert command included backspacing (e.g. "i\b\b\bfoo"). the fix is to simply record the backspaces along with the rest of the command. also, cleaned up start_new_cmd_q() slightly. git-svn-id: svn://busybox.net/trunk/busybox@12559 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support # comments after s/// option list.landley2005-11-201-32/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12441 69ca8d6d-28ef-0310-b511-8ec308f3f277
* \0 is a synonym for &. Our own "make allbaseconfig" breaks without this.landley2005-10-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12076 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - correct boilerplatealdot2005-10-271-2/+2
| | | | | | | - use bb_xgetlarg for the patch_level to catch invalid arguments. git-svn-id: svn://busybox.net/trunk/busybox@11927 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more const, attribute_noreturn saved 200 bytesvodz2005-10-191-24/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - consume space between functionname and opening bracketsaldot2005-10-171-1/+2
| | | | | | | Fixes Rob's issue using busybox awk for building gcc-4_0 optionlist (http://busybox.net/lists/busybox/2005-October/016659.html) git-svn-id: svn://busybox.net/trunk/busybox@11883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* common BUFSIZ BSS buffer, small reduce code, data and bssvodz2005-10-151-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - do not use bb_xgetularg10_bnd as a lower value of -1 doesn't work due to lowealdot2005-10-101-20/+6
| | | | | | | | | being unsigned. - minor correction: use stdin only when no file was given via -i. - use shorter boilerplate. git-svn-id: svn://busybox.net/trunk/busybox@11824 69ca8d6d-28ef-0310-b511-8ec308f3f277
* catch and report errors from file_write()pgf2005-10-091-15/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make Hit_Return() available when CONFIG_FEATURE_VI_COLON is off. it'spgf2005-10-091-2/+3
| | | | | | | needed elsewhere as well now. git-svn-id: svn://busybox.net/trunk/busybox@11816 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change strange depend to libbb.h, but require busybox.hvodz2005-10-061-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11791 69ca8d6d-28ef-0310-b511-8ec308f3f277
* as pointed out in Bug 17, use uint32_t instead of unsigned long since the ↵vapier2005-09-271-20/+20
| | | | | | code expects the size of the info variables to be 32bits and sizeof(long) on 64bit hosts is not 32bits git-svn-id: svn://busybox.net/trunk/busybox@11661 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eat misappropriated whitespacevapier2005-09-271-66/+66
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uncuddle function scope bracketsvapier2005-09-271-116/+116
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11658 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use the shorter license headervapier2005-09-241-15/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use brief license linevapier2005-09-241-15/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11618 69ca8d6d-28ef-0310-b511-8ec308f3f277
* initialize a couple of vars whose warnings were suppressed becausepgf2005-09-161-1/+1
| | | | | | | i was building w/ debug on before, which suppresses optimization. git-svn-id: svn://busybox.net/trunk/busybox@11479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* some combinations of status line and screen refresh don't give apgf2005-09-161-76/+112
| | | | | | | | | | | | | | | | | | | | correct screen, and bug 215 reports trouble with the status line on small screens. with this change a) the status line should always be refreshed properly, b) the status line is a little shorter than it used to be ("I" instead of "--INSERT--"), c) the status line will be truncated if it doesn't fit on the screen, and d) if the screen is too narrow for an error or transient status message (from psb() or psbs()), then that message will be followed by a "Hit Return" prompt. (it wasn't until i did this last bit that the size grew. with this, these changes add about 150 bytes.) - pgf git-svn-id: svn://busybox.net/trunk/busybox@11477 69ca8d6d-28ef-0310-b511-8ec308f3f277
* split libbb: moved xregcomp separatelly for speed up recompilevodz2005-09-142-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed strange extern void xregcomp(... from some applets, but declared ↵vodz2005-09-141-1/+0
| | | | | | from libbb.h git-svn-id: svn://busybox.net/trunk/busybox@11463 69ca8d6d-28ef-0310-b511-8ec308f3f277
* allow either backspace or DEL, in addition to the user's erasepgf2005-09-131-1/+2
| | | | | | | char, to be used in get_input_line() git-svn-id: svn://busybox.net/trunk/busybox@11451 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
* Patch -i support from Berhnard Fischer.landley2005-09-011-9/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use toplevel ARFLAGS and update default ARFLAGS to be quietvapier2005-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-201-0/+1
| | | | | | | | 0000118: vi join command does not mark file as modified for certain lines. git-svn-id: svn://busybox.net/trunk/busybox@10873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* allow both ^H and DEL to backspace in insert mode (bug #23)pgf2005-07-181-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10851 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix vi so that error messages, insert mode messages, etc areandersen2005-07-181-12/+37
| | | | | | | all actually displayed in the status line as expected git-svn-id: svn://busybox.net/trunk/busybox@10849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov:landley2005-06-071-2/+1
| | | | | | | | | | | | | | | | | | Charlie Brady wrote: > Here's another awk parsing problem - unary post increment - pre is fine: > >bash-2.05a$ echo 2,3 | gawk -F , '{ $2++ }' >bash-2.05a$ echo 2,3 | /tmp/busybox/busybox awk -F , '{ $2++ }' >awk: cmd. line:1: Unexpected token > Here's a fix for this. There is another problem with constructions like "print (A+B) ++C", I don't know whether somebody uses such constructions (fixing both these problems would require very serious change in awk code). git-svn-id: svn://busybox.net/trunk/busybox@10478 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Colin Watson (mangled slightly by Rob Landley):landley2005-05-181-6/+10
| | | | | | | | | | | | | This patch implements the 'T' command in sed. This is a GNU extension, but one of the udev hotplug scripts uses it, so I need it in busybox anyway. Includes a test; 'svn add testsuite/sed/sed-branch-conditional-inverted' after applying. git-svn-id: svn://busybox.net/trunk/busybox@10347 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doug Swarin pointed out a security bug in the -i option of sed.landley2005-05-181-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the permissions on the temp file are correct to prevent it from being maliciously mangled by passing strangers, (created with 600, opened O_EXCL, etc), the permissions on the _directory_ might not be, and we re-open the file to convert the filehandle to a FILE * (and automatically get an error message and exit if the directory's read-only or out of space or some such). This opens a potential race condition if somebody's using dnotify on the directory, deletes/renames the tempfile, and drops a symlink or something there. Somebody running sed -i as root in a world writeable directory could do damage. I dug up notes on an earlier discussion where we looked at the security implications of this (unfortunately on the #uclibc channel rather than email; I don't have a transcript, just notes-to-self) which pointed out that if the permissions on the directory allow other people's files to be deleted/renamed then the original file is vulnerable to sabotage anyway. However, there are two cases that discussion apparently didn't take into account: 1) Using another user's permissions to damage files in other directories you can't access (standard symlink attack). 2) Reading data another user couldn't otherwise access by having the new file belong to that other user. This patch uses fdopen to convert the filehandle into a FILE *, rather than reopening the file. git-svn-id: svn://busybox.net/trunk/busybox@10346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-161-12/+12
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In Bug 208, bernhardf writes:vapier2005-04-161-6/+6
| | | | | | | | | On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure. git-svn-id: svn://busybox.net/trunk/busybox@10113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Hiroshi found another bug. Currently sed's $ triggers at end of every file,landley2004-11-251-28/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | and with multiple files SuSv3 says it should only trigger at the end of the LAST file. The trivial fix I tried first broke if the last file is empty. Fixing this properly required restructuring things to create a file list (actually a FILE * list), and then processing it all in one go. (There's probably a smaller way to do this, merging with append_list perhaps. But let's get the behavior correct first.) Note that editing files in place (-i) needs the _old_ behavior, with $ triggering at the end of each file. Here's a test of all the things this patch fixed. gnu and busybox seds produce the same results with this patch, and different without it. echo -n -e "1one\n1two\n1three" > ../test1 echo -n > ../test2 echo -e "3one\n3two\n3three" > ../test3 sed -n "$ p" ../test1 ../test2 ../test3 sed -n "$ p" ../test1 ../test2 sed -i -n "$ p" ../test1 ../test2 ../test3 git-svn-id: svn://busybox.net/trunk/busybox@9530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Hiroshi Ito found some bugs. The 'c' command (cut and paste) was hardwiredlandley2004-10-301-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | to not put a newline at the end (which was backwards, it should have been hardwired _to_ put a newline at the end, whether or not the input line ended with a newline). Test case for that: echo | sed -e '$ctest' And then this would segfault: echo | sed -e 'g' Because pattern_space got freed but the dead pointer was only overwritten in an if statement that didn't trigger if the hold space was empty. Oops. While debugging it, I found out that the hold space is persistent between multiple input files, so I promoted it to a global and added it to the memory cleanup. The relevant test case (to compare with That Other Sed) is: echo -n woo > woo sed -e h -e g woo echo "fish" | sed -e '/woo/h' -e "izap" -e 's/woo/thingy/' -e '/fish/g' woo - And somebody gratuitously stuck in a c99 int8_t type for something that's just a flag, so I grouped the darn ints. git-svn-id: svn://busybox.net/trunk/busybox@9486 69ca8d6d-28ef-0310-b511-8ec308f3f277
* egor duda writes:andersen2004-10-082-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor git-svn-id: svn://busybox.net/trunk/busybox@9320 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov to fix a bug triggered by freeswan's scripts.bug12004-09-241-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9277 69ca8d6d-28ef-0310-b511-8ec308f3f277
* regularly update the status line displayandersen2004-08-191-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@9131 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simon Poole reports that awk segfaults when environment variablesandersen2004-07-301-0/+4
| | | | | | | | | | | | | | with no value exist, i.e. $ export BOB='' % ./busybox awk Segmentation fault This patch teaches awk to not blow chunks on empty env variables. -Erik git-svn-id: svn://busybox.net/trunk/busybox@9054 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov to fix a bug discovered via the freeswapbug12004-07-231-0/+1
| | | | | | | script. git-svn-id: svn://busybox.net/trunk/busybox@9006 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Assign 'forced' before the goto to avoid a warningandersen2004-07-201-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8971 69ca8d6d-28ef-0310-b511-8ec308f3f277