oweals/busybox.git
24 years agoA few updates (including the cp fix the Craig has been looking for)
Erik Andersen [Sat, 4 Mar 2000 21:19:32 +0000 (21:19 -0000)]
A few updates (including the cp fix the Craig has been looking for)
 -Erik

24 years agoMinor makefile and todo updates
Erik Andersen [Tue, 29 Feb 2000 21:49:22 +0000 (21:49 -0000)]
Minor makefile and todo updates
 -Erik

24 years agoMinor tweak to argv[0] handling for linuxrc
Erik Andersen [Thu, 24 Feb 2000 18:09:58 +0000 (18:09 -0000)]
Minor tweak to argv[0] handling for linuxrc
 -Erik

24 years agoFixed rebooting when init runs as /linuxrc
Erik Andersen [Wed, 23 Feb 2000 22:49:58 +0000 (22:49 -0000)]
Fixed rebooting when init runs as /linuxrc
 -Erik

24 years ago+ this is a small script for helping TargetWizard auto-generate
John Beppu [Wed, 23 Feb 2000 18:17:35 +0000 (18:17 -0000)]
+ this is a small script for helping TargetWizard auto-generate
  busybox.defs.h

24 years agoSync up a few things. Add in a new telnet implementation (still
Erik Andersen [Tue, 22 Feb 2000 17:17:45 +0000 (17:17 -0000)]
Sync up a few things.  Add in a new telnet implementation (still
not perfect though).
 -Erik

24 years agoAdd in a TODO item,
Erik Andersen [Tue, 22 Feb 2000 17:12:00 +0000 (17:12 -0000)]
Add in a TODO item,
 -Erik

24 years agoUpdate the changelog
Erik Andersen [Mon, 21 Feb 2000 21:35:11 +0000 (21:35 -0000)]
Update the changelog
 -Erik

24 years agoRemoved proc dependancies for init and free (which maintaining exactly
Erik Andersen [Mon, 21 Feb 2000 21:26:32 +0000 (21:26 -0000)]
Removed proc dependancies for init and free (which maintaining exactly
the same functionality).  /proc takes up 90k of kernel space, so it is
nice to avoid using it at all costs.  The only places where it is depended
on is for cetain optional mount/umount features, and for ps and lsmod.
 -Erik

24 years agoMinor update for handling TERM with serial consoles.
Erik Andersen [Mon, 21 Feb 2000 19:25:12 +0000 (19:25 -0000)]
Minor update for handling TERM with serial consoles.
 -Erik

24 years agoForgot to add basename. More fixes to du from
Erik Andersen [Mon, 21 Feb 2000 17:27:17 +0000 (17:27 -0000)]
Forgot to add basename.  More fixes to du from
Friedrich Vedder <fwv@myrtle.lahn.de>.
 -Erik

24 years agoFixed du. Now behaves just like GNU du (only less so).
Erik Andersen [Sat, 19 Feb 2000 18:16:49 +0000 (18:16 -0000)]
Fixed du.  Now behaves just like GNU du (only less so).
 -Erik

24 years agoSome updates for the day,
Erik Andersen [Fri, 18 Feb 2000 21:34:17 +0000 (21:34 -0000)]
Some updates for the day,
 -Erik

24 years agoFormatting fix
Erik Andersen [Mon, 14 Feb 2000 18:44:33 +0000 (18:44 -0000)]
Formatting fix
 -Erik

24 years ago- I suspect the problem has something to do w/ symlinks.
John Beppu [Sun, 13 Feb 2000 04:10:57 +0000 (04:10 -0000)]
- I suspect the problem has something to do w/ symlinks.
- It's not completely in agreement w/ GNU/du, but
+ the answer is much closer than before.
- Some of the right-shifts seem to have mysteriously disappeared.
  I put them back in.

24 years agoAdd this in 0_42
Erik Andersen [Fri, 11 Feb 2000 21:55:41 +0000 (21:55 -0000)]
Add this in
 -Erik

24 years agoUpdates
Erik Andersen [Fri, 11 Feb 2000 21:55:04 +0000 (21:55 -0000)]
Updates
 -Erik

24 years ago+ memory allocation/deallocation is less tolerant of evil.
John Beppu [Fri, 11 Feb 2000 12:52:55 +0000 (12:52 -0000)]
+ memory allocation/deallocation is less tolerant of evil.

24 years agofsck_minix.c lost fat.
John Beppu [Fri, 11 Feb 2000 12:44:07 +0000 (12:44 -0000)]
fsck_minix.c lost fat.

24 years agoreduced .bss size by dynmaically allocating a certain large
John Beppu [Fri, 11 Feb 2000 12:43:20 +0000 (12:43 -0000)]
reduced .bss size by dynmaically allocating a certain large
array instead of letting it be static.

objdump -t busybox     \
| grep .bss     \
| sed 's/^.*\.bss //' \
| grep -v ABS     \
#| perl -e 'while(<>) { @x = split; @y = reverse split(//, $x[0]); for ($i=0; $i<@y; $i++) { $s += $y[$i] * (16 ** $i); if ($y[$i] && $i > 2) { print "> $y[$i] * 16 ** $i $x[1]\n"; } } } print "$s\n";'

24 years agoFixed a bug,
Erik Andersen [Thu, 10 Feb 2000 22:58:40 +0000 (22:58 -0000)]
Fixed a bug,
 -Erik

24 years agoMore minor touchups.
Erik Andersen [Thu, 10 Feb 2000 07:31:15 +0000 (07:31 -0000)]
More minor touchups.
 -Erik

24 years agoFix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
Erik Andersen [Wed, 9 Feb 2000 16:37:08 +0000 (16:37 -0000)]
Fix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
for noticing these bugs.
 -Erik

24 years agoFix a possible /linuxrc crash.
Erik Andersen [Wed, 9 Feb 2000 06:05:01 +0000 (06:05 -0000)]
Fix a possible /linuxrc crash.
 -Erik

24 years agoUpdate the sample inittab to add the "ctrlaltdel" action.
Erik Andersen [Wed, 9 Feb 2000 04:40:25 +0000 (04:40 -0000)]
Update the sample inittab to add the "ctrlaltdel" action.
Note a bug in busybox init that I need to fix.
 -Erik

24 years agoFixed the init problem where it wouldn't unmount filesystems
Erik Andersen [Wed, 9 Feb 2000 04:16:43 +0000 (04:16 -0000)]
Fixed the init problem where it wouldn't unmount filesystems
on reboot.  Also fixed swapoff -a so it works.
 -Erik

24 years agoSome formatting updates (ran the code through indent)
Erik Andersen [Tue, 8 Feb 2000 19:58:47 +0000 (19:58 -0000)]
Some formatting updates (ran the code through indent)
 -Erik

24 years agomkdir -p had gotten broken. Fixed now.
Erik Andersen [Tue, 8 Feb 2000 06:19:29 +0000 (06:19 -0000)]
mkdir -p had gotten broken.  Fixed now.
 -Erik

24 years agoForgot a semicolon.
Erik Andersen [Mon, 7 Feb 2000 20:35:14 +0000 (20:35 -0000)]
Forgot a semicolon.
 -Erik

24 years agodevice_open is common code -- moved into utility.c
Erik Andersen [Mon, 7 Feb 2000 20:31:19 +0000 (20:31 -0000)]
device_open is common code -- moved into utility.c
 -Erik

24 years agoForgot cp and mv are now cp_mv
Erik Andersen [Mon, 7 Feb 2000 05:53:48 +0000 (05:53 -0000)]
Forgot cp and mv are now cp_mv
 -Erik

24 years agoRemove the now obsolete test. Tests now
Erik Andersen [Mon, 7 Feb 2000 05:30:41 +0000 (05:30 -0000)]
Remove the now obsolete test.  Tests now
live in the tests directory.
 -Erik

24 years agoA few minor updates. ;-)
Erik Andersen [Mon, 7 Feb 2000 05:29:42 +0000 (05:29 -0000)]
A few minor updates. ;-)

