fli4l
  1. fli4l

busybox

Public
  1. fli4l
  2. busybox

All Branches Graph

        
AuthorCommitMessageCommit dateBuilds
Eric AndersenEric Andersen
5c66d06104dExplicitly call setsid()
Eric AndersenEric Andersen
0392b8638e7Minor formatting change
Eric AndersenEric Andersen
a90f20b1c33Don't choke if /etc/profile is not available
Eric AndersenEric Andersen
d98337a7b49Fix ps so it doesn't waste space showing group, as it is pretty much meaningless anyways. -Erik
Eric AndersenEric Andersen
91a6318d555Make it so we don't segfault when /proc isn't mounted -- guess pid 1... -Erik
Eric AndersenEric Andersen
5ef5614c31dDon't use void * to pass pointers of known type
Eric AndersenEric Andersen
ce98c19dfe7A patch from Erik Meusel <erik@wh58-709.st.uni-magdeburg.de> to fix the behavior of 'tail -f -n 0 FILE'
Glenn L McGrathGlenn L McGrath
78b0e379d7cVladimir's last_patch_15
Glenn L McGrathGlenn L McGrath
addabd6f16aPatch from Gennady Feldman This should fix "circular buffer" error message shown when running "syslogd -C"
Glenn L McGrathGlenn L McGrath
f8736d251e4rpm2cpio applet by Laurence Anderson
Eric AndersenEric Andersen
6c947d289fdFix the code for establishing a controlling terminal. -Erik
Eric AndersenEric Andersen
24982c589bcFix up some warnings that show up on ppc
Eric AndersenEric Andersen
2d848a476acThis should finish off the job control issues with lash. Make certain we have a controlling terminal... -Erik
Glenn L McGrathGlenn L McGrath
2e6d3cfa82eNore unarchive (and doc) fixes from Laurence Anderson
Eric AndersenEric Andersen
15576268971Make the extern NUM_APPLETS be a extern const NUM_APPLETS, to match the actual definition. -Erik
Eric AndersenEric Andersen
e0c0757d092These were broken when using dmalloc due to include file ordering problems. busybox.h must be last. -Erik
Eric AndersenEric Andersen
d9c8acec373Leave BB_FEATURE_NFSMOUNT disabled by default. -Erik
Glenn L McGrathGlenn L McGrath
8f5b63edea1cpio applet, and changes to associated code
Eric AndersenEric Andersen
52a97ca00cfSome more cleanups. Of special importance, never free a pipe that still has running jobs. Instead, we ignore it and...
Eric AndersenEric Andersen
c798b077626Some cleanups for hush. Saves about 350bytes. -Erik
Matt KraaiMatt Kraai
a0105713e82Remove obsolete function declaration.
Eric AndersenEric Andersen
764303f9808stdlib.h defined free(), which this needs
Eric AndersenEric Andersen
30f1eafaaa1Fix the build process so it does not do the evil #ifdef BB_FOO stuff. Build exactly one .o file per function, and let...
Eric AndersenEric Andersen
6b035044410Add in a missing header file
Glenn L McGrathGlenn L McGrath
76ce7549cecDont change date or chmod on symlinks, lchown on symlinks if lchown available
Glenn L McGrathGlenn L McGrath
9f832deecf0remove defines around unarchive, its always used
Tim RikerTim Riker
7387240ef08heh
Tim RikerTim Riker
837097648e8comment cleanup
Tim RikerTim Riker
fbbd360b3c6create_path -> make_directory
Eric AndersenEric Andersen
8071c021311Add wget -P support, finishing off bug #1176 -Erik
Matt KraaiMatt Kraai
ceeff738192Rewrote mkdir (and touched lots of things in the process).
Eric AndersenEric Andersen
091781e20ebSupport tar -C, per bug #1176 -Erik
Eric AndersenEric Andersen
8a646dd2933This commit guts lash, restoring it to what it was originally intended to do, just be a simple command line interpret...
Eric AndersenEric Andersen
ea4abff5953Add in (and ignore) tar -p, since we preserver permissions automatically. closes bug #1185 -Erik
Matt KraaiMatt Kraai
075228a4615Remove documentation of unsupported sed options.
Matt KraaiMatt Kraai
02c40a72b87Always apply commands with no specified range.
Eric AndersenEric Andersen
fa2661f2e5aPer a suggestion from Tom Oehser, fix up the leading-hyphen hack to make it general. Now all leading single hyphens ...
Eric AndersenEric Andersen
aff5e2eaef3it 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 McGrathGlenn L McGrath
06a71cced28Initialise in_file to stdin, so it wont crash if no source specified
Glenn L McGrathGlenn L McGrath
8e74bf94f36Changed gz_open to ruturn a stream
Glenn L McGrathGlenn L McGrath
eb1c94078f3Reorganise unarchiving functions, more code re-use, only does single pass(no more linked lists), basis for supporting...
Eric AndersenEric Andersen
b4a26e6fc09For m68k, use __mc68000__ (not __m68k__ ), since that is what the various m68k compilers seem to actually use... -Erik
Mark WhitleyMark Whitley
74c97cdba64Changed a hard-coded path to a variable defined path.
Eric AndersenEric Andersen
32574a41b4fWith a bit of care I was able to save about 100 bytes. -Erik
Mark WhitleyMark Whitley
bd4b621e910Applied patch from Jim Gleason that makes it so busybox will still work even if you rename it.
Glenn L McGrathGlenn L McGrath
6bad1fa1fdfThis isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c
Eric AndersenEric Andersen
f429baca868I 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 McGrathGlenn L McGrath
17822cd60aaReorganise unarchive functions, new files, removed some
Glenn L McGrathGlenn L McGrath
9aff9036035Reorganise archive extraction code
Eric AndersenEric Andersen
dab3d46b9d3A patch from Benjamin Zeckel <bzeckel@cisco.com> to allow nslookup.c to display the correct default nameservers.
Eric AndersenEric Andersen
583e3ca4560Add in Devil-Linux
Matt KraaiMatt Kraai
7bd773c9fe1Only use a login shell when it will run on a console.
Mark WhitleyMark 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 KraaiMatt Kraai
bf0a010cf70Copy files until EOF, not the reported file size, to deal with bad sizes in the proc filesystem.
Matt KraaiMatt Kraai
5246225596aAdd padding to struct sysinfo needed by m68k (note and patch by Richard Hirst).
Eric AndersenEric Andersen
04407e522b4Another hush update from Larry: Fixes the interaction between if/then/else/fi syntax and variables. I planned...
Eric AndersenEric Andersen
4f3e24979bfAdd the Linux Terminal Server Project
Eric AndersenEric Andersen
817e73cb632A patch from Larry to fix pathological things like '>""'
Matt KraaiMatt Kraai
12422ffe3ebAdded a new testcase from Larry Doolittle (inspired by a note from Vadim Berkgaut).
Matt KraaiMatt Kraai
c616e53ca2dDon't close file descriptors when we are duplicating them.
Eric AndersenEric Andersen
f4dd6e3d1a4Do not purge the .cvsignore files on 'make release' so that people can properly import into their own CVS trees. -Erik
Eric AndersenEric Andersen
cb2a372c9f7Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to never change permissions on existing director...
Matt KraaiMatt Kraai
67a46403334Loop forever instead of exiting.
Glenn L McGrathGlenn L McGrath
62ebe2e443cRemove space between ar options
Glenn L McGrathGlenn L McGrath
cda5cf1c2f2Correct ar options
Matt KraaiMatt Kraai
9344f7575e5Don't whine about already mounted filesystems when invoked with -a.
Eric AndersenEric Andersen
8b113f93b9bVladimir's last_patch13, containing several bugfixes.
Eric AndersenEric Andersen
4f6753e586dCope gracefully when people type something, then hit ^C. -Erik
Eric AndersenEric Andersen
4f990533e35Patch from Vladimir to fix up autocompletion on a files/dirs with spaces in them in the presence of a quoting. Also ...
Eric AndersenEric Andersen
f12cc4ee68eMake hush the default shell. Ensure the applets_list gets the axe on a distclean.
Eric AndersenEric Andersen
86f0167e399grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.
Matt KraaiMatt Kraai
6e9e136fcbdUse safe_strncpy.
Mark WhitleyMark Whitley
4f6aea807b0More shell / quoting testcases from Larry.
Mark WhitleyMark Whitley
8b7a0d807a3Some more patchelttes from Larry Doolittle.
Mark WhitleyMark 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 WhitleyMark Whitley
fa43e54b6f6Added support for grep -e and grep -f, closes bug #1164. Also added some testcases for these new features.
Mark WhitleyMark Whitley
04052f96e13Numerous new testcases from Larry Doolittle and a patch to tester.sh to avoid a bash2-ism and quote variables that co...
Eric AndersenEric Andersen
a813afc24f8Plug another memory leak
Eric AndersenEric Andersen
5a9d441b2cfFix up some signed char vs int issues that show up on powerpc.
Eric AndersenEric Andersen
1c1f5d30477Get BB_LASH out of the list...
Eric AndersenEric Andersen
a15dc15f127Plug another memory leak in hush. This one showed up when backticked commands were run. This one was sure a bugger ...
Eric AndersenEric Andersen
bf7df04ec13Fix a massive memory leak in the run_list_test() function. Rename run_list_test() as free_pipe_list(). Rename run_pip...
Eric AndersenEric Andersen
77d9268892bPatch from larry to fix some grammar errors.
Matt KraaiMatt Kraai
bdd4eced847Commit a patch by Larry Doolittle which fixes recursive calls to file_peek, and improves some debugging messages.
Matt KraaiMatt Kraai
774d135b66fMake more robust (patch by Larry Doolittle).
Eric AndersenEric Andersen
3200f5ac689It turns out the descriptions of both dos2unix and unix2dos were broken. This fixes. -Erik
Eric AndersenEric Andersen
57e6a49e5bbExcellent. This patch from Larry fixes the behavior of hush when builtins are included in pipes.
Eric AndersenEric Andersen
9978576f15bFix this case. No, really this time. unset FOO export FOO=bar FOO=baz echo "global env: " `env | gre...
Eric AndersenEric Andersen
aeb44c4da62Fix a race. Sometimes by the time we got to checkjobs(), the pipe struct had already been freed. Return immediately...
Eric AndersenEric Andersen
816867858b9Oops. Remove some debug noise I left in.
Eric AndersenEric Andersen
94ac244dea5Updates from both Vladimir and Larry
Matt KraaiMatt Kraai
1eb4acfc239Fixed misnamed rewind command (noted by Tom Oehser).
Matt KraaiMatt Kraai
edc806507cbFixed extra -- lines (noted by Christophe Boyanique).
Matt KraaiMatt Kraai
117231c44f2Make - read compressed data from stdin (thanks to Marius Groeger).
Matt KraaiMatt Kraai
7f7348b7b2aCorrectly remove leading slashes upon extraction (thanks to Marius Groeger).
Mark WhitleyMark Whitley
1d9d41150beFixed mishandling of -c & -l options and accounted for case when we're grepping only one file.
Eric AndersenEric Andersen
004015e9c4ePatch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug #1130 (i.e. When you turn on features it should alway...
Eric AndersenEric Andersen
abec344ab70A couple more minor touchups
Eric AndersenEric Andersen
317827d9e51Several cleanups for usage messages
Matt KraaiMatt Kraai
73991ff9255Fix tell support.
Eric AndersenEric Andersen
ada18ff0f53The latest patch from Larry
Eric AndersenEric Andersen
8ae319a3222This patch from Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de> is based on the work of Jinux Kim on his "babobox" ...
Eric AndersenEric Andersen
2f6e1f880b6Patch from Gernot Poerner <gp@it-netservice.de>. Adds in mount bind support.
Matt KraaiMatt Kraai
13a70ac2ab7Fix open mode for IOCTLs which write to the tape.
Eric AndersenEric Andersen
9ffb7dd9a46This is a patch from Vladimir: > I rewrite *local_variable* function in hush.c with: > 1) remove many memory...
Eric AndersenEric Andersen
6197c51834cFix an escape problem in the docs. Some \n's didn't have the '\' escaped, and so were messsing the out output. -Erik
Mark WhitleyMark Whitley
b6967635eb4(Almost) brand-new version of cut that supports muitiple lists of positions, per feature request from Tom Oehser.
Matt KraaiMatt Kraai
1844770fec5Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.
Matt KraaiMatt Kraai
d6ef07406d2Rewrote copyfd to use library functions, terminate, and copy correct data.
Matt KraaiMatt Kraai
69438154000Fix applet_name.
Matt KraaiMatt Kraai
231f998abacSwitch from hstrerror to herror for libc5 systems.
Matt KraaiMatt Kraai
7cedac567c6Remove unused function. If necessary, we can use remove_file instead.
Matt KraaiMatt Kraai
bc0f783a5f9Fix invocation of builtin shell to have proper argc and argv.
Matt KraaiMatt Kraai
233817437deAlways print a newline after a matching substitution.
Eric AndersenEric Andersen
bfae2529b8aIt turns out job control in both hush and lash was broken by the signal handling in cmdedit.c. Disabling it makes th...
Eric AndersenEric Andersen
2439a598287Remove/replace the "div" call.
Matt KraaiMatt Kraai
8f7a4ad4427Add missing include, noted by Larry Doolittle.
Matt KraaiMatt Kraai
bf381a0ad83Whoops. Forgot the x.
Matt KraaiMatt Kraai
c55b8d41c15Add xgethostbyname and herror_msg* functions.
Matt KraaiMatt Kraai
59df6f73988Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c by Larry Doolittle.
Eric AndersenEric Andersen
bc604a2f417Move init of a bunch of globals into main so we are at least a bit more reentrant. -Erik
Eric AndersenEric Andersen
f72f562b2f1Fix the behavior of local shell variables to match that of bash and ash. -Erik
Eric AndersenEric Andersen
9abfe85e969Suggestion from Larry: no format string, use fputs instead.
Eric AndersenEric Andersen
50ae3102fb2Patch from Adam Heath <doogie@debian.org> to add arbitrary header support to wget, so it can now do funky interactive...
Eric AndersenEric Andersen
55f9872616fThis patch from Adam Heath <doogie@debian.org>, makes print_file (used by cat, grep, sed, etc) quite a bit faster.
Eric AndersenEric Andersen
c911a4389bbPatch from Vladimir: 1) fixed a bug that could crash df, mount, and umount applets if the root device name wa...
Eric AndersenEric Andersen
15649c11f35Oops. I left in some debug noise.
Eric AndersenEric Andersen
20a69a77d25Write set_local_var() and fixup lookup_param() so you can now use shell local variables. -Erik
Eric AndersenEric Andersen
78a7c99f7fdThis patch covers one big part of variable handling. $ a=b foo should be handled correctly. $ a=b is parsed OK, but t...
Matt KraaiMatt Kraai
be9f44a7dfbFix incorrect length passed to accept noted by Larry Doolittle.
Mark WhitleyMark Whitley
336480fe6f6Added some testcases for grep and sed (many more could still be added)
Mark WhitleyMark Whitley
d928accbbd5...Need to print just a few more newlines.
Eric AndersenEric Andersen
2416dfc3c93A compromise solution for insmod
Mark WhitleyMark Whitley
dd527d3c621...And now that we're chomping lines, we need to re-add the newline later...
Mark WhitleyMark Whitley
9de26592649We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.
Mark WhitleyMark Whitley
35e59bed975Fixed a subtle bug in the handling of -l and -c flags.
Mark WhitleyMark Whitley
452cc1f2939Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work
Matt KraaiMatt Kraai
94964660445Follow symbolic links when searching for modules.
Eric AndersenEric Andersen
14d354312a9Per suggestion from Vladimir, eliminate check_wildcard_match(), which was only being used by insmod these days. Also...
Matt KraaiMatt Kraai
cb378a52672Add missing periods and delete superfluous whitespace.
Eric AndersenEric Andersen
a17b3631fe8Do not ever change permissions on existing directories, only on directories we created while extracting a tarball. F...
Eric AndersenEric Andersen
95a349f4271When doing a 'wget -O -' turn on the quiet flag, lest the status bar noise get mingled with the retrieved webpage. -...
Eric AndersenEric Andersen
ddb00545b7fA patch from Aaron Lehmann <aaronl@vitelus.com> to fix a crash on a broken regexp.
Eric AndersenEric Andersen
4819c3d477eMake the locale stuff only do the getpid==1 check if BB_INIT is defined
Mark WhitleyMark Whitley
1f3b9f297e9Added support for 'r' command in sed.
Eric AndersenEric Andersen
cfa88ecb726Fix up some silly warnings
Eric AndersenEric Andersen
5f265b755a9Fix a segfault in lash, hush, and cmdedit. Each of these used xgetcwd, but did not check the return for a NULL, and ...
Eric AndersenEric Andersen
9d94deabd39Use xgetcwd
Eric AndersenEric Andersen
238da246203Fix the chown usage text, also thanks to Lars Kellogg-Stedman <lars@larsshack.org>
Eric AndersenEric Andersen
2b02ab9606fThis patch from Lars Kellogg-Stedman, fixes the behavior of chown to be consistant with GNU chown, so that it follows...
Matt KraaiMatt Kraai
eb5f433736cCheck that putenv succeeded, suggested by Jonas Holmberg.
Matt KraaiMatt Kraai
c96381be40fFix env usage information.
Matt KraaiMatt Kraai
5b44f48afc2Fix handling of '-' option and way that variables are added to the environment from Jonas Holmberg <jonas.holmberg@ax...
Matt KraaiMatt Kraai
f3e79ba6e3bFix symlink removal problem noted by Erik Andersen.
Matt KraaiMatt Kraai
6e91f69a0d3Add installation instructions from Tomas Pospisek <tpo_hp@sourcepole.ch>.
Matt KraaiMatt Kraai
854125f6e6fMake stdio functions which can be interrupted by the progressmeter timer recover gracefully from EINTR.
Eric AndersenEric Andersen
d283e1cfe97Bump version to 0.52pre
Eric AndersenEric Andersen
1a6d39b2594A few more structural updates for job control. -Erik
Eric AndersenEric Andersen
0a36de0580aFix a stupid segfault caused by dereferencing a NULL ptr. -Erik
Eric AndersenEric Andersen
45e92ba2cedThis patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works. This way leaks memory, but oh well. We...
Eric AndersenEric Andersen
8cd16d8fd3cThis syncs things with Vladimir's latest patches. Also gets rid of useless 'const int' declarations. -Erik
Eric AndersenEric Andersen
186bf1defcdThis is Vladimir's update to last_char_is(). Since 'char *' is the least common denominator, I modified it to use th...
Eric AndersenEric Andersen
de0ca0cd9eeSilence cut so it doesn't whine during compilation
Eric AndersenEric Andersen
f3f9f3efa72A patch from Vladimir to simplify chomp()
Eric AndersenEric Andersen
4ad13e5d957A patch from Vladimir to simplify concat_path_file() and make it less likely to break.
Eric AndersenEric Andersen
c33ebc9741aA 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 AndersenEric Andersen
04b0354d8e0Patch from Vladimir to use last_char_is to simplify du.c
Eric AndersenEric Andersen
8f3e51b4adaPatch from Vladimir to remove testing stuff from stty
Eric AndersenEric Andersen
8d35134ad8dA bug fix from Vladimir for a memory leak I stupidly added to which.c.
Eric AndersenEric Andersen
83a2ae2184fMore hush updates from Larry: Update some comments. Generate partial placeholders for the missing builtins. ...
Eric AndersenEric Andersen
7e1273edf7aPatch from Jim McQuillan to pass the terminal type to the remote host.
Eric AndersenEric Andersen
238bc4090d5Per comment from Jim McQuillan <jam@mcquil.com>, don't log syslogd startup/shutdown messages as KERN.EMERG, but use S...
Eric AndersenEric Andersen
da7f095c120Update comment re USE_SYSTEM_PWD_GRP -Erik
Eric AndersenEric Andersen
28355a36da6Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>, make xreadlink() return NULL on failure, and make s...
Eric AndersenEric Andersen
822c3837f95Another vi update from Sterling Huxley: - All of the ESC sequences are now in variables. This should make re-targ...
Glenn L McGrathGlenn L McGrath
713b3987003woops, forgot the break statment
Glenn L McGrathGlenn L McGrath
5bcfc9ba1aaTolerate -q argument, if -q is passed give a warning and continue rather than just fail
Glenn L McGrathGlenn L McGrath
cc0aa0f2d74Actually we dont need to check if the device is nfs as it wont be stat'ed
Glenn L McGrathGlenn L McGrath
1b626194466woops, i shouldnt be so presumtuous? about what the error will be
Glenn L McGrathGlenn L McGrath
3aae10014c1Device may not be a real filename
Matt KraaiMatt Kraai
2e6c8787635Rewrite -c and -b processing to shrink code and eliminate buffer overrun.
Glenn L McGrathGlenn L McGrath
6b8c550d88einclude libbb.h after other includes
Eric AndersenEric Andersen
2dcfba71170Larry'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 AndersenEric Andersen
044a72d0d50Larry suggested using concat_path_file() would be an even safer bet for 'which'. I ageed, so I whipped this up -- wh...
Mark WhitleyMark Whitley
a0ba9f45fb0Wrote documentation and scripts for creating a busybox boot floppy. Initial revision.
Matt KraaiMatt Kraai
d24f8785468Don't reset parents context when we encounter an terminator. Fixes if true; then if true; then true; fi; fi
Eric AndersenEric Andersen
7526f035f4fFix a buffer overflow. Which accounted for the size of the path, plus the the '/', plus the size of the test command...
Eric AndersenEric Andersen
e5ffb911e89If it fails to run a builtin, let it fall through to exec the real thing. -Erik