summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* argc has already been decrementedGlenn L McGrath2003-10-031-2/+3
|
* Patch from Rob Landley, Simplify organisation of arguments.Glenn L McGrath2003-10-031-13/+2
|
* Fix -C option when creating tar files.Glenn L McGrath2003-10-021-30/+37
| | | | | | | | Need to chdir after the tar file is opened, so make common tar filename parsing and send the file descriptor rather than filename to writeTarFile. Modify the verboseFlag operation to determine wether to display on stderr or stdout at display time, simpler than doing it in tar_main.
* Thomas Lundquist, update for current structureGlenn L McGrath2003-10-011-11/+20
|
* Patch from Rob Landley to fix backrefsGlenn L McGrath2003-10-011-1/+1
|
* Patch by Rob Landley, fix "newline after edit command"Glenn L McGrath2003-10-011-2/+3
|
* Patch by Rob Landley, work in progress update, fixes lots of bugs,Glenn L McGrath2003-10-013-803/+680
| | | | introduces a few others (but they are being worked on)
* Patch by Guillaume MorinGlenn L McGrath2003-09-261-5/+13
| | | | | Fix two race conditions, as described at. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=212764
* Patch from Fillod Stephane Glenn L McGrath2003-09-261-18/+68
| | | | | | | Add follow mode to logread, ala "tail -f /var/log/messages" Note: output to a slow serial terminal can have side effects on syslog because of the semaphore. In such case, define RC_LOGREAD.
* add size parameter to syslogd -CGlenn L McGrath2003-09-261-5/+10
| | | | Patch by Padraig, resubmitted by Fillod Stephane
* Patch by Fillod Stephane, declare variables as static to not clobberGlenn L McGrath2003-09-261-20/+20
| | | | busybox namespace
* Use a variable for the config files, makes it easier to syncronise withGlenn L McGrath2003-09-241-10/+13
| | | | debian builds
* Syncronise with debian busybox-cvs packageGlenn L McGrath2003-09-249-37/+887
|
* Fix some typo's, remove some extra free statementsGlenn L McGrath2003-09-241-4/+2
|
* Add the -d optionGlenn L McGrath2003-09-241-1/+31
|
* Add the "install" applet, move get_ug_id to libbb as its used by chown,Glenn L McGrath2003-09-2410-18/+155
| | | | chgrp and install.
* Patch by Steinar H. Gunderson to fix debian bug #211675.Glenn L McGrath2003-09-201-1/+1
| | | | | Linking to my_getgrnam from libpwdgrp wasnt working, instead it was trying to use functionality from glibc, which pulled in libnss.
* Patch by Junio C Hamano to workaround a gcc compiler bug.Glenn L McGrath2003-09-171-22/+23
| | | | | | | | | | | | | | | | | | | The construct certain vintages of GCC (the one I have trouble with is 3.2.3) have trouble with looks like the following: static struct st a; static struct st *p = &a; struct st { int foo; }; static void init(void) { a.foo = 0; } The problem disappears if we move the struct declaration up to let the compiler know the shape of the struct before the first definition uses it, like this: struct st { int foo; }; /* this has been moved up */ static struct st a; static struct st *p = &a; static void init(void) { a.foo = 0; }
* Configuration option to define wether to follows GNU sed's behaviour Glenn L McGrath2003-09-165-29/+70
| | | | | or the posix standard. Put the cleanup code back the way it was.
* Fix a bug that creapt in recently with substitution subprinting, and addGlenn L McGrath2003-09-162-3/+11
| | | | a test for it.
* Compile get_terminal_width_heightGlenn L McGrath2003-09-161-7/+8
|
* Patch from Stephane Billiart to fix an unused variable warning.Glenn L McGrath2003-09-151-1/+3
|
* Patch from Bastian Blank to fix a problem when runing find under ash.Glenn L McGrath2003-09-151-3/+3
| | | | | | | | | | "If the shell is compiled with -DJOBS, this is all fine -- find wasn't stopped (it was killed), so it correctly uses WTERMSIG instead of WSTOPSIG. However, if the shell _isn't_ compiled with -DJOBS (which it isn't in d-i), only WSTOPSIG is used, which extracts the high byte instead of the low byte from the status code. Since the status code is 13 (SIGPIPE), "st" suddenly gets the value 0, which is equivalent to SIGEXIT. Thus, ash prints out "EXIT" on find's exit."
* Patch from Tito, Reduces the size of busybox's strings applet from 1900 toGlenn L McGrath2003-09-151-12/+11
| | | | 1788 bytes (for strings.o).
* Fix a simple mistake with pattern space, and add a test for itGlenn L McGrath2003-09-152-2/+15
|
* Patch by Jean Wolter to fix a bug where a script wouldnt be executedGlenn L McGrath2003-09-151-1/+4
| | | | | | | | | | | | unless it had #!/bin/sh in the first line "It correctly locates the script, tries to execute it via execve which fails. After that it tries to hand it over to /bin/sh which fails too, since ash - neither provides the absolute pathname to /bin/sh - nor tries to lookup the script via PATH if called as "sh script" "
* Fix some memory allocation problemsGlenn L McGrath2003-09-151-18/+21
| | | | ----------------------------------------------------------------------
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen2003-09-1510-95/+110
| | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik
* fix function prototypeEric Andersen2003-09-151-1/+1
|
* Needs prototype for close()Eric Andersen2003-09-151-0/+1
|
* comparison was always false due to limited range of data types.Eric Andersen2003-09-151-1/+1
| | | | | Carefully cast to unsigned long long prior to multiply to get the expected result.
* Do not shadow the global name 'accept'Eric Andersen2003-09-151-2/+2
|
* Add a test for the 'P' command and fix current implementation so itGlenn L McGrath2003-09-152-0/+14
| | | | doesnt permanently modify the pattern space.
* A test and fix for the sed 'n' commandGlenn L McGrath2003-09-152-0/+20
|
* Test for use of newline in regex's, this feature is used by mostGlenn L McGrath2003-09-151-0/+10
| | | | configure scripts.
* Fix for the sed-append-next-line testGlenn L McGrath2003-09-151-0/+5
|
* Test the N commandGlenn L McGrath2003-09-151-0/+9
|
* Fix recursion problemGlenn L McGrath2003-09-151-0/+2
|
* Check sed doesnt go into an infinite loop (yes it does)Glenn L McGrath2003-09-151-0/+11
|
* Update Matteo Croce's email addressGlenn L McGrath2003-09-151-1/+1
|
* Memory cleanups and fix for `echo "foo" | sed 's/foo/bar/;H;q'`Glenn L McGrath2003-09-141-6/+20
|
* Cleanup memory usageGlenn L McGrath2003-09-141-17/+32
|
* Update sed branch testsGlenn L McGrath2003-09-143-15/+17
|
* Add two new tests, sed-recurses-properly should always workGlenn L McGrath2003-09-143-1/+16
|
* The previous fix for 's/a/1/;s/b/2/;t one;p;:one;p' broke the case ofGlenn L McGrath2003-09-141-3/+2
| | | | | | | | echo fooba | ./busybox sed -n 's/foo//;s/bar/found/p' I really need to start adding these tests to the testsuite. keep the substituted and altered flags seperate
* Preserve substitution flag value within the current line.Glenn L McGrath2003-09-141-1/+1
| | | | | | | | | | | | | | Fixed the following testcase # cat strings |./busybox sed -n -f test3.sed 1 1 2 c c # cat strings a b c
* Fix branching commands.Glenn L McGrath2003-09-141-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | If a label isnt specified, jump to end of script, not the last command in the script. Print an error and exit if you try and jump to a non-existant label Works for the following testcase # cat strings a b c d e f g # cat strings | ./busybox sed -n '/d/b;p' a b c e f g
* Patch from Rob Landley Glenn L McGrath2003-09-141-60/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a memory leak in add_cmd/add_cmd_str by moving the allocation of sed_cmd down to where it's actually first needed. In get_address, if index_of_next_unescaped_regexp_delim ever failed, we wouldn't notice because the return value was added to idx, which was already guaranteed to be > 0. (This is buried in the changes made when I redid get_address to be based on pointer arithmetic, because all the tests were gratuitously dereferencing with a constant zero, which wasn't obvious.) Comment in parse_regex_delim was wrong: 's' and 'y' both call it. The reason "sed_cmd->num_backrefs = 0;" isn't needed is that sed_cmd was allocated with cmalloc, which zeroes memory. Different handling of space after \ in i... Different handling of pattern "s/a/b s/c/d" Cool, resursive reads don't cause a crash. :) Fixed "sed -f blah filename - < filename" since GNU sed was handling both - and filenames on the same line. (You can even list - more than once, although it's immediate EOF...)
* Stupid typoGlenn L McGrath2003-09-141-1/+1
|
* Fix some memory allocation problemsGlenn L McGrath2003-09-141-2/+7
|