Seriously though, read the Changelog for busybox 0.42,
which this is about to become...
 -Erik

24 years agomade more robust and commented my code.
John Beppu [Sun, 30 Jan 2000 09:47:16 +0000 (09:47 -0000)]
made more robust and commented my code.

24 years ago nslookup -- a work in progress...
John Beppu [Sat, 29 Jan 2000 12:59:01 +0000 (12:59 -0000)]
  nslookup -- a work in progress...

24 years agoClear up some ambiguity with old style assignments.
Erik Andersen [Sat, 29 Jan 2000 07:06:24 +0000 (07:06 -0000)]
Clear up some ambiguity with old style assignments.
 -Erik

24 years agoMinor change. init now uses dup2.
Erik Andersen [Sat, 29 Jan 2000 06:29:32 +0000 (06:29 -0000)]
Minor change.  init now uses dup2.
 -Erik

24 years agocopy fixes to simplify link copying and always do the right thing.
Erik Andersen [Sat, 29 Jan 2000 05:52:40 +0000 (05:52 -0000)]
copy fixes to simplify link copying and always do the right thing.
ping could segfault because I'm an idiot, and tried to put a value
in where I hadn't allocated storage.  choke.
 -Erik

24 years agoForgot some debugging noise.
Erik Andersen [Thu, 27 Jan 2000 23:00:01 +0000 (23:00 -0000)]
Forgot some debugging noise.
 -Erik

