Eric Andersen | 5c66d06104d | Explicitly call setsid() | | |
Eric Andersen | 0392b8638e7 | Minor formatting change | | |
Eric Andersen | a90f20b1c33 | Don't choke if /etc/profile is not available | | |
Eric Andersen | d98337a7b49 | Fix ps so it doesn't waste space showing group, as it is pretty much
meaningless anyways.
-Erik | | |
Eric Andersen | 91a6318d555 | Make it so we don't segfault when /proc isn't mounted -- guess pid 1...
-Erik | | |
Eric Andersen | 5ef5614c31d | Don't use void * to pass pointers of known type | | |
Eric Andersen | ce98c19dfe7 | A patch from Erik Meusel <erik@wh58-709.st.uni-magdeburg.de>
to fix the behavior of 'tail -f -n 0 FILE' | | |
Glenn L McGrath | 78b0e379d7c | Vladimir's last_patch_15 | | |
Glenn L McGrath | addabd6f16a | Patch from Gennady Feldman
This should fix "circular buffer" error message shown when running "syslogd -C" | | |
Glenn L McGrath | f8736d251e4 | rpm2cpio applet by Laurence Anderson | | |
Eric Andersen | 6c947d289fd | Fix the code for establishing a controlling terminal.
-Erik | | |
Eric Andersen | 24982c589bc | Fix up some warnings that show up on ppc | | |
Eric Andersen | 2d848a476ac | This should finish off the job control issues with lash. Make certain
we have a controlling terminal...
-Erik | | |
Glenn L McGrath | 2e6d3cfa82e | Nore unarchive (and doc) fixes from Laurence Anderson | | |
Eric Andersen | 15576268971 | Make the extern NUM_APPLETS be a extern const NUM_APPLETS, to match
the actual definition.
-Erik | | |
Eric Andersen | e0c0757d092 | These were broken when using dmalloc due to include file ordering
problems. busybox.h must be last.
-Erik | | |
Eric Andersen | d9c8acec373 | Leave BB_FEATURE_NFSMOUNT disabled by default.
-Erik | | |
Glenn L McGrath | 8f5b63edea1 | cpio applet, and changes to associated code | | |
Eric Andersen | 52a97ca00cf | Some more cleanups. Of special importance, never free a pipe
that still has running jobs. Instead, we ignore it and... | | |
Eric Andersen | c798b077626 | Some cleanups for hush. Saves about 350bytes.
-Erik | | |
Matt Kraai | a0105713e82 | Remove obsolete function declaration. | | |
Eric Andersen | 764303f9808 | stdlib.h defined free(), which this needs | | |
Eric Andersen | 30f1eafaaa1 | Fix the build process so it does not do the evil #ifdef BB_FOO stuff.
Build exactly one .o file per function, and let... | | |
Eric Andersen | 6b035044410 | Add in a missing header file | | |
Glenn L McGrath | 76ce7549cec | Dont change date or chmod on symlinks, lchown on symlinks if lchown available | | |
Glenn L McGrath | 9f832deecf0 | remove defines around unarchive, its always used | | |
Tim Riker | 7387240ef08 | heh | | |
Tim Riker | 837097648e8 | comment cleanup | | |
Tim Riker | fbbd360b3c6 | create_path -> make_directory | | |
Eric Andersen | 8071c021311 | Add wget -P support, finishing off bug #1176
-Erik | | |
Matt Kraai | ceeff738192 | Rewrote mkdir (and touched lots of things in the process). | | |
Eric Andersen | 091781e20eb | Support tar -C, per bug #1176
-Erik | | |
Eric Andersen | 8a646dd2933 | This commit guts lash, restoring it to what it was originally intended to do,
just be a simple command line interpret... | | |
Eric Andersen | ea4abff5953 | Add in (and ignore) tar -p, since we preserver permissions automatically.
closes bug #1185
-Erik | | |
Matt Kraai | 075228a4615 | Remove documentation of unsupported sed options. | | |
Matt Kraai | 02c40a72b87 | Always apply commands with no specified range. | | |
Eric Andersen | fa2661f2e5a | Per a suggestion from Tom Oehser, fix up the leading-hyphen hack to
make it general. Now all leading single hyphens ... | | |
Eric Andersen | aff5e2eaef3 | it turs out, there was a nasty tar bug where bb tar would create leading dirs
with mode 0777 in all cases due to usas... | | |
Glenn L McGrath | 06a71cced28 | Initialise in_file to stdin, so it wont crash if no source specified | | |
Glenn L McGrath | 8e74bf94f36 | Changed gz_open to ruturn a stream | | |
Glenn L McGrath | eb1c94078f3 | Reorganise unarchiving functions, more code re-use, only does single pass(no more linked lists), basis for supporting... | | |
Eric Andersen | b4a26e6fc09 | For m68k, use __mc68000__ (not __m68k__ ), since that is what the
various m68k compilers seem to actually use...
-Erik | | |
Mark Whitley | 74c97cdba64 | Changed a hard-coded path to a variable defined path. | | |
Eric Andersen | 32574a41b4f | With a bit of care I was able to save about 100 bytes.
-Erik | | |
Mark Whitley | bd4b621e910 | Applied patch from Jim Gleason that makes it so busybox will still work even
if you rename it. | | |
Glenn L McGrath | 6bad1fa1fdf | This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c | | |
Eric Andersen | f429baca868 | I reworked make_human_readable_str so it now has a sane interface,
and then fixed up df, du, and ls to use the new in... | | |
Glenn L McGrath | 17822cd60aa | Reorganise unarchive functions, new files, removed some | | |
Glenn L McGrath | 9aff9036035 | Reorganise archive extraction code | | |
Eric Andersen | dab3d46b9d3 | A patch from Benjamin Zeckel <bzeckel@cisco.com> to allow
nslookup.c to display the correct default nameservers. | | |
Eric Andersen | 583e3ca4560 | Add in Devil-Linux | | |
Matt Kraai | 7bd773c9fe1 | Only use a login shell when it will run on a console. | | |
Mark Whitley | 0915c4b9853 | - Fixed bug where you couldn't mix line number and regexes in two-address cmds
- Fixed bug where you couldn't use tw... | | |
Matt Kraai | bf0a010cf70 | Copy files until EOF, not the reported file size, to deal with bad sizes in
the proc filesystem. | | |
Matt Kraai | 5246225596a | Add padding to struct sysinfo needed by m68k (note and patch by Richard
Hirst). | | |
Eric Andersen | 04407e522b4 | Another hush update from Larry:
Fixes the interaction between if/then/else/fi syntax and variables.
I planned... | | |
Eric Andersen | 4f3e24979bf | Add the Linux Terminal Server Project | | |
Eric Andersen | 817e73cb632 | A patch from Larry to fix pathological things like '>""' | | |
Matt Kraai | 12422ffe3eb | Added a new testcase from Larry Doolittle (inspired by a note from Vadim
Berkgaut). | | |
Matt Kraai | c616e53ca2d | Don't close file descriptors when we are duplicating them. | | |
Eric Andersen | f4dd6e3d1a4 | Do not purge the .cvsignore files on 'make release' so that
people can properly import into their own CVS trees.
-Erik | | |
Eric Andersen | cb2a372c9f7 | Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to never
change permissions on existing director... | | |
Matt Kraai | 67a46403334 | Loop forever instead of exiting. | | |
Glenn L McGrath | 62ebe2e443c | Remove space between ar options | | |
Glenn L McGrath | cda5cf1c2f2 | Correct ar options | | |
Matt Kraai | 9344f7575e5 | Don't whine about already mounted filesystems when invoked with -a. | | |
Eric Andersen | 8b113f93b9b | Vladimir's last_patch13, containing several bugfixes. | | |
Eric Andersen | 4f6753e586d | Cope gracefully when people type something, then hit ^C.
-Erik | | |
Eric Andersen | 4f990533e35 | Patch from Vladimir to fix up autocompletion on a files/dirs with spaces in
them in the presence of a quoting. Also ... | | |
Eric Andersen | f12cc4ee68e | Make hush the default shell. Ensure the applets_list gets
the axe on a distclean. | | |
Eric Andersen | 86f0167e399 | grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong. | | |
Matt Kraai | 6e9e136fcbd | Use safe_strncpy. | | |
Mark Whitley | 4f6aea807b0 | More shell / quoting testcases from Larry. | | |
Mark Whitley | 8b7a0d807a3 | Some more patchelttes from Larry Doolittle. | | |
Mark Whitley | 0a4f578fdc8 | 'Nother patch from Larry to fix a buglet in how the line gets sed-ified.
Also, more testcases and comments on bugs an... | | |
Mark Whitley | fa43e54b6f6 | Added support for grep -e and grep -f, closes bug #1164. Also added some
testcases for these new features. | | |
Mark Whitley | 04052f96e13 | Numerous new testcases from Larry Doolittle and a patch to tester.sh to avoid
a bash2-ism and quote variables that co... | | |
Eric Andersen | a813afc24f8 | Plug another memory leak | | |
Eric Andersen | 5a9d441b2cf | Fix up some signed char vs int issues that show up on powerpc. | | |
Eric Andersen | 1c1f5d30477 | Get BB_LASH out of the list... | | |
Eric Andersen | a15dc15f127 | Plug another memory leak in hush. This one showed up when backticked
commands were run. This one was sure a bugger ... | | |
Eric Andersen | bf7df04ec13 | Fix a massive memory leak in the run_list_test() function.
Rename run_list_test() as free_pipe_list().
Rename run_pip... | | |
Eric Andersen | 77d9268892b | Patch from larry to fix some grammar errors. | | |
Matt Kraai | bdd4eced847 | Commit a patch by Larry Doolittle which fixes recursive calls to file_peek,
and improves some debugging messages. | | |
Matt Kraai | 774d135b66f | Make more robust (patch by Larry Doolittle). | | |
Eric Andersen | 3200f5ac689 | It turns out the descriptions of both dos2unix and unix2dos
were broken. This fixes.
-Erik | | |
Eric Andersen | 57e6a49e5bb | Excellent. This patch from Larry fixes the behavior of hush
when builtins are included in pipes. | | |
Eric Andersen | 9978576f15b | Fix this case. No, really this time.
unset FOO
export FOO=bar
FOO=baz
echo "global env: " `env | gre... | | |
Eric Andersen | aeb44c4da62 | Fix a race. Sometimes by the time we got to checkjobs(), the
pipe struct had already been freed. Return immediately... | | |
Eric Andersen | 816867858b9 | Oops. Remove some debug noise I left in. | | |
Eric Andersen | 94ac244dea5 | Updates from both Vladimir and Larry | | |
Matt Kraai | 1eb4acfc239 | Fixed misnamed rewind command (noted by Tom Oehser). | | |
Matt Kraai | edc806507cb | Fixed extra -- lines (noted by Christophe Boyanique). | | |
Matt Kraai | 117231c44f2 | Make - read compressed data from stdin (thanks to Marius Groeger). | | |
Matt Kraai | 7f7348b7b2a | Correctly remove leading slashes upon extraction (thanks to Marius Groeger). | | |
Mark Whitley | 1d9d41150be | Fixed mishandling of -c & -l options and accounted for case when we're
grepping only one file. | | |
Eric Andersen | 004015e9c4e | Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug
#1130 (i.e. When you turn on features it should alway... | | |
Eric Andersen | abec344ab70 | A couple more minor touchups | | |
Eric Andersen | 317827d9e51 | Several cleanups for usage messages | | |
Matt Kraai | 73991ff9255 | Fix tell support. | | |
Eric Andersen | ada18ff0f53 | The latest patch from Larry | | |
Eric Andersen | 8ae319a3222 | This patch from Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de> is based on
the work of Jinux Kim on his "babobox" ... | | |
Eric Andersen | 2f6e1f880b6 | Patch from Gernot Poerner <gp@it-netservice.de>. Adds in
mount bind support. | | |
Matt Kraai | 13a70ac2ab7 | Fix open mode for IOCTLs which write to the tape. | | |
Eric Andersen | 9ffb7dd9a46 | This is a patch from Vladimir:
> I rewrite *local_variable* function in hush.c with:
> 1) remove many memory... | | |
Eric Andersen | 6197c51834c | Fix an escape problem in the docs. Some \n's didn't have the '\'
escaped, and so were messsing the out output.
-Erik | | |
Mark Whitley | b6967635eb4 | (Almost) brand-new version of cut that supports muitiple lists of positions,
per feature request from Tom Oehser. | | |
Matt Kraai | 1844770fec5 | Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann. | | |
Matt Kraai | d6ef07406d2 | Rewrote copyfd to use library functions, terminate, and copy correct data. | | |
Matt Kraai | 69438154000 | Fix applet_name. | | |
Matt Kraai | 231f998abac | Switch from hstrerror to herror for libc5 systems. | | |
Matt Kraai | 7cedac567c6 | Remove unused function. If necessary, we can use remove_file instead. | | |
Matt Kraai | bc0f783a5f9 | Fix invocation of builtin shell to have proper argc and argv. | | |
Matt Kraai | 233817437de | Always print a newline after a matching substitution. | | |
Eric Andersen | bfae2529b8a | It turns out job control in both hush and lash was broken by the
signal handling in cmdedit.c. Disabling it makes th... | | |
Eric Andersen | 2439a598287 | Remove/replace the "div" call. | | |
Matt Kraai | 8f7a4ad4427 | Add missing include, noted by Larry Doolittle. | | |
Matt Kraai | bf381a0ad83 | Whoops. Forgot the x. | | |
Matt Kraai | c55b8d41c15 | Add xgethostbyname and herror_msg* functions. | | |
Matt Kraai | 59df6f73988 | Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c
by Larry Doolittle. | | |
Eric Andersen | bc604a2f417 | Move init of a bunch of globals into main so we are at least
a bit more reentrant.
-Erik | | |
Eric Andersen | f72f562b2f1 | Fix the behavior of local shell variables to match that of bash and ash.
-Erik | | |
Eric Andersen | 9abfe85e969 | Suggestion from Larry: no format string, use fputs instead. | | |
Eric Andersen | 50ae3102fb2 | Patch from Adam Heath <doogie@debian.org> to add arbitrary header support
to wget, so it can now do funky interactive... | | |
Eric Andersen | 55f9872616f | This patch from Adam Heath <doogie@debian.org>, makes print_file
(used by cat, grep, sed, etc) quite a bit faster. | | |
Eric Andersen | c911a4389bb | Patch from Vladimir:
1) fixed a bug that could crash df, mount, and umount applets if the root
device name wa... | | |
Eric Andersen | 15649c11f35 | Oops. I left in some debug noise. | | |
Eric Andersen | 20a69a77d25 | Write set_local_var() and fixup lookup_param() so you can now use
shell local variables.
-Erik | | |
Eric Andersen | 78a7c99f7fd | This patch covers one big part of variable handling.
$ a=b foo
should be handled correctly.
$ a=b
is parsed OK, but t... | | |
Matt Kraai | be9f44a7dfb | Fix incorrect length passed to accept noted by Larry Doolittle. | | |
Mark Whitley | 336480fe6f6 | Added some testcases for grep and sed (many more could still be added) | | |
Mark Whitley | d928accbbd5 | ...Need to print just a few more newlines. | | |
Eric Andersen | 2416dfc3c93 | A compromise solution for insmod | | |
Mark Whitley | dd527d3c621 | ...And now that we're chomping lines, we need to re-add the newline later... | | |
Mark Whitley | 9de26592649 | We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt. | | |
Mark Whitley | 35e59bed975 | Fixed a subtle bug in the handling of -l and -c flags. | | |
Mark Whitley | 452cc1f2939 | Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work | | |
Matt Kraai | 94964660445 | Follow symbolic links when searching for modules. | | |
Eric Andersen | 14d354312a9 | Per suggestion from Vladimir, eliminate check_wildcard_match(), which
was only being used by insmod these days.
Also... | | |
Matt Kraai | cb378a52672 | Add missing periods and delete superfluous whitespace. | | |
Eric Andersen | a17b3631fe8 | Do not ever change permissions on existing directories, only
on directories we created while extracting a tarball. F... | | |
Eric Andersen | 95a349f4271 | When doing a 'wget -O -' turn on the quiet flag, lest the status bar
noise get mingled with the retrieved webpage.
-... | | |
Eric Andersen | ddb00545b7f | A patch from Aaron Lehmann <aaronl@vitelus.com> to fix a
crash on a broken regexp. | | |
Eric Andersen | 4819c3d477e | Make the locale stuff only do the getpid==1 check if BB_INIT is defined | | |
Mark Whitley | 1f3b9f297e9 | Added support for 'r' command in sed. | | |
Eric Andersen | cfa88ecb726 | Fix up some silly warnings | | |
Eric Andersen | 5f265b755a9 | Fix a segfault in lash, hush, and cmdedit. Each of these used
xgetcwd, but did not check the return for a NULL, and ... | | |
Eric Andersen | 9d94deabd39 | Use xgetcwd | | |
Eric Andersen | 238da246203 | Fix the chown usage text, also thanks to Lars Kellogg-Stedman <lars@larsshack.org> | | |
Eric Andersen | 2b02ab9606f | This patch from Lars Kellogg-Stedman, fixes the behavior of
chown to be consistant with GNU chown, so that it follows... | | |
Matt Kraai | eb5f433736c | Check that putenv succeeded, suggested by Jonas Holmberg. | | |
Matt Kraai | c96381be40f | Fix env usage information. | | |
Matt Kraai | 5b44f48afc2 | Fix handling of '-' option and way that variables are added to the
environment from Jonas Holmberg <jonas.holmberg@ax... | | |
Matt Kraai | f3e79ba6e3b | Fix symlink removal problem noted by Erik Andersen. | | |
Matt Kraai | 6e91f69a0d3 | Add installation instructions from Tomas Pospisek <tpo_hp@sourcepole.ch>. | | |
Matt Kraai | 854125f6e6f | Make stdio functions which can be interrupted by the progressmeter timer
recover gracefully from EINTR. | | |
Eric Andersen | d283e1cfe97 | Bump version to 0.52pre | | |
Eric Andersen | 1a6d39b2594 | A few more structural updates for job control.
-Erik | | |
Eric Andersen | 0a36de0580a | Fix a stupid segfault caused by dereferencing a NULL ptr.
-Erik | | |
Eric Andersen | 45e92ba2ced | This patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works.
This way leaks memory, but oh well. We... | | |
Eric Andersen | 8cd16d8fd3c | This syncs things with Vladimir's latest patches. Also gets
rid of useless 'const int' declarations.
-Erik | | |
Eric Andersen | 186bf1defcd | This is Vladimir's update to last_char_is(). Since 'char *' is
the least common denominator, I modified it to use th... | | |
Eric Andersen | de0ca0cd9ee | Silence cut so it doesn't whine during compilation | | |
Eric Andersen | f3f9f3efa72 | A patch from Vladimir to simplify chomp() | | |
Eric Andersen | 4ad13e5d957 | A patch from Vladimir to simplify concat_path_file() and
make it less likely to break. | | |
Eric Andersen | c33ebc9741a | A patch from Vladimir to use last_char_is(), and a patch from
Larry to fix a silly bug when BB_FEATURE_VI_OPTIMIZE_CU... | | |
Eric Andersen | 04b0354d8e0 | Patch from Vladimir to use last_char_is to simplify du.c | | |
Eric Andersen | 8f3e51b4ada | Patch from Vladimir to remove testing stuff from stty | | |
Eric Andersen | 8d35134ad8d | A bug fix from Vladimir for a memory leak I stupidly
added to which.c. | | |
Eric Andersen | 83a2ae2184f | More hush updates from Larry:
Update some comments. Generate partial placeholders for the missing
builtins. ... | | |
Eric Andersen | 7e1273edf7a | Patch from Jim McQuillan to pass the terminal type to the remote host. | | |
Eric Andersen | 238bc4090d5 | Per comment from Jim McQuillan <jam@mcquil.com>, don't log
syslogd startup/shutdown messages as KERN.EMERG, but use
S... | | |
Eric Andersen | da7f095c120 | Update comment re USE_SYSTEM_PWD_GRP
-Erik | | |
Eric Andersen | 28355a36da6 | Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,
make xreadlink() return NULL on failure, and make s... | | |
Eric Andersen | 822c3837f95 | Another vi update from Sterling Huxley:
- All of the ESC sequences are now in variables. This should make
re-targ... | | |
Glenn L McGrath | 713b3987003 | woops, forgot the break statment | | |
Glenn L McGrath | 5bcfc9ba1aa | Tolerate -q argument, if -q is passed give a warning and continue rather than just fail | | |
Glenn L McGrath | cc0aa0f2d74 | Actually we dont need to check if the device is nfs as it wont be stat'ed | | |
Glenn L McGrath | 1b626194466 | woops, i shouldnt be so presumtuous? about what the error will be | | |
Glenn L McGrath | 3aae10014c1 | Device may not be a real filename | | |
Matt Kraai | 2e6c8787635 | Rewrite -c and -b processing to shrink code and eliminate buffer overrun. | | |
Glenn L McGrath | 6b8c550d88e | include libbb.h after other includes | | |
Eric Andersen | 2dcfba71170 | Larry's variant on Evin Robertson's fix to what I messed up
trying to make job control work. This fix makes it so th... | | |
Eric Andersen | 044a72d0d50 | Larry suggested using concat_path_file() would be an even safer bet
for 'which'. I ageed, so I whipped this up -- wh... | | |
Mark Whitley | a0ba9f45fb0 | Wrote documentation and scripts for creating a busybox boot floppy. Initial revision. | | |
Matt Kraai | d24f8785468 | Don't reset parents context when we encounter an terminator. Fixes
if true; then if true; then true; fi; fi | | |
Eric Andersen | 7526f035f4f | Fix a buffer overflow. Which accounted for the size of the path, plus the the
'/', plus the size of the test command... | | |
Eric Andersen | e5ffb911e89 | If it fails to run a builtin, let it fall through to
exec the real thing.
-Erik | | |
| Next → |