Commit Graph

2030 Commits

Author SHA1 Message Date
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.
2001-06-28 21:36:06 +00:00
029b4a0422 Allow xrealloc to act as a free() when size=0, per SuS2.
-Erik
2001-06-28 21:22:19 +00:00
ec23c4920f Remove vodz from credits, per his request 2001-06-28 16:43:57 +00:00
df82f611c8 Scrub up the licensing block
-Erik
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
2001-06-28 07:25:16 +00:00
184d73636d Remove unneeded stuff. 2001-06-28 03:22:19 +00:00
028b65b060 More thrashing about trying to make hush behave itself wrt job
control...
2001-06-28 01:10:11 +00:00
07abfe2092 don't whine if all we need to do is remove a bg job 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
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
2001-06-27 04:30:11 +00:00
5c66d06104 Explicitly call setsid() 2001-06-26 23:16:31 +00:00
0392b8638e Minor formatting change 2001-06-26 23:11:44 +00:00
a90f20b1c3 Don't choke if /etc/profile is not available 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
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
2001-06-26 22:44:09 +00:00
5ef5614c31 Don't use void * to pass pointers of known type 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'
2001-06-26 15:07:08 +00:00
78b0e379d7 Vladimir's last_patch_15 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"
2001-06-26 01:41:59 +00:00
f8736d251e rpm2cpio applet by Laurence Anderson 2001-06-26 01:19:34 +00:00
6c947d289f Fix the code for establishing a controlling terminal.
-Erik
2001-06-25 22:24:38 +00:00
24982c589b Fix up some warnings that show up on ppc 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
2001-06-25 17:11:54 +00:00
2e6d3cfa82 Nore unarchive (and doc) fixes from Laurence Anderson 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
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
2001-06-23 13:49:14 +00:00
d9c8acec37 Leave BB_FEATURE_NFSMOUNT disabled by default.
-Erik
2001-06-22 15:48:19 +00:00
8f5b63edea cpio applet, and changes to associated code 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
2001-06-22 06:49:26 +00:00
c798b07762 Some cleanups for hush. Saves about 350bytes.
-Erik
2001-06-22 06:23:03 +00:00
a0105713e8 Remove obsolete function declaration. 2001-06-22 04:20:24 +00:00
764303f980 stdlib.h defined free(), which this needs 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
2001-06-22 03:00:21 +00:00
6b03504441 Add in a missing header file 2001-06-22 02:58:45 +00:00
76ce7549ce Dont change date or chmod on symlinks, lchown on symlinks if lchown available 2001-06-22 02:55:16 +00:00
9f832deecf remove defines around unarchive, its always used 2001-06-22 02:27:55 +00:00
7387240ef0 heh 2001-06-22 00:27:21 +00:00
837097648e comment cleanup 2001-06-22 00:27:11 +00:00
fbbd360b3c create_path -> make_directory 2001-06-22 00:14:20 +00:00
8071c02131 Add wget -P support, finishing off bug #1176
-Erik
2001-06-21 19:45:06 +00:00
ceeff73819 Rewrote mkdir (and touched lots of things in the process). 2001-06-21 19:41:37 +00:00
091781e20e Support tar -C, per bug #1176
-Erik
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
2001-06-21 16:38:11 +00:00
ea4abff595 Add in (and ignore) tar -p, since we preserver permissions automatically.
closes bug #1185
 -Erik
2001-06-21 15:17:59 +00:00
075228a461 Remove documentation of unsupported sed options. 2001-06-21 14:40:55 +00:00
02c40a72b8 Always apply commands with no specified range. 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
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
2001-06-20 20:47:31 +00:00
06a71cced2 Initialise in_file to stdin, so it wont crash if no source specified 2001-06-20 08:07:34 +00:00
8e74bf94f3 Changed gz_open to ruturn a stream 2001-06-20 07:54:15 +00:00