24 years agocopyFile could call chmod on a symlink, changing the perms
Erik Andersen [Thu, 27 Jan 2000 19:50:47 +0000 (19:50 -0000)]
copyFile could call chmod on a symlink, changing the perms
of the pointed to file.  Minor fix to tar for directory handling.
 -Erik

24 years agoFixed ls formatting for 8 char user names.
Erik Andersen [Thu, 27 Jan 2000 02:40:21 +0000 (02:40 -0000)]
Fixed ls formatting for 8 char user names.
 -Erik

24 years agoShuffle location of generic code into utility.c
Erik Andersen [Wed, 26 Jan 2000 23:49:21 +0000 (23:49 -0000)]
Shuffle location of generic code into utility.c
 -Erik

24 years agomount and umount could leak loop device allocations causing the system to
Erik Andersen [Wed, 26 Jan 2000 20:06:48 +0000 (20:06 -0000)]
mount and umount  could leak loop device allocations causing the system to
quickly run out.  Also disable init's SIGHUP handler during shutdown.
 -Erik

24 years agoSome busybox updates. See the changelog for details if you care.
Erik Andersen [Tue, 25 Jan 2000 18:13:53 +0000 (18:13 -0000)]
Some busybox updates.  See the changelog for details if you care.
 -Erik

24 years agoput #if's around the lchown, because
John Beppu [Mon, 24 Jan 2000 12:06:22 +0000 (12:06 -0000)]
put #if's around the lchown, because
older glibc versions don't have it.

24 years ago* added (and documented) "-n" option for head -
Erik Andersen [Sun, 23 Jan 2000 18:19:02 +0000 (18:19 -0000)]
* added (and documented) "-n" option for head -
    contributed Friedrich Vedder <fwv@myrtle.lahn.de>
* Cleanup for a number of usage messages -- also
    contributed Friedrich Vedder <fwv@myrtle.lahn.de>
 -Erik

24 years ago Making note of my changes
John Beppu [Sun, 23 Jan 2000 13:54:15 +0000 (13:54 -0000)]
Making note of my changes

24 years ago Went ahead and fixed bug #301 (chown not working on symlinks)
John Beppu [Sun, 23 Jan 2000 13:38:32 +0000 (13:38 -0000)]
Went ahead and fixed bug #301 (chown not working on symlinks)

in fileAction(), I changed the chown() to lchown(); Hopefully, that
doesn't break anything.  (I don't think it does).

nested ?:?:?: madness in chmod_chown_chgrp.c

