Commit Graph

  • 332394b577 Be extra extra careful about what we dereference. Eric Andersen 2001-07-05 16:09:32 +00:00
  • d50a61956c Implement suggestion from Adam Slattery, (don't default to killing closing bug #1190. Eric Andersen 2001-07-05 15:56:36 +00:00
  • 94f3a570e1 Fix a thinko (the symptoms of which were reported by David Douthitt in bug #1111). Matt Kraai 2001-07-05 14:46:07 +00:00
  • 8df319b213 A bit of testing today showed that ASH_BBAPPS_AS_BUILTINS was totally breaking the shell. Simple thinge like 'FOO=100' caused it to segfault. It turns out that disabling "bltincmd" is a very bad idea. -Erik Eric Andersen 2001-07-05 05:24:12 +00:00
  • ed8495990a gunzip, zcat were fixed just after 0.51 was released Glenn L McGrath 2001-07-05 03:46:23 +00:00
  • bbac261402 ash, hush and msh are new applets to 0.52 Glenn L McGrath 2001-07-05 03:42:17 +00:00
  • 7f3cbdd7fd Added entries for my commits Glenn L McGrath 2001-07-05 03:28:28 +00:00
  • 623cfa99e5 Remove a redundant call to mkdir. Matt Kraai 2001-07-03 20:55:30 +00:00
  • dd8500bce7 Cleanups and sinze reduction for the vi applet from Aaron Lehmann <aaronl@vitelus.com> Eric Andersen 2001-07-02 18:06:14 +00:00
  • 3073dfbf30 Patch from Aaron Lehmann <aaronl@vitelus.com> to scrub a ton of portability junk from gzip.c, making it a zillion times more readable. Eric Andersen 2001-07-02 17:57:32 +00:00
  • 22ecf049b6 Per patch from vodz, change a couple of consts to defines, since apparently gcc 2.95.4, at least, is too stupid to realize that a "static const int" is in fact a constant. Eric Andersen 2001-07-02 17:32:40 +00:00
  • 2870d964f8 Some updates to ash from vodz. Makes ash smaller. I made a few changes, esp describing all the current ash configuration options. Now ash adds 66k in the default configuration. Eric Andersen 2001-07-02 17:27:21 +00:00
  • 8f6978405d Patch from vodz to fix freeing a static in cmdedit. Eric Andersen 2001-07-02 15:36:57 +00:00
  • 10175a43ee Simplify a comment Eric Andersen 2001-06-30 18:11:52 +00:00
  • 0159597bd6 Generalize comment -- no longer ls specific Eric Andersen 2001-06-30 18:08:36 +00:00
  • 7e516797f9 Pad the human readable output for 'ls -sh' to 6 chars, since we will have numbers printed as XXX.YU, so we need 6 digits not 4. -Erik Eric Andersen 2001-06-30 18:00:26 +00:00
  • 8fa1bf7cd6 Fix a silly logic error which caused symlinks to be printed twice, and wrongly caused the return code to be an error. -Erik Eric Andersen 2001-06-30 17:54:20 +00:00
  • 8f01839386 Fixed scaling problems involving make_human_readable_str. Manuel Novoa III 2001-06-30 07:48:01 +00:00
  • a77cfbfd0c ls -s was reporting bytes instead of blocks. Manuel Novoa III 2001-06-30 07:46:50 +00:00
  • d877d44d12 All-integer version (but it does use an unsigned long long) which fixes the problems of the previous version (used floating point, overflowed, didn't round properly). The comments at the top of the file are worth reading; especially note 2 concerning "ls -sh". Manuel Novoa III 2001-06-30 07:40:44 +00:00
  • db15cb72e2 A really nice patch from Manuel Novoa III for compile time configurable size/speed tradeoffs. Eric Andersen 2001-06-29 20:44:51 +00:00
  • a2949aa217 Add some missing includes to kill warnings when building with the default Config.h and using gcc's -fno-builtin. There are probably other files with the similar problems. Also, if building against uClibc, don't include asm/unistd.h in syscalls.c and module_syscalls.c. Manuel Novoa III 2001-06-29 18:59:32 +00:00
  • ff9eee475f This is a busybox port of the Minix shell. It is reasonably capable, handles all the basic stuff (for, case/esac, while, if/then/else), and is very small (adds just 38k on x86). It is not as rigorously correct about Bourne semantics as bash, but for most things it is quite workable. There is still some work to be done to further shrink it (it has its own globbing functions instead of using the libc ones, for example), but it is quite usable as is. -Erik Eric Andersen 2001-06-29 04:57:14 +00:00
  • 66ca9480c8 Fix a nasty hard to spot bug found by Ralph Siemsen <ralphs@netwinder.org>. This would cause it to obliterates the end of the strtab section, so symbol lookups would fail and then it would crash. Ugh. This should fix things for people having trouble with insmod. Eric Andersen 2001-06-28 21:36:06 +00:00
  • 029b4a0422 Allow xrealloc to act as a free() when size=0, per SuS2. -Erik Eric Andersen 2001-06-28 21:22:19 +00:00
  • ec23c4920f Remove vodz from credits, per his request Eric Andersen 2001-06-28 16:43:57 +00:00
  • df82f611c8 Scrub up the licensing block -Erik Eric Andersen 2001-06-28 07:46:40 +00:00
  • cb57d551a2 This a an ash applet I put together. It is similar to the one put together by vodz, but uses newer sources, has the removed features commented out instead of simply deleted (so they could be re-enabled) and the builtins all work. This adds 72k. -Erik Eric Andersen 2001-06-28 07:25:16 +00:00
  • 184d73636d Remove unneeded stuff. Eric Andersen 2001-06-28 03:22:19 +00:00
  • 028b65b060 More thrashing about trying to make hush behave itself wrt job control... Eric Andersen 2001-06-28 01:10:11 +00:00
  • 07abfe2092 don't whine if all we need to do is remove a bg job Eric Andersen 2001-06-27 17:29:11 +00:00
  • 0d8cc1670c Fix a type promotion bug discivered and analyzed by Alan Modra <amodra@bigpond.net.au>, which caused false checksum errors Eric Andersen 2001-06-27 06:15:50 +00:00
  • 4b6b5e4314 Re-enable globbing (I'd accidentaly removed it) and finish off the last of the job control polishing. Works fine now. -Erik Eric Andersen 2001-06-27 04:30:11 +00:00
  • 5c66d06104 Explicitly call setsid() Eric Andersen 2001-06-26 23:16:31 +00:00
  • 0392b8638e Minor formatting change Eric Andersen 2001-06-26 23:11:44 +00:00
  • a90f20b1c3 Don't choke if /etc/profile is not available Eric Andersen 2001-06-26 23:00:21 +00:00
  • d98337a7b4 Fix ps so it doesn't waste space showing group, as it is pretty much meaningless anyways. -Erik Eric Andersen 2001-06-26 22:55:45 +00:00
  • 91a6318d55 Make it so we don't segfault when /proc isn't mounted -- guess pid 1... -Erik Eric Andersen 2001-06-26 22:44:09 +00:00
  • 5ef5614c31 Don't use void * to pass pointers of known type Eric Andersen 2001-06-26 16:36:26 +00:00
  • ce98c19dfe A patch from Erik Meusel <erik@wh58-709.st.uni-magdeburg.de> to fix the behavior of 'tail -f -n 0 FILE' Eric Andersen 2001-06-26 15:07:08 +00:00
  • 78b0e379d7 Vladimir's last_patch_15 Glenn L McGrath 2001-06-26 02:06:08 +00:00
  • addabd6f16 Patch from Gennady Feldman This should fix "circular buffer" error message shown when running "syslogd -C" Glenn L McGrath 2001-06-26 01:41:59 +00:00
  • f8736d251e rpm2cpio applet by Laurence Anderson Glenn L McGrath 2001-06-26 01:19:34 +00:00
  • 6c947d289f Fix the code for establishing a controlling terminal. -Erik Eric Andersen 2001-06-25 22:24:38 +00:00
  • 24982c589b Fix up some warnings that show up on ppc Eric Andersen 2001-06-25 19:31:48 +00:00
  • 2d848a476a This should finish off the job control issues with lash. Make certain we have a controlling terminal... -Erik Eric Andersen 2001-06-25 17:11:54 +00:00
  • 2e6d3cfa82 Nore unarchive (and doc) fixes from Laurence Anderson Glenn L McGrath 2001-06-24 12:36:54 +00:00
  • 1557626897 Make the extern NUM_APPLETS be a extern const NUM_APPLETS, to match the actual definition. -Erik Eric Andersen 2001-06-24 06:09:14 +00:00
  • e0c0757d09 These were broken when using dmalloc due to include file ordering problems. busybox.h must be last. -Erik Eric Andersen 2001-06-23 13:49:14 +00:00
  • d9c8acec37 Leave BB_FEATURE_NFSMOUNT disabled by default. -Erik Eric Andersen 2001-06-22 15:48:19 +00:00
  • 8f5b63edea cpio applet, and changes to associated code Glenn L McGrath 2001-06-22 09:22:06 +00:00
  • 52a97ca00c Some more cleanups. Of special importance, never free a pipe that still has running jobs. Instead, we ignore it and expect it to be cleaned by the background job stuff. -Erik Eric Andersen 2001-06-22 06:49:26 +00:00
  • c798b07762 Some cleanups for hush. Saves about 350bytes. -Erik Eric Andersen 2001-06-22 06:23:03 +00:00
  • a0105713e8 Remove obsolete function declaration. Matt Kraai 2001-06-22 04:20:24 +00:00
  • 764303f980 stdlib.h defined free(), which this needs Eric Andersen 2001-06-22 03:07:19 +00:00
  • 30f1eafaaa Fix the build process so it does not do the evil #ifdef BB_FOO stuff. Build exactly one .o file per function, and let the linker throw away the junk it doesn't want. -Erik Eric Andersen 2001-06-22 03:00:21 +00:00
  • 6b03504441 Add in a missing header file Eric Andersen 2001-06-22 02:58:45 +00:00
  • 76ce7549ce Dont change date or chmod on symlinks, lchown on symlinks if lchown available Glenn L McGrath 2001-06-22 02:55:16 +00:00
  • 9f832deecf remove defines around unarchive, its always used Glenn L McGrath 2001-06-22 02:27:55 +00:00
  • 7387240ef0 heh Tim Riker 2001-06-22 00:27:21 +00:00
  • 837097648e comment cleanup Tim Riker 2001-06-22 00:27:11 +00:00
  • fbbd360b3c create_path -> make_directory Tim Riker 2001-06-22 00:14:20 +00:00
  • 8071c02131 Add wget -P support, finishing off bug #1176 -Erik Eric Andersen 2001-06-21 19:45:06 +00:00
  • ceeff73819 Rewrote mkdir (and touched lots of things in the process). Matt Kraai 2001-06-21 19:41:37 +00:00
  • 091781e20e Support tar -C, per bug #1176 -Erik Eric Andersen 2001-06-21 19:30:10 +00:00
  • 8a646dd293 This commit guts lash, restoring it to what it was originally intended to do, just be a simple command line interpreter with basic pipe, redirect, and job control. For all the more fancy things, people should use hush or ash. -Erik Eric Andersen 2001-06-21 16:38:11 +00:00
  • ea4abff595 Add in (and ignore) tar -p, since we preserver permissions automatically. closes bug #1185 -Erik Eric Andersen 2001-06-21 15:17:59 +00:00
  • 075228a461 Remove documentation of unsupported sed options. Matt Kraai 2001-06-21 14:40:55 +00:00
  • 02c40a72b8 Always apply commands with no specified range. Matt Kraai 2001-06-21 13:57:51 +00:00
  • fa2661f2e5 Per a suggestion from Tom Oehser, fix up the leading-hyphen hack to make it general. Now all leading single hyphens are ignored for purposed of applet name matching, while argv[0] is still passed unaltered to applets, so leading-hyphen sensitive applets (such as sh) can react accordingly. -Erik Eric Andersen 2001-06-21 04:56:24 +00:00
  • aff5e2eaef it turs out, there was a nasty tar bug where bb tar would create leading dirs with mode 0777 in all cases due to usask issues. Thanks to Matt Kraai for noticing and spotting the culprit. This makes bb tar behave just like GNU tar once again. -Erik Eric Andersen 2001-06-20 20:47:31 +00:00
  • 06a71cced2 Initialise in_file to stdin, so it wont crash if no source specified Glenn L McGrath 2001-06-20 08:07:34 +00:00
  • 8e74bf94f3 Changed gz_open to ruturn a stream Glenn L McGrath 2001-06-20 07:54:15 +00:00
  • eb1c94078f Reorganise unarchiving functions, more code re-use, only does single pass(no more linked lists), basis for supporting a cpio (and cheaper untar) applet, but cpio applet isnt included in this. It effects ar, dpkg-deb applets only Glenn L McGrath 2001-06-20 07:48:00 +00:00
  • b4a26e6fc0 For m68k, use __mc68000__ (not __m68k__ ), since that is what the various m68k compilers seem to actually use... -Erik Eric Andersen 2001-06-19 15:00:52 +00:00
  • 74c97cdba6 Changed a hard-coded path to a variable defined path. Mark Whitley 2001-06-18 16:52:56 +00:00
  • 32574a41b4 With a bit of care I was able to save about 100 bytes. -Erik Eric Andersen 2001-06-15 20:10:39 +00:00
  • bd4b621e91 Applied patch from Jim Gleason that makes it so busybox will still work even if you rename it. Mark Whitley 2001-06-15 16:54:25 +00:00
  • 6bad1fa1fd This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c Glenn L McGrath 2001-06-15 03:13:00 +00:00
  • f429baca86 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 interface. I also fixed up some formatting issues in ls while I was in there. -Erik Eric Andersen 2001-06-13 08:02:45 +00:00
  • 17822cd60a Reorganise unarchive functions, new files, removed some Glenn L McGrath 2001-06-13 07:34:03 +00:00
  • 9aff903603 Reorganise archive extraction code Glenn L McGrath 2001-06-13 07:26:39 +00:00
  • dab3d46b9d A patch from Benjamin Zeckel <bzeckel@cisco.com> to allow nslookup.c to display the correct default nameservers. Eric Andersen 2001-06-12 22:21:24 +00:00
  • 583e3ca456 Add in Devil-Linux Eric Andersen 2001-06-12 22:04:40 +00:00
  • 7bd773c9fe Only use a login shell when it will run on a console. Matt Kraai 2001-06-12 20:55:02 +00:00
  • 0915c4b985 - Fixed bug where you couldn't mix line number and regexes in two-address cmds - Fixed bug where you couldn't use two addresses for a 'c' cmd - Moved the do_sed_cmd function into process_file to simplify some things - Reduced a buncha lines of code in the process Mark Whitley 2001-06-11 23:50:06 +00:00
  • bf0a010cf7 Copy files until EOF, not the reported file size, to deal with bad sizes in the proc filesystem. Matt Kraai 2001-06-11 13:58:02 +00:00
  • 5246225596 Add padding to struct sysinfo needed by m68k (note and patch by Richard Hirst). Matt Kraai 2001-06-08 13:57:27 +00:00
  • 04407e522b Another hush update from Larry: Fixes the interaction between if/then/else/fi syntax and variables. I planned to do it right from the beginning, but my implementation was buggy. Also adds the relevant test cases. Also adds some old Matt Kraai variable test cases that got left out somehow. Eric Andersen 2001-06-07 16:42:05 +00:00
  • 4f3e24979b Add the Linux Terminal Server Project Eric Andersen 2001-06-06 18:21:25 +00:00
  • 817e73cb63 A patch from Larry to fix pathological things like '>""' Eric Andersen 2001-06-06 17:56:09 +00:00
  • 12422ffe3e Added a new testcase from Larry Doolittle (inspired by a note from Vadim Berkgaut). Matt Kraai 2001-06-05 17:48:47 +00:00
  • c616e53ca2 Don't close file descriptors when we are duplicating them. Matt Kraai 2001-06-05 16:50:08 +00:00
  • f4dd6e3d1a Do not purge the .cvsignore files on 'make release' so that people can properly import into their own CVS trees. -Erik Eric Andersen 2001-06-04 17:26:38 +00:00
  • cb2a372c9f Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to never change permissions on existing directories. This behavior is contrary to SUSv2 and contrary to GNU tar. Thanks to Matt Kraai for pointing this out. I should have been much more careful about accepting such a patch. -Erik Eric Andersen 2001-06-04 16:54:39 +00:00
  • 67a4640333 Loop forever instead of exiting. Matt Kraai 2001-06-03 05:55:52 +00:00
  • 62ebe2e443 Remove space between ar options Glenn L McGrath 2001-06-03 05:41:59 +00:00
  • cda5cf1c2f Correct ar options Glenn L McGrath 2001-06-03 05:15:04 +00:00
  • 9344f7575e Don't whine about already mounted filesystems when invoked with -a. Matt Kraai 2001-06-03 02:21:38 +00:00
  • 8b113f93b9 Vladimir's last_patch13, containing several bugfixes. Eric Andersen 2001-06-01 21:47:15 +00:00