24 years agoFix a bug where tar could change perms and ownership of dirs pointed
Erik Andersen [Sun, 23 Jan 2000 02:14:20 +0000 (02:14 -0000)]
Fix a bug where tar could change perms and ownership of dirs pointed
to by symlink within a tarball.
 -Erik

24 years agoSome busybox updates. You no longer _have_ to put a "-" in front of tar
Erik Andersen [Sun, 23 Jan 2000 01:34:05 +0000 (01:34 -0000)]
Some busybox updates.  You no longer _have_ to put a "-" in front of tar
options, logger is better behaved and has a "-t" option now.  init now supports
the kernel chroot patch, so you can chroot to a new device and umount the old
root.
 -Erik

24 years agoBetter way to check for namespace aliasing.
Erik Andersen [Sat, 22 Jan 2000 04:55:32 +0000 (04:55 -0000)]
Better way to check for namespace aliasing.
 -Erik

24 years agoTell what I did
Erik Andersen [Thu, 20 Jan 2000 19:51:48 +0000 (19:51 -0000)]
Tell what I did
 -Erik

24 years agoFix a namespace aliasing problem wereby du and dutmp, or
Erik Andersen [Thu, 20 Jan 2000 19:32:32 +0000 (19:32 -0000)]
Fix a namespace aliasing problem wereby du and dutmp, or
rm and rmmod symlinks would be created when only du or rm
was included.
 -Erik

24 years agoforeach (@busybox_command) {
John Beppu [Wed, 19 Jan 2000 15:04:41 +0000 (15:04 -0000)]
foreach (@busybox_command) {
    put_help_message_in_busybox_pod($_);
}

24 years agoadded a little more content.
John Beppu [Wed, 19 Jan 2000 12:39:16 +0000 (12:39 -0000)]
added a little more content.

24 years agoBug fix. grep wasn't printing file names they way it was supposed to.
Erik Andersen [Wed, 19 Jan 2000 04:30:37 +0000 (04:30 -0000)]
Bug fix.  grep wasn't printing file names they way it was supposed to.
 -Erik

24 years agofleshed out a bit more... just wanted to put the current
John Beppu [Tue, 18 Jan 2000 22:33:11 +0000 (22:33 -0000)]
fleshed out a bit more...  just wanted to put the current
changes under version control.

24 years agothe beginnings of a proper man page for busybox.
John Beppu [Tue, 18 Jan 2000 15:45:59 +0000 (15:45 -0000)]
the beginnings of a proper man page for busybox.

24 years agotar creation support is now optional.
Erik Andersen [Sun, 16 Jan 2000 01:30:52 +0000 (01:30 -0000)]
tar creation support is now optional.
 -Erik

24 years agoReady for release 0_41
Erik Andersen [Sat, 15 Jan 2000 22:33:09 +0000 (22:33 -0000)]
Ready for release

24 years agoSync up busybox with the latest and greatest. This is not stuff for
Erik Andersen [Sat, 15 Jan 2000 22:28:50 +0000 (22:28 -0000)]
Sync up busybox with the latest and greatest.  This is not stuff for
the Embedix release.
 -Erik

24 years ago* Added -o loop option for mount, and support in umount for loop
Erik Andersen [Thu, 13 Jan 2000 06:38:14 +0000 (06:38 -0000)]
* Added -o loop option for mount, and support in umount for loop
    devices. Support is toggled by MOUNT_LOOP feature -- Ben Collins
    <bcollins@debian.org>

 -Erik

24 years agoBug fixes.
Erik Andersen [Thu, 13 Jan 2000 04:43:48 +0000 (04:43 -0000)]
Bug fixes.
 -Erik

24 years agoFix a logger bug.
Erik Andersen [Sun, 9 Jan 2000 06:49:08 +0000 (06:49 -0000)]
Fix a logger bug.
 -Erik

24 years agoPossible fixes...
Erik Andersen [Sat, 8 Jan 2000 22:04:33 +0000 (22:04 -0000)]
Possible fixes...
 -Erik

24 years agoOops. left debug on.
Erik Andersen [Sat, 8 Jan 2000 21:20:49 +0000 (21:20 -0000)]
Oops.  left debug on.
 -Erik

24 years agoFix cp and mv so 'cp foo/README bar' where foo and bar are directories,
Erik Andersen [Sat, 8 Jan 2000 21:16:29 +0000 (21:16 -0000)]
Fix cp and mv so 'cp foo/README bar' where foo and bar are directories,
and README is a file.
 -Erik

24 years agofoo 0_40
Erik Andersen [Fri, 7 Jan 2000 23:30:07 +0000 (23:30 -0000)]
foo

24 years agoRemove some leftover debug noise.
Erik Andersen [Fri, 7 Jan 2000 23:11:00 +0000 (23:11 -0000)]
Remove some leftover debug noise.
 -Erik

24 years agoMore adjustments
Erik Andersen [Fri, 7 Jan 2000 18:33:06 +0000 (18:33 -0000)]
More adjustments
 -Erik

24 years agoMore minor fixes.
Erik Andersen [Fri, 7 Jan 2000 18:30:40 +0000 (18:30 -0000)]
More minor fixes.
 -Erik

24 years agoInit is now even more perfect then before.
Erik Andersen [Fri, 7 Jan 2000 11:40:44 +0000 (11:40 -0000)]
Init is now even more perfect then before.
 -Erik

24 years agoTrivial type fix.
Erik Andersen [Fri, 7 Jan 2000 09:43:38 +0000 (09:43 -0000)]
Trivial type fix.
 -Erik

24 years agofoo
Erik Andersen [Fri, 7 Jan 2000 02:55:55 +0000 (02:55 -0000)]
foo

24 years agoInit is now _more_ perfect then before.
Erik Andersen [Fri, 7 Jan 2000 02:54:55 +0000 (02:54 -0000)]
Init is now _more_ perfect then before.
 -Erik

24 years agomaking note of my changes.
John Beppu [Fri, 7 Jan 2000 02:04:58 +0000 (02:04 -0000)]
making note of my changes.

24 years agoadded uniq_usage message
John Beppu [Fri, 7 Jan 2000 01:57:32 +0000 (01:57 -0000)]
added uniq_usage message

24 years agodid tedious stuff
John Beppu [Thu, 6 Jan 2000 23:49:21 +0000 (23:49 -0000)]
did tedious stuff

24 years agoAdd in sample inittab file
Erik Andersen [Thu, 6 Jan 2000 01:16:59 +0000 (01:16 -0000)]
Add in sample inittab file
 -Erik

24 years agoinittab is now perfect. The universe will now submit to my
Erik Andersen [Thu, 6 Jan 2000 01:16:13 +0000 (01:16 -0000)]
inittab is now perfect.  The universe will now submit to my
will. muhahahaha!!!  Phear!
 -Erik

24 years agoCool. Beppu is doing uniq.
Erik Andersen [Thu, 6 Jan 2000 01:14:56 +0000 (01:14 -0000)]
Cool.  Beppu is doing uniq.
 -Erik

24 years agoi am busybox of borg. unix will be assimilated.
John Beppu [Thu, 6 Jan 2000 00:48:21 +0000 (00:48 -0000)]
i am busybox of borg.  unix will be assimilated.

24 years agoThe latest and greatest. init basically works, though needs
Erik Andersen [Wed, 5 Jan 2000 09:34:26 +0000 (09:34 -0000)]
The latest and greatest.  init basically works, though needs
a minor inittab design change to accomodate specifying the device
to run each process on.
 -Erik

24 years agoheheh. Forgot the fix. Here it is:
Erik Andersen [Wed, 5 Jan 2000 05:49:51 +0000 (05:49 -0000)]
heheh. Forgot the fix.  Here it is:

* Grep -i previously failed on UPPER CASE patterns due to a silly
    regexp implementation bug that is now fixed.

 -Erik

24 years ago* Grep -i previously failed on UPPER CASE patterns due to a silly
Erik Andersen [Wed, 5 Jan 2000 05:47:11 +0000 (05:47 -0000)]
* Grep -i previously failed on UPPER CASE patterns due to a silly
    regexp implementation bug that is now fixed.

 -Erik

24 years agoBunches of fixes. Typos, bugs, etc.
Erik Andersen [Tue, 4 Jan 2000 01:10:25 +0000 (01:10 -0000)]
Bunches of fixes.  Typos, bugs, etc.
Added 'gunzip -t'.  inittab support _almost_ works (but it isn't
ready for prime time useage yet).
 -Erik

24 years agoFirst pass inittab parser written
Erik Andersen [Thu, 30 Dec 1999 09:25:17 +0000 (09:25 -0000)]
First pass inittab parser written
 -Erik

24 years ago* sed now supports addresses (numeric or regexp, with negation) and
Erik Andersen [Wed, 29 Dec 1999 22:19:46 +0000 (22:19 -0000)]
* sed now supports addresses (numeric or regexp, with negation) and
    has an append command, thanks to Marco Pantaleoni <panta@prosa.it>
* Fixed dmesg.  It wasn't parsing its options (-n or -s) properly.
* Some cosmetic fixes to ls output formatting to make it behave more
    like GNU ls.
 -Erik

24 years agoAdd the beginings of some regression testing. Add in the recently
Erik Andersen [Wed, 29 Dec 1999 03:34:00 +0000 (03:34 -0000)]
Add the beginings of some regression testing.  Add in the recently
contributed loadacm utility (for dealing with unicode fonts)
 -Erik

24 years agoFixed mv so it now does the right thing (same method used in cp). Removed
Erik Andersen [Wed, 29 Dec 1999 02:36:29 +0000 (02:36 -0000)]
Fixed mv so it now does the right thing (same method used in cp).  Removed
some cruft from cp.
 -Erik

24 years agoFixed cp so it works as God intended it to.
Erik Andersen [Wed, 29 Dec 1999 02:10:35 +0000 (02:10 -0000)]
Fixed cp so it works as God intended it to.
 -Erik

24 years agoFixed a bug where tar would not set the user and group on device
Erik Andersen [Tue, 28 Dec 1999 00:17:46 +0000 (00:17 -0000)]
Fixed a bug where tar would not set the user and group on device
special files.
 -Erik

24 years agoAdded changelog
Erik Andersen [Mon, 27 Dec 1999 23:56:17 +0000 (23:56 -0000)]
Added changelog
 -Erik

24 years agochown(2) clears S_ISUID and S_ISGID, even when chown is
Erik Andersen [Mon, 27 Dec 1999 23:48:33 +0000 (23:48 -0000)]
chown(2) clears S_ISUID and S_ISGID, even when chown is
called as root.  Changed ordering of chown and chmod so
SGID and SUID file permissions don't get munged.
 -Erik

24 years ago sort is good to go.
John Beppu [Thu, 23 Dec 1999 22:46:10 +0000 (22:46 -0000)]
sort is good to go.

24 years ago implemented numeric sort (sort -g)
John Beppu [Thu, 23 Dec 1999 00:02:49 +0000 (00:02 -0000)]
implemented numeric sort (sort -g)

24 years ago oops.. qsort(2) misunderstanding on my part.
John Beppu [Wed, 22 Dec 1999 23:02:12 +0000 (23:02 -0000)]
oops..  qsort(2) misunderstanding on my part.
it's ok, now.

24 years agoplaying w/ $Log$
John Beppu [Wed, 22 Dec 1999 22:27:01 +0000 (22:27 -0000)]
playing w/ $Log$

24 years ago the base is nearly done.
John Beppu [Wed, 22 Dec 1999 22:24:52 +0000 (22:24 -0000)]
the base is nearly done.
need to implement various comparison functions, now.

24 years ago added hooks for sort
John Beppu [Wed, 22 Dec 1999 17:57:31 +0000 (17:57 -0000)]
added hooks for sort