Eric Andersen
4b8a1e89a5
Fix email addr
2001-11-20 11:41:37 +00:00
Eric Andersen
f435a918fa
S390 wierdness
2001-11-20 05:42:57 +00:00
Eric Andersen
81ee96fe62
Usr get_last_path_component() name basename()
2001-11-20 00:23:48 +00:00
Eric Andersen
c36642195c
Include time.h
2001-11-20 00:15:27 +00:00
Eric Andersen
edc6e0248c
Oops. doubled myself
2001-11-19 23:50:18 +00:00
Eric Andersen
372f12678e
Note tinylogin TODO items
2001-11-19 22:51:41 +00:00
Matt Kraai
efd7f03657
Fix opt type in dpkg ( closes : #118975 ).
2001-11-19 21:07:15 +00:00
Matt Kraai
4e05da89f3
Add a check target.
2001-11-19 19:47:56 +00:00
Matt Kraai
36c613a443
Update usage instructions, and document test case format.
2001-11-19 19:28:56 +00:00
Matt Kraai
9dfe508a3f
New.
2001-11-19 19:00:13 +00:00
Matt Kraai
c2d6ca0922
Fix misspelling.
2001-11-19 18:44:58 +00:00
Matt Kraai
03bb3088b0
New.
2001-11-19 15:13:12 +00:00
Eric Andersen
6f8b7ea452
oops
2001-11-19 11:45:39 +00:00
Eric Andersen
55805bcba4
More scrubbing
2001-11-19 10:59:37 +00:00
Eric Andersen
d81891a2e6
Call xmalloc before realloc
2001-11-19 10:49:30 +00:00
Eric Andersen
43626d7671
Fixup CLEANUP behavior
2001-11-19 10:36:20 +00:00
Eric Andersen
cc05ce64e9
Update webpage
2001-11-18 15:49:26 +00:00
Glenn L McGrath
fff11f1ab7
bzcat and bunzip -c support from Thomas Lundquist
2001-11-18 14:20:25 +00:00
Eric Andersen
fedce06b7f
Hide some ifdefs to make it more readible
2001-11-17 07:27:14 +00:00
Eric Andersen
9c6b5fcb0a
Minor warning cleanups
2001-11-17 07:23:46 +00:00
Eric Andersen
bff7a60f63
Patch from "Andrew Tipton" <andrew@cadre5.com> to enable vi cursor
...
keys while editing.
2001-11-17 07:15:43 +00:00
Eric Andersen
80f5ac7016
Patch from Steve Merrifield <steve@labyrinth.net.au> to make vi
...
use xmalloc
2001-11-17 06:57:42 +00:00
Eric Andersen
26f8e95d2d
David Kimdon <dwhedon@instant802.com> noticed a thinko
...
in md5sum where only binary sums were verified. He also
sent in this patch,
-Erik
2001-11-17 04:16:15 +00:00
Matt Kraai
5c2bbb55d7
Remove unnecessary errno handling.
2001-11-12 18:44:26 +00:00
Matt Kraai
6c5fdfaf56
New.
2001-11-12 18:42:57 +00:00
Matt Kraai
a21c24bf03
Convert strdup call to xstrdup, and calloc calls to xcalloc (patch from
...
Steve Merrifield).
2001-11-12 16:58:07 +00:00
Matt Kraai
c8227639db
Change strdup calls to xstrdup (patch from Steve Merrifield).
2001-11-12 16:57:27 +00:00
Matt Kraai
357cfc739e
Brag.
2001-11-12 16:45:43 +00:00
Matt Kraai
9fb38f600c
Eliminate unused variable warnings.
2001-11-12 16:45:23 +00:00
Matt Kraai
a5f09c668e
Use fopen wrapper.
2001-11-12 16:44:55 +00:00
Eric Andersen
c5f9a9dd0c
Add redhat and slackware
2001-11-10 13:38:36 +00:00
Eric Andersen
31ac3b7764
Add in Redhat
2001-11-10 13:35:27 +00:00
Eric Andersen
45784febaf
Some more minor build cleanups
2001-11-10 13:08:02 +00:00
Eric Andersen
dba4e6f046
Add in grep -E support
2001-11-10 12:54:00 +00:00
Eric Andersen
c223ced0ea
I forgot to add these. Part of the patch from vodz
2001-11-10 12:18:42 +00:00
Eric Andersen
282671bf76
Cleanup some config problems. Add a sane default config that basically
...
matches the default old Config.h
2001-11-10 12:07:24 +00:00
Eric Andersen
30fcef430c
Only use -mpreferred-stack-boundary with gcc versions that support it
2001-11-10 11:23:47 +00:00
Eric Andersen
cd8c436d81
Latest patch from vodz:
...
-- reverse resolve network name and cache in route and ifconfig
applets, fix print nslookup server name if compile without
uClibc, fix route crashe 'route add', fix warnings compile
networking and pwd_grp applets
2001-11-10 11:22:46 +00:00
Eric Andersen
94f19a8385
oops
2001-11-10 11:17:17 +00:00
Eric Andersen
744a194f53
Can't use RESERVE_CONFIG_BUFFER here since the allocation
...
size varies meaning BUFFERS_GO_ON_STACK will fail
2001-11-10 11:16:39 +00:00
Eric Andersen
c52a6b0f10
|2001-10-08 Rodney Brown <rbrown64@csc.com.au>
...
|
| * editors/sed.c: Fix multiline [aic] commands. Make # an endline
| comment for compatibility. Codespace reduction.
| * tests/testcases: Cope with move to subdirectories.
| * testsuite/sed/sed-aic-commands: Add.
|
| text data bss dec hex filename
| 3772 16 0 3788 ecc editors/sed.o
| 4516 16 0 4532 11b4 editors/sed.o.bu
2001-11-10 10:49:42 +00:00
Eric Andersen
e5d58c3dcc
Mention that glibc-2.2 is supported
2001-11-10 10:46:42 +00:00
Eric Andersen
882cbcdfa1
more config.in entries from Giulio Orsero <giulioo@pobox.com>
...
with some minor edits by me.
2001-11-10 10:43:09 +00:00
Eric Andersen
7131213460
config.in features patch from Giulio Orsero <giulioo@pobox.com>
...
with some minor edits from me
2001-11-10 09:53:23 +00:00
Eric Andersen
df23302cb5
Remove comments about 'make bzImage'
2001-11-07 07:50:08 +00:00
Eric Andersen
5abdaa9a16
Force main to always be included
2001-11-06 18:45:56 +00:00
Eric Andersen
3c513e3858
Fix spelling
2001-11-05 23:10:48 +00:00
Glenn L McGrath
0a25b35c66
Fix create list segfault
2001-11-03 08:29:35 +00:00
Glenn L McGrath
55b2deda08
Required for od and hexdump applets
2001-11-02 11:40:44 +00:00
Glenn L McGrath
60281118d0
Introduce od and hexdump applets
2001-11-02 11:39:46 +00:00
Matt Kraai
b89637a037
New.
2001-10-31 16:36:23 +00:00
Matt Kraai
5447f17ef9
Remove completed task.
2001-10-31 16:36:02 +00:00
Matt Kraai
f419855300
Mark as unsupported unless CONFIG_FEATURE_TAR_EXCLUDE is defined.
2001-10-31 16:18:48 +00:00
Matt Kraai
bb0088e980
Make egrep only set REG_EXTENDED flag.
2001-10-31 16:16:31 +00:00
Eric Andersen
8fc0589777
*** empty log message ***
2001-10-31 11:45:10 +00:00
Eric Andersen
f46999f8bc
Fix location of Configure.help
2001-10-31 11:12:25 +00:00
Eric Andersen
1552ff7efb
Move usage.h to include/usage.h
2001-10-31 11:07:12 +00:00
Eric Andersen
ec07469a3e
Patch from Aaron Lehmann <aaronl@vitelus.com>;
...
This diff does 2 things:
1) removes an unnecessary function. saves 64 bytes on i386
2) allows you to disable checking of mail (actually, it's now disabled
by default). this would be a nice CML1 option, but for now it's a
#(define|undef) in the C file like the other internal ash options.
this saves an additional 352 bytes if you leave mail disabled.
2001-10-31 11:05:49 +00:00
Eric Andersen
31a0ece3a7
Add netstat applet, submitted by Bart Visscher <magick@linux-fan.com>
2001-10-31 11:00:46 +00:00
Eric Andersen
7d6829096d
Add the run-parts applet submitted by Emanuele Aina
...
<emanuele.aina@tiscali.it >
2001-10-31 10:59:29 +00:00
Eric Andersen
eaecbf33f7
Fixup some silly prototype warnings
2001-10-31 10:41:31 +00:00
Eric Andersen
69a20f0aca
Patch from ASA <llb@udm.net.ru> to that source files
...
are properly passed their arguments.
2001-10-31 10:40:37 +00:00
Eric Andersen
6cf47a79ac
Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>
2001-10-31 10:24:36 +00:00
Eric Andersen
2bc4dec7a1
Document CONFIG_RUN_PARTS, patch from Emanuele Aina <faina.mail@tiscalinet.it>
2001-10-31 10:21:17 +00:00
Eric Andersen
a58f040a37
Add Gennady Feldman
2001-10-31 10:04:44 +00:00
Eric Andersen
85dd4b3b27
start-stop-deamon is done
2001-10-31 10:04:04 +00:00
Eric Andersen
ccd96f1972
Patch from Charles Steinkuehler <charles@steinkuehler.net>
...
to properly handle extended regexps for egrep
2001-10-31 10:02:46 +00:00
Eric Andersen
3d61b10595
Major cleanup from Charles Steinkuehler <charles@steinkuehler.net>:
...
- Switched to getopt argument parsing
- Added -f option to get fully qualified domain name
- Fixed the -s (short) and -d (domain) options, which were not
doing a gethostbyname lookup to get the FQDN before trying to
separate the local and domain portions of the hostname.
- Fixed probem with 'agressive setting' of the hostname...the
previous busybox version would try to set the hostname if called
with a non-option argument, or the -F option, even if another
option (like -i or -s) was given. This behavior does not match
the net-tools hostname, which does not attempt to set anything if
given a 'display' option, regardless of the presence/absence of
the -F option or additional command line arguments.
- When using a file to set the hostname, behavior now matches
net-tools version...previous busybox version did not handle
comments, and simply grabbed the first line from the file.
2001-10-31 09:59:57 +00:00
Eric Andersen
950d8b496f
patch from vodz:
...
I reduce 148 bytes from start_stop_daemon.c code. Also reduced
memory allocated.
2001-10-31 09:55:39 +00:00
Eric Andersen
2c669dd108
patch from Giulio Orsero <giulioo@pobox.com>
2001-10-31 09:54:29 +00:00
John Beppu
ce22feea01
- fixed typos
...
- thinking about how to generate Configure.help...
2001-10-31 04:29:18 +00:00
Matt Kraai
3889078dbe
Merge test suite.
2001-10-30 23:11:20 +00:00
Matt Kraai
999623e973
Use extended regular expressions when invoked as egrep (noted and initial
...
patch by Charles Steinkuehler).
2001-10-29 15:49:03 +00:00
Matt Kraai
b5f2516e3f
Add killall (noted by Giulio Orsero).
2001-10-29 15:22:42 +00:00
Eric Andersen
813d88cf78
As Aaron Lehmann just pointed out, I forgot a line...
2001-10-28 22:49:48 +00:00
Eric Andersen
4acf8f8481
Use error_msg() instead of fprintf(stderr, ...)
2001-10-28 09:36:48 +00:00
Eric Andersen
72f9a4277f
Add in some (theoretical) uClinux support. Some init cleanups
2001-10-28 05:12:20 +00:00
Glenn L McGrath
9af363fe20
include unistd which provides off_t for the header and hence unarchive applets
2001-10-27 14:10:37 +00:00
Glenn L McGrath
7134d6581b
Attempt to fix libc compiling error regarding off_t
2001-10-27 13:14:52 +00:00
Eric Andersen
8e392922b0
Be extra pedantic about printing the correct type for an address
2001-10-27 03:28:53 +00:00
Eric Andersen
c265b17550
Wrap exclude_file() inside a #ifdef CONFIG_FEATURE_TAR_EXCLUDE block
2001-10-27 03:20:00 +00:00
Gennady Feldman
087bc82bb0
Fix up the configuration rules and update Libc5 piece for Syslogd. (copied code from logread.c)
2001-10-26 16:09:09 +00:00
Glenn L McGrath
ee28362597
Menu entry for tar creation support
2001-10-25 18:37:41 +00:00
Glenn L McGrath
107c796e79
Recovery from previous commit
2001-10-25 15:01:10 +00:00
Glenn L McGrath
9f2f8540c5
rEcover from my previous commit
2001-10-25 14:59:48 +00:00
Glenn L McGrath
e9fc781570
libunarchive, and recovery from my previous commit
2001-10-25 14:57:14 +00:00
Glenn L McGrath
633f153808
Move libbb/unarchive functions to ./archival/libunarchive
2001-10-25 14:53:50 +00:00
Glenn L McGrath
ef0eab514d
Recovering from my previous commit
2001-10-25 14:49:48 +00:00
Glenn L McGrath
0d2fb76c11
Modify applets to use libunarchive
2001-10-25 14:26:05 +00:00
Glenn L McGrath
95ebf618b7
*** empty log message ***
2001-10-25 14:18:08 +00:00
Eric Andersen
8eaa7b3698
Oops. I forgot pwd_group/config.in
2001-10-25 05:56:51 +00:00
Eric Andersen
2293b96f42
ignore .menuconfig.log
2001-10-24 20:01:04 +00:00
Eric Andersen
9ae7ebd0fd
Ignore lxdialog
2001-10-24 19:59:38 +00:00
Matt Kraai
258bd3d971
Split true and false into separate applets.
2001-10-24 19:00:20 +00:00
Matt Kraai
3c2f27d9f1
Add CONFIG_FEATURE_TAR_EXCLUDE support.
2001-10-24 18:51:27 +00:00
Eric Andersen
99702ab221
Fix variable name -- was stuck at the old RPMUNPACK value. Doh!
2001-10-24 17:37:07 +00:00
Eric Andersen
b78d9b56eb
Oops. Fix capililization
2001-10-24 17:35:52 +00:00
Eric Andersen
1a10eec178
Fixup the location of pwd.h and grp.h
2001-10-24 17:19:38 +00:00
Eric Andersen
bfebd35bea
Fix missing BB_VER defines
2001-10-24 16:51:39 +00:00
Eric Andersen
a49b025b19
Oops. As Aaron Lehmann <aaronl@vitelus.com> just noticed,
...
I forgot to add procps to the SUBDIR list
2001-10-24 08:24:41 +00:00
Eric Andersen
a3483db55f
Patch from vodz:
...
1) complete true: $ > /tmp/tmpfile
2) the builtin pwd now does not unwrap symlinks
3) reduce 680 bytes
2001-10-24 08:01:06 +00:00
Eric Andersen
3cd2760ba1
Fixup the new buildsystem a bit.
2001-10-24 07:58:02 +00:00
Eric Andersen
b36e684fd7
Ignore generated files
2001-10-24 06:53:33 +00:00
Eric Andersen
28593a085b
ignore generated files
2001-10-24 06:50:42 +00:00
Eric Andersen
ca38a29c81
A couple of leftovers
2001-10-24 06:48:42 +00:00
Eric Andersen
9b5a953a98
Add in a mostly content free config help file
2001-10-24 06:33:31 +00:00
Eric Andersen
4bcdd72142
Oops. Forgot these....
2001-10-24 05:26:42 +00:00
Eric Andersen
bdfd0d78bc
Major rework of the directory structure and the entire build system.
...
-Erik
2001-10-24 05:00:29 +00:00
Eric Andersen
9260fc5552
Accomodate older glibc, which also lacks the module syscalls
2001-10-24 00:44:11 +00:00
Matt Kraai
1c9cebc8df
Fix empty line substitutions (noted by Joshua Hudson).
2001-10-23 21:18:59 +00:00
Matt Kraai
8470b9a85c
Fix empty line substitutions (noted by Joshua Hudson).
2001-10-23 21:12:07 +00:00
Glenn L McGrath
6ccdd8c122
Abort if scripts return value != 0
2001-10-23 17:52:28 +00:00
Matt Kraai
c2e5b977ab
Add ttylinux.
2001-10-19 15:33:45 +00:00
Eric Andersen
68ca35c90f
Add slackware 8 to list
2001-10-19 06:32:15 +00:00
Eric Andersen
9c93721ea5
Add mindi linux
2001-10-19 00:46:06 +00:00
Eric Andersen
d63dee4019
Add an option to make the shells not advertise their busybox nature
2001-10-19 00:22:23 +00:00
Eric Andersen
f4c208937c
Remove the now unused ARITH_* defines
...
-Erik
2001-10-19 00:08:17 +00:00
Eric Andersen
c2af1ee036
Commit the start-stop-daemon applet. This was contributed by David
...
Kimdon <dwhedon@gordian.com > on october 7th -- the day I was fired from
Lineo. So it seems I totally forgot about this patch until now.
Sorry about that David!
2001-10-18 19:33:06 +00:00
Matt Kraai
bcca3317b5
Return NULL if EOF is encountered before terminating_string.
2001-10-18 17:04:22 +00:00
Matt Kraai
a7512d74fa
Process extra empty lines correctly.
2001-10-18 17:03:59 +00:00
Matt Kraai
3dd4f5ed69
Remove xmalloc calls.
2001-10-18 15:08:30 +00:00
Eric Andersen
a0f0ae5a7a
Revert that change. As Matt Kraai rightly points out,
...
this is not a bug. What I was I thinking when I committed
this. Doh!
2001-10-18 06:04:23 +00:00
Eric Andersen
74400ccfd0
Scrub up some function prototypes.
...
-Erik
2001-10-18 04:11:39 +00:00
Eric Andersen
8acbf1d307
Make mount default to using /proc/filesystems to avoid
...
ever trying to mount a nodev filesystem.
-Erik
2001-10-18 04:10:22 +00:00
Eric Andersen
11fdb8a4c7
Fix a nasty bug with variable name shadowing
2001-10-18 04:04:34 +00:00
Eric Andersen
1bf25f0307
Patch from Stefan Soucek <ssoucek@coactive.com> to
...
ignore extra empty lines in fgets_str
2001-10-18 03:20:41 +00:00
Glenn L McGrath
4bef7b4186
unarchive function changed to support both exclude and include lists, applets that use unarchive changed to match.
2001-10-13 19:43:46 +00:00
Glenn L McGrath
051eee6ed3
Reverse part of previous change.... i think it was the wrong approach... im lost
2001-10-13 07:11:03 +00:00
Glenn L McGrath
d642a67928
Match subdirectories of included/excluded files
2001-10-13 06:54:45 +00:00
Glenn L McGrath
527880e5cf
match exclude/include names with trailing '/'
2001-10-13 06:53:34 +00:00
Glenn L McGrath
b5937d3eea
Use fnmatch() to compare excluded/included files
2001-10-13 06:21:32 +00:00
Glenn L McGrath
0e766183ee
Superficial changes to make the exclude/include code easier to understand
2001-10-13 05:03:29 +00:00
Matt Kraai
f86bbfaddd
Fix tar segfault when include list is empty and exclude list is not.
2001-10-12 19:00:15 +00:00
Glenn L McGrath
9b2589dafd
Cleanup memory usage properly
2001-10-08 13:10:12 +00:00
Glenn L McGrath
dfa7b0eff6
Free some variables after use
2001-10-08 08:22:48 +00:00
Glenn L McGrath
30f68908ef
Another part of Stafan's latest patch, when replacing a pre-existing package set its status correctly.
2001-10-06 02:40:20 +00:00
Glenn L McGrath
f28d819554
status_package_num should refer to package not status.
...
Only initialise a new entry in the status hashtable if it really is a new entry.
2001-10-06 02:27:36 +00:00
Glenn L McGrath
3550753445
Remove duplicate tftp -l option help
2001-10-05 10:11:28 +00:00
Glenn L McGrath
1d098cefe2
Use wfopen instead of fopen & error_msg, saves 64 bytes
2001-10-05 05:24:19 +00:00
Glenn L McGrath
bf265daa47
Use xfopen, saves 32 bytes !
2001-10-05 05:03:14 +00:00
Glenn L McGrath
ad117d8a21
Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.
2001-10-05 04:40:37 +00:00
Glenn L McGrath
24e2833cdf
Initial support for for bunzip2....
...
This code could be improvemed by
1) supporting more options,
2) Creating a shared crc table with gunzip, or perhaps generated on the fly.
3) Removing any remaining unneccessary code (e.g. if (noisy))
2001-10-05 03:48:57 +00:00
Glenn L McGrath
2e772edacf
Change extraction/list code to use common unarchive code.
2001-10-05 02:58:48 +00:00
Matt Kraai
4c557bf576
Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.
2001-10-05 01:35:10 +00:00
Matt Kraai
54a992d81e
Fix BB_FEATURE_MTAB_SUPPORT test (report and patch by Magnus Damm).
2001-10-04 15:23:34 +00:00
Eric Andersen
b0a0fc8944
Add Magnus Damm and fix alpha sorting
2001-10-04 09:33:40 +00:00
Glenn L McGrath
a8412dbf39
Fixes with help from Stefan, Typo in prerm script, and when reinstall a package the old packages status was getting overwritten.
2001-10-04 05:22:42 +00:00
Eric Andersen
fd35de564e
Always enable BB_TEST when BB_ASH, BB_LASH, or BB_MSH is enabled
2001-10-03 23:37:24 +00:00
Eric Andersen
371ca19f53
Look for either "init" or "linuxrc" processes
2001-10-03 21:26:12 +00:00
Eric Andersen
f0a4ac8216
Patch from Magnus Damm <damm@opensource.se> to avoid lash hanging
...
on serial ports
2001-10-03 11:23:42 +00:00
Glenn L McGrath
35636540ea
Extract control.tar.gz and data.tar.gz unconditionally, another one picked up by Stefan
2001-10-03 03:10:35 +00:00
Eric Andersen
5c72104a85
Fix large file support -- 2+ gig files should now actually
...
work this time...
-Erik
2001-10-02 07:58:23 +00:00
Matt Kraai
c9fc633f9e
Use port 37 by default.
2001-10-01 17:52:14 +00:00
Matt Kraai
524fcb9e01
Use xgethostbyname instead of gethostbyname (found by Erik Andersen).
2001-10-01 17:50:25 +00:00
Glenn L McGrath
95bfe631a4
Fix return status, picked up by Stefan
2001-09-29 03:34:38 +00:00
Eric Andersen
63ae66198d
use the pedantically correct compiler for preprocessing
2001-09-26 06:20:54 +00:00
Matt Kraai
b67adb0d83
Add Cachier.
2001-09-24 22:44:52 +00:00
Glenn L McGrath
c5bd149261
List full path instead of relative path if prefix is specified (this was supposed to be in last patch)
2001-09-24 18:34:06 +00:00
Glenn L McGrath
dece3c5684
The <package>.list file was prepending "./" to the files, fixed that.
...
Also fixed a very silly error by me when running postinst (remember to use the variable BEFORE its freed)
2001-09-22 04:16:55 +00:00
Glenn L McGrath
b8f5adb64f
Dont free everytime getline() is used, fix from Stefan Soucek
2001-09-22 03:24:07 +00:00
Matt Kraai
3be34309e3
Fix tftp usage information ( closes : #1216 ).
2001-09-21 14:42:30 +00:00
Eric Andersen
f8f6e624bb
Eliminate ldconfig which is no longer built by
...
default (or needed) with uClibc.
2001-09-21 06:05:35 +00:00
Glenn L McGrath
48cc89b738
Fix to make preinst run when required, from Stefan Soucek
2001-09-21 05:07:47 +00:00
Glenn L McGrath
e73866181f
Implement dpkg -l option, from Stefan Soucek (slightly modified)
2001-09-21 04:30:51 +00:00
Tim Riker
4c67c596d1
closes bug#1215?
2001-09-16 02:00:09 +00:00
Manuel Novoa III
8d0afde412
Commit my changes to xxreadtoken() to reduce code size. Also set defines
...
so that the table implementations of copynode, calcsize, and cmdtxt are
used. Hopefully this will result in wider testing. ;-) If it breaks,
just unset the appropriate defines.
2001-09-11 01:14:02 +00:00
Manuel Novoa III
6a9d1f652b
Commit my changes to arith.c which fixed a couple of bugs and decreased
...
code size. Please read the TODO comments regarding accessing shell
variables from the arith() funciton.
2001-09-11 01:11:31 +00:00
Eric Andersen
f6ecaccf92
Fix my email address.
2001-09-08 20:52:33 +00:00
Eric Andersen
886b84211e
Lineo is no longer sponsoring busybox
2001-09-08 20:47:19 +00:00
Eric Andersen
5bb1677f1d
define IFS_BROKEN
2001-09-06 18:00:41 +00:00
Eric Andersen
88cec25e99
Patch from vodz to make ash cope with leading redirections
...
(i.e. '2>/dev/null ls rubbish') will now work.
2001-09-06 17:35:20 +00:00
Eric Andersen
1644db9a2b
Two patches from Magick <magick@linux-fan.com>:
...
1st makes init smaller, and fixes a bug with AskFirst. Reading from
/dev/null gives EOF.
2nd makes init run the command's in the order of inittab, as in
FIFO instead of LIFO.
2001-09-05 20:18:15 +00:00
Eric Andersen
b9408504f5
Another fix from vodz
2001-09-05 19:32:00 +00:00
Eric Andersen
3b1525e444
Don't automount things as "usbdevfs" -- patch from
...
Ethan Benson <erbenson@alaska.net >
2001-09-03 16:49:25 +00:00
Matt Kraai
1350666498
Add -p support.
2001-08-29 21:18:47 +00:00
Matt Kraai
5171bf6d40
SUSv2 specifies that if the extension is identical to the basename, it
...
should not be removed.
2001-08-29 20:19:29 +00:00
Eric Andersen
dcbca62e89
Standard typing (u_int16_t instead of u16, u_int32_t instead
...
of u32, etc) cleanups from Laurence Anderson <laurence@zxmail.com >
2001-08-29 19:02:26 +00:00
Matt Kraai
5078919981
Use the correct buffer when calling dirname, improve an error message, and
...
plug some memory leaks. Patch by Laurence Anderson.
2001-08-28 22:57:38 +00:00
Eric Andersen
28d0ac13d1
Add "DutNux"
2001-08-27 19:22:44 +00:00
Matt Kraai
91631011cc
Remove traces of rpmunpack (patch by Laurence Anderson).
2001-08-27 18:55:10 +00:00
Eric Andersen
863a3e15d6
patch from vodz -- route cleanup to display all route entries
2001-08-27 17:57:27 +00:00
Matt Kraai
ab3d839ef4
Add support for `busybox --help APPLET' by Vladimir Oleynik.
2001-08-27 17:19:38 +00:00
Matt Kraai
861e624e15
Fix ash exec (noted by Arne Bernin).
2001-08-27 15:08:57 +00:00
Matt Kraai
449377aa6a
Fix invocation of `-/bin/sh' (bug #1209 ).
2001-08-27 15:02:32 +00:00
Matt Kraai
80f6d55836
Eliminate improper consts and allow standard version to override.
2001-08-24 20:35:45 +00:00
Matt Kraai
ac20ce1924
Canonicalize dirname(3) behavior.
2001-08-24 19:51:54 +00:00
Matt Kraai
2a953aed38
Fix a memory leak if parent directory creation failed.
2001-08-24 19:07:31 +00:00
Matt Kraai
a0065d5955
Fix s/[/]// handling (noted by Dumas Patrice).
2001-08-24 14:45:50 +00:00
Eric Andersen
31b35a16e0
Merge with the stable branch
2001-08-23 22:05:55 +00:00
Eric Andersen
a3c8481a33
A patch from Jaspreet Singh <jsingh@somanetworks.com>
...
fixing both a segfault and cosmetic bug in route
2001-08-23 22:05:33 +00:00
Eric Andersen
b76cb68979
A patch from Shu-Hao Chang <shuhao_chang@trend.com.tw> to
...
fixed sed handling of multiple -e commands
2001-08-22 05:58:16 +00:00
Eric Andersen
1071ccfd25
Force BB_FEATURE_NEW_MODULE_INTERFACE and BB_FEATURE_OLD_MODULE_INTERFACE
...
to be mutually exclusive
2001-08-22 05:41:57 +00:00
Eric Andersen
c0f9d0dce7
Add #include <sys/param.h> to ensure PATH_MAX is defined
2001-08-22 05:35:39 +00:00
Eric Andersen
5d60a46269
Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UP
...
is enabled
2001-08-22 05:32:24 +00:00
Eric Andersen
ac5dbd193b
Fix an _old_ interface problem with a never-used feature.
2001-08-22 05:26:08 +00:00
Eric Andersen
59443965ad
Scrub things and ditch uint64_t and use a custom type name
...
to avoid C lib compatibility problems.
2001-08-22 05:06:29 +00:00
Eric Andersen
d36cdd25a5
Bump version to 0.61.pre
2001-08-22 04:16:36 +00:00
Eric Andersen
39eb040757
Patch from Rodney Brown <RDBrown@mira.net>, shrinking 1.5k
...
from gzip by careful optimization. Appears to work just fine
(I've tested the changes on x86, ARM, and powerpc).
2001-08-22 04:15:47 +00:00
Eric Andersen
a07c902648
Make it compile with uClibc
2001-08-22 00:10:00 +00:00
Eric Andersen
75220b55ff
dfp might be used uninitialized. NULL it.
2001-08-21 23:36:32 +00:00
Eric Andersen
994c6ffd3b
Disable the tinylogin apps by default.
2001-08-21 23:34:10 +00:00
Eric Andersen
c61804ed59
Fix dos2unix compile problem with certain glibc versions
2001-08-21 22:34:05 +00:00
Eric Andersen
f349e978c4
Initial merge of all tinylogin applets that do not require crypt.
...
There is some optimization that can be done to better use libbb in
these applets. There is also redundancy between stty and getty which
could be eliminated.
-Erik
2001-08-21 16:18:59 +00:00
Matt Kraai
a3e4f455ac
Fix a problem with unsatisfied backrefs (noted by Martin Bene).
2001-08-20 21:21:06 +00:00
Eric Andersen
54eceffcae
some minor wording changes
2001-08-20 17:48:17 +00:00
Eric Andersen
76fa8ea790
Apply Glenn's tftp rewrite
2001-08-20 17:47:49 +00:00
Glenn L McGrath
bac490fe53
Fix version comparision bug
2001-08-15 11:25:01 +00:00
Matt Kraai
b6ec78161d
Log all messages from a single connection, not just the first. Patch from
...
matthias@corelatus.com , approved by Gennady Feldman <gena01@cachier.com >.
2001-08-14 17:32:23 +00:00
Matt Kraai
0a68590314
Rewritten by Manuel Novoa III.
2001-08-14 17:10:08 +00:00
Manuel Novoa III
c639a35f50
I stupidly forgot one level of pointer indirection in the cmdtxt(), calcsize(),
...
and copynode() table implementations. Commit the fix but keep them disabled
until others check them out. Uncomment "//#define CMDTXT_TABLE",
"//#define CALCSIZE_TABLE", and "//#define COPYNODE_TABLE" to try them out.
Saves over 600 bytes on i386.
2001-08-12 17:32:56 +00:00
Eric Andersen
dd9173c07f
Fix a merging error
2001-08-10 21:11:56 +00:00
Manuel Novoa III
16815d4b45
A few bug fixes and significant size savings. Combined effort of
...
Vladimir N. Oleynik dzo@simtreas.ru , Aaron Lehmann aaronl@vitelus.com ,
and myself.
2001-08-10 19:36:07 +00:00
Eric Andersen
80dd0863e2
Small size optimization from Aaron Lehmann
2001-08-10 18:42:04 +00:00
Eric Andersen
e20b7d844a
Fix stupid grammar error.
2001-08-10 15:22:35 +00:00
Matt Kraai
a7cecbc917
Commit Vladimir's simplify_path.
2001-08-10 15:05:27 +00:00
Manuel Novoa III
4fb0b51703
This corrects the _really_poor_ implementation of "broadcast +" handling
...
by ifconfig that someone had submitted. It fixes 1 bug, gets rid of the
excessive bloating of a structure that is used in a static const array,
and removes the implicit struct copys by keeping only the int type needed.
It also turns this into a configurable feature (off by default).
2001-08-10 06:02:23 +00:00
Matt Kraai
6c4250c0dc
Remind people to enable RPC support when using NFS mount and uClibc (thanks
...
to David Douthitt).
2001-08-09 21:07:10 +00:00
Matt Kraai
d0b5be6da8
Remove BB_SH define entirely.
2001-08-09 21:00:15 +00:00
Matt Kraai
2338d3176b
Use ferror(3) to check for errors, rather than inspecting errno. Thanks to
...
David Douthitt for reporting, and shame on me for writing such crappy code.
2001-08-06 16:09:09 +00:00
Matt Kraai
063c1f54ea
Simplified version checking.
2001-08-06 14:18:08 +00:00
Matt Kraai
69edfecfb9
Add support for underscores in variable names.
2001-08-06 14:14:18 +00:00
Glenn L McGrath
b373a8d0ca
Fix exclude list handling
2001-08-04 05:28:29 +00:00
Eric Andersen
0b7d70c822
Fix up some silly messups with the debian packaging, and a dumb
...
bug with chroot. I've had the package uploaded but perms set to
000, so I am going to re-tag things and re-cut the release. Folks
who pulled from CVS in the last 30 minutes with just have to cope.
-Erik
2001-08-02 20:56:16 +00:00
Matt Kraai
8aa0b62a88
Fix misspelling of `stabilize'.
2001-08-02 20:34:24 +00:00
Eric Andersen
9e6089ee0f
Ok, here we go...
2001-08-02 19:31:08 +00:00
Matt Kraai
c9dd5f945b
Commit NMU changelog.
2001-08-02 15:12:16 +00:00
Eric Andersen
be0c36009a
More libc5 fixups
...
-Erik
2001-08-02 10:55:32 +00:00
Eric Andersen
23b1e5c7df
Some libc5 cleanups
2001-08-02 09:58:41 +00:00
Eric Andersen
879d6c85af
make_directory used mode as if it were an signed entity, but in fact
...
it was a mode_t which is unsigned. Fix it to be signed...
-Erik
2001-08-02 09:58:19 +00:00
Eric Andersen
8a915880e7
Teach libc5 about realpath
...
-Erik
2001-08-02 09:55:58 +00:00
Eric Andersen
95b520110d
Teach libc5 what a sighandler_t is
...
-Erik
2001-08-02 09:52:40 +00:00
Eric Andersen
deba6dea03
multibuild.pl saves us again. unix2dos requires that dos2unix
...
be enabled.
-Erik
2001-08-02 09:21:17 +00:00
Eric Andersen
46bf7de5f6
Ok, if no shell is enabled, don't include any of the SH_IS_<name>
...
options or the build will fail
-Erik
2001-08-02 08:48:03 +00:00
Eric Andersen
ff9b4a8981
Scrub away the last leftovers from BB_FEATURE_<shell>. Good thing
...
for multibuild.pl -- I would have missed this stupid mess otherwise.
-Erik
2001-08-02 08:42:58 +00:00
Eric Andersen
fdbac35b33
Patch from Robert J. Osborne <rj@resourceinternational.com> that fixes
...
a bug in vi where the beginning of the text space was not checked
before dot is decremented for delete and escape sequences on an empty
file.
2001-08-02 05:26:41 +00:00
Eric Andersen
842757dc96
Oops. I forgot to commit this part of vodz' patch.
2001-08-02 05:18:55 +00:00
Eric Andersen
3450636169
Latest patch from vodz. Adds a check for divide by zero in the posix
...
math suport, cleaner math syntax error checking, moves redundant signal
string tables (from kill and ash) into libbb and provides a few
cleanups elsewhere.
2001-08-02 05:02:46 +00:00
Matt Kraai
2d91deba45
Allow multiple shells to be enabled.
2001-08-01 17:21:35 +00:00
Eric Andersen
0034443140
Fix behavior of grep -lc to match GNU grep. SuS2 is ambiguous
...
on the correct behavior, so acting like GNU grep seems best
-Erik
2001-07-31 23:18:49 +00:00
Eric Andersen
af6b40a1ea
Silence some silly warnings
2001-07-31 22:53:36 +00:00
Eric Andersen
f672c9e62f
Silence a silly warning
2001-07-31 22:51:49 +00:00
Eric Andersen
bb9579ffc3
Make formatting match GNU ls (we were including a spare ' ')
...
-Erik
2001-07-31 22:43:50 +00:00
Eric Andersen
fa1c5aac51
Fix the let builtin (so we can close bug #1196 ) and remove the
...
nonstandard exp builtin.
-Erik
2001-07-31 21:38:23 +00:00
Matt Kraai
73f6a1b058
Always write record counts to stderr.
2001-07-31 21:02:19 +00:00
Eric Andersen
221b2ea6c4
I just wrote up a simple pidof applet, closing bug #1197
...
-Erik
2001-07-31 19:06:07 +00:00
Matt Kraai
9a53feaa76
Give credit to Adam Slattery.
2001-07-31 16:44:16 +00:00
Eric Andersen
57c82fe7c4
I think this should be the final changelog update...
...
-Erik
2001-07-31 16:11:41 +00:00
Matt Kraai
51038a3f42
Don't save and restore readonly flag if BB_FEATURE_VI_READONLY isn't enabled.
2001-07-31 15:01:12 +00:00
Eric Andersen
74bcd16425
This incorporates Posix math support into ash. The Posix math support
...
was written by Aaron Lehmann <aaronl@vitelus.com > for busybox. This
patch makes a few trivial changes to Aaron's code so that it can be
used (in theory) by the other shells as well...
-Erik
2001-07-30 21:41:37 +00:00
Eric Andersen
dc6647201d
Simplify/clarify the shell dependant bit of Config.h
2001-07-30 19:33:00 +00:00
Eric Andersen
c126f8ffb6
This depmod script will create a modules.dep file, just like the depmod
...
binary from modutils. This one, however, can be run on the _host_
system (need not be run on the target) and is fully cross platform, so
even if your target is ARM or powerpc or whatever, this will still
work. When used to support the new modprobe applet, this allows
busybox to fully supplant modutils for architectures supported by
busybox insmod.
-Erik
2001-07-30 19:32:03 +00:00
Eric Andersen
3555fd006e
Fix up the sample inittab entry per what is current.
...
-Erik
2001-07-30 19:28:33 +00:00
Matt Kraai
13cb842773
Rework option handling to save space.
2001-07-30 14:43:20 +00:00
Matt Kraai
547e102082
Preserve whether or not the line was previously altered when running a
...
subst command (discovery and patch by Jim Gleason).
2001-07-30 14:05:58 +00:00
Glenn L McGrath
7499918f30
If filename is a '-' then read from stdin to stdout
2001-07-30 04:48:50 +00:00
Glenn L McGrath
14d7ea460f
Note my uuencode work
2001-07-29 06:07:35 +00:00
Glenn L McGrath
b6071b6341
Fix permisions when reading from stdin
2001-07-29 06:04:26 +00:00
Glenn L McGrath
eba260587a
Fix broken logic when wraping encoded data into rows, also simplifies it a bit
2001-07-29 05:47:33 +00:00
Glenn L McGrath
4e664ac51d
The src buffer size has to be a multiple of 3 (as i noted, but didnt do).
2001-07-28 21:34:25 +00:00
Glenn L McGrath
089decab65
Rewrite based on wget uuencode function.
...
Saves aprox. 200 Bytes and in future can use common code between
this and wget if BB_FEATURE_WGET_AUTHENTICATION is defined.
2001-07-28 21:06:13 +00:00
Eric Andersen
220238305f
PArtial Changelog update. I'm still on vacation (I'm at a campground
...
near the Grand Teton Mountains in Montana at the moment and my
connection is terribly slow) so this is a partial update only,
-Erik
2001-07-28 16:35:51 +00:00
Matt Kraai
26eeb0c9da
Shorten static package description.
2001-07-26 14:45:21 +00:00
Matt Kraai
f9d6aa0a86
Rename dirname variable to pathname to eliminate namespace conflict.
2001-07-26 14:26:53 +00:00
Russ Dill
4db35647dd
char renamed can never be negative on ARM (rp->renamed[i] != EMPTY)
2001-07-26 05:58:40 +00:00
Eric Andersen
2835efe3da
Note that m68k is supported
2001-07-25 16:58:58 +00:00
Eric Andersen
1b06419e60
Cleanup some warnings and a really obvious bug.
...
-Erik
2001-07-25 07:23:38 +00:00
Eric Andersen
655584b07a
This fixes dos2unix and unix2dos so they behave as expected. dos2unix
...
was broken in the 0.52 release, and unix2dos was pretty lame...
-Erik
2001-07-25 07:22:55 +00:00
Glenn L McGrath
6c7ac21f3a
Update my email address and applets
2001-07-24 02:46:35 +00:00
Glenn L McGrath
096b151f76
note dpkg rewrite
2001-07-24 02:41:06 +00:00
Matt Kraai
439e3df653
Add support for devfs device names.
2001-07-23 14:52:08 +00:00
Eric Andersen
0139ca92ff
An initial modproble implementation. Quite suboptimal still,
...
but it does work...
2001-07-22 23:01:03 +00:00
Eric Andersen
8d79ce8320
Some patches to make dietlibc work...
2001-07-22 23:00:15 +00:00
Eric Andersen
20aab260e2
Some adjustments, mostly from David McCullough <davidm@lineo.com> to
...
make busybox be more uClinux friendly. I also adjusted Config.h for
uClinux so it will automagically disable apps the arn't going to
work without fork() and such.
-Erik
2001-07-19 22:28:02 +00:00
Matt Kraai
0382eb8865
The -P prefix should only be prepended to filenames which are not explicitly
...
specified.
2001-07-19 19:13:55 +00:00
Matt Kraai
e92895c038
Note that wget fix is important.
2001-07-19 17:46:17 +00:00
Matt Kraai
c8eae6684b
The directory name should only be prepended if one was specified.
2001-07-19 17:29:38 +00:00
Matt Kraai
c1cda4a609
Add a RELEASE_BB_BUFFER macro and use it to fix a memory leak in syslogd.c
...
(noted by Adam Slattery).
2001-07-19 15:00:14 +00:00
Glenn L McGrath
81108e7653
Cleanup (most) memory leaks
2001-07-19 12:15:13 +00:00
Glenn L McGrath
c3fbec73fb
Change read_package_field interface, and rewrite using low level functions
...
Fixes for a few bugs that have crept into dpkg in the last few days
2001-07-18 15:47:21 +00:00
Glenn L McGrath
8d3b0497a4
Fix extract_archive so it doesnt mangle filenames, dont try and extract "./" and strip leading "./" on other files
2001-07-18 13:22:44 +00:00
Glenn L McGrath
778041f8d1
Use the unofficial -C instead of -c to --configure a package, -c conflicts with another dpkg command
2001-07-18 05:17:39 +00:00
Glenn L McGrath
b9e4ce99d8
Update dpkg usage
2001-07-18 05:16:31 +00:00
Glenn L McGrath
ed4492a697
More feedback to user
2001-07-18 05:03:49 +00:00
Glenn L McGrath
7b0241579c
Be more verbose when configureing package, minor changes
2001-07-18 04:33:31 +00:00
Glenn L McGrath
6fc92a506a
Fail silently on failure to read tar header, its unfortunate that many tar implementations must be adding unwanted crap to the end of their archives.
...
It makes error reporting here more trouble than its worth
2001-07-18 03:23:10 +00:00
Glenn L McGrath
4cdc607f72
Use xfopen to abort on error to prevent segfaulting later.
2001-07-18 03:13:49 +00:00
Eric Andersen
bc4c030023
Cleanup from vodz
2001-07-17 01:14:06 +00:00
Eric Andersen
044228d5ec
This is vodz' latest patch. Sorry it took so long...
...
1) ping cleanup (compile fix from this patch already applied).
2) traceroute call not spare ntohl() now (and reduce size);
3) Fix for functions not declared static in insmod, ash, vi and mount.
4) a more simple API cmdedit :))
5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option
6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd)
2001-07-17 01:12:36 +00:00
Glenn L McGrath
51ded05b3b
enum entry for unarchive to be used by tar
2001-07-14 12:38:55 +00:00
Glenn L McGrath
a868ec89e8
Allow the unarchive() extract_list variable to be NULL, meaning extract all
2001-07-14 08:49:53 +00:00
Glenn L McGrath
58a5bd187d
Tolerate fields with no data, e.g. "Depends: "
2001-07-14 06:25:54 +00:00
Matt Kraai
06ef16563b
Allow featureless ping to compile, and featureful ping to shrink
...
(by Adam Slattery).
2001-07-13 20:56:27 +00:00
Glenn L McGrath
ccd65c9be6
Total rewrite, uses hash tables for speed and low memory use.
2001-07-13 18:35:24 +00:00
Glenn L McGrath
3d46224b78
Return NULL if file doesnt open in deb_extract
2001-07-13 18:16:57 +00:00
Glenn L McGrath
cfeb08a193
Make sure there is a trailing '\0' when extracting to buffer.
2001-07-13 17:59:48 +00:00
Glenn L McGrath
5e66a26eaa
Dont setvbuff in here, must be called just after stream is initialised, glibc tolerates using it later, uclibc doesnt
2001-07-13 06:51:56 +00:00
Glenn L McGrath
26a0d9a945
Call setvbuf from here isntead of gz_open for compatability with uclibc
2001-07-13 06:49:18 +00:00
Glenn L McGrath
b028e08d35
Move setvbuf calls from gz_open() to calling functions, setvbuf is only supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt.
2001-07-13 06:43:03 +00:00
Eric Andersen
7467c8d3b6
Patch from vodz:
...
Changed email address
cmdedit API change
optimizations for traceroute and md5sum
added a new shared create_icmp_socket() function
2001-07-12 20:26:32 +00:00
Matt Kraai
f69bfc76fa
Allow assignments in the export and readonly commands.
2001-07-12 19:39:59 +00:00
Matt Kraai
ab6526c8b3
Remove debugging statement.
2001-07-12 18:44:34 +00:00
Glenn L McGrath
3e94f729a5
Quiet mode, sometimes error messages arent wanted
2001-07-12 10:24:57 +00:00
Glenn L McGrath
c127008840
Allow unarchive to redirect stdout (tobe used by dpkg applet)
2001-07-11 17:32:14 +00:00
Glenn L McGrath
481d19b38e
Fix bug where it wasnt returning the last line of a multiline field
2001-07-11 15:43:03 +00:00
Glenn L McGrath
daf0b78e1a
Reverse part of my previous changes
2001-07-11 15:32:52 +00:00
Glenn L McGrath
93febe672a
free coniditionally, just to make it play nice with dmalloc which is incompatable with standard free()
2001-07-11 07:25:01 +00:00
Eric Andersen
c59fa37d40
Make the obj's generated from libbb/unarchive.c depend on the
...
Makefile, so things like setting DODMALLOC will cause them to
be recompiled
-Erik
2001-07-11 07:24:05 +00:00
Glenn L McGrath
248c57ca43
minor dmalloc inspired cleanups
2001-07-11 07:22:17 +00:00
Glenn L McGrath
59e50f634a
Unpack the filename not the package name
2001-07-11 03:30:11 +00:00
Eric Andersen
8c145dc31b
Fix a stupid search and replace bug...
2001-07-10 16:57:09 +00:00
Eric Andersen
55522080c6
Patch for md5sum from Aaron Lehmann <aaronl@vitelus.com> to slim
...
it down a little bit.
2001-07-10 16:31:29 +00:00
Eric Andersen
5c58d283bb
A traceroute applet from vodz. This could probably be slimmed down,
...
but will do for now...
2001-07-10 16:29:00 +00:00
Eric Andersen
91b84603d3
Cleanup from vodz
2001-07-10 16:25:34 +00:00
Eric Andersen
2a46634617
Make the rev be 0.53pre...
2001-07-10 15:24:16 +00:00
Matt Kraai
5710f9f690
Read 20 512-byte blocks at a time (like GNU tar).
2001-07-10 15:05:39 +00:00
Glenn L McGrath
654944fc36
Reverse my previous change, still cant compile with dmalloc
2001-07-10 14:33:22 +00:00
Glenn L McGrath
c3d2f1287e
When compiling unarchive objects link to $(LIBRARIES) incase using dmalloc
2001-07-10 14:04:30 +00:00
Matt Kraai
6199fa90e5
Update version number to 0.53pre.
2001-07-10 13:57:30 +00:00
Eric Andersen
6248355c6f
vodz' latest update to ash.c
2001-07-10 06:09:16 +00:00
Eric Andersen
5a4a46a251
Patch from vodz to support 'tr a-z A-Z' syntax.
2001-07-09 21:32:29 +00:00
Eric Andersen
f52947ba71
Fix the spec file so it works on redhat systems. At least I think
...
it will work on redhat. At least it now works on my Debian box...
-Erik
2001-07-09 18:34:12 +00:00
Eric Andersen
aa64ba459f
Minor working update
2001-07-07 16:36:29 +00:00
Eric Andersen
ceece81414
Move a bit more to the old news section
2001-07-07 09:38:30 +00:00
Eric Andersen
d0e5f86a10
Enable APPLETS_ALWAYS_WIN
2001-07-07 09:37:28 +00:00
Eric Andersen
d0b4d3dabf
Typo fix.
2001-07-07 08:47:21 +00:00
Eric Andersen
7b2dfc623b
Move some stuff to the oldnews area
2001-07-07 08:44:25 +00:00
Eric Andersen
40ecf7da88
Update web page...
2001-07-07 08:25:03 +00:00
Eric Andersen
5c3070b29c
Update changelogs
2001-07-07 08:13:27 +00:00
Eric Andersen
807bda4a24
Minor update to include file ordering
2001-07-07 08:13:02 +00:00
Eric Andersen
7cd5075908
This is out of date, and Glenn tells me this can be safely deleted.
...
To be useful on Hurd will really require the new build system...
-Erik
2001-07-07 05:25:12 +00:00
Eric Andersen
48dfc56b4a
This patch from Fabio Ferrari <fabio.ferrari@digitro.com.br> enables
...
"broadcast +" for deriving the broadcast address automagically.
2001-07-07 05:19:52 +00:00
Eric Andersen
d9d75555ba
Remove rpmunpack
2001-07-07 04:43:56 +00:00
Eric Andersen
9137f2a2d1
This is obsolete -- replaced by rpm2cpio
2001-07-07 04:33:16 +00:00
Eric Andersen
5a071bcbf2
Avoid a segfault (detected by Fabio Ferrari
...
<fabio.ferrari@digitro.com.br > in the wget applet) when
concat_path_file() or last_char_is() were fed a NULL.
-Erik
2001-07-07 04:27:35 +00:00
Eric Andersen
934c8ecb88
Fix sh.c so it works with DMALLOC
2001-07-07 04:24:28 +00:00
Eric Andersen
1c03923b0b
Add in a shell tagline (per lash/hush behavior) to make it easier
...
to know which shell is in use. Add in 'help' to list available
builtins, and fixup msh so it can do STANDALONE_SHELL.
-Erik
2001-07-07 00:05:55 +00:00
Eric Andersen
b7e6f13b3c
Some minor updates. Bump version number in preparation for release.
...
-Erik
2001-07-07 00:03:00 +00:00
Eric Andersen
0279505e8c
Update the debian packaging stuff
2001-07-06 20:36:57 +00:00
Eric Andersen
d28cb03819
Forgot this
2001-07-06 19:28:49 +00:00
Matt Kraai
c308847274
Remove redundant initialization of lfile to reduce executable size by
...
8192 bytes (noted by Mike Castle).
2001-07-06 19:28:07 +00:00
Eric Andersen
00e56ada9c
Let people select their shell at compile time.
2001-07-06 19:24:27 +00:00
Eric Andersen
3bbcc95ac9
update the ignore list
2001-07-06 19:19:21 +00:00
Eric Andersen
d22b78ff05
Fix a stupid bug revealed by multibuild.pl
2001-07-06 18:33:04 +00:00
Eric Andersen
77b68e6f42
Add woukaround for missing struct _res in uClibc
2001-07-06 17:51:29 +00:00
Eric Andersen
3102ac4b58
This is vodz' latest ash update.
2001-07-06 04:26:23 +00:00
Matt Kraai
5009f90ea2
Removed obsolete function, strdup_substr.
2001-07-05 19:00:47 +00:00
Matt Kraai
44edeff025
Note my activities (how immodest of me).
2001-07-05 18:32:01 +00:00
Eric Andersen
8e75f6daa6
Fix a stupid thinko, and fix killall to cope with the updated
...
find_pid_by_name() interface
-Erik
2001-07-05 16:27:34 +00:00
Eric Andersen
332394b577
Be extra extra careful about what we dereference.
2001-07-05 16:09:32 +00:00
Eric Andersen
d50a61956c
Implement suggestion from Adam Slattery, (don't default to killing closing bug #1190 .
2001-07-05 15:56:36 +00:00
Matt Kraai
94f3a570e1
Fix a thinko (the symptoms of which were reported by
...
David Douthitt in bug #1111 ).
2001-07-05 14:46:07 +00:00
Eric Andersen
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
2001-07-05 05:24:12 +00:00
Glenn L McGrath
ed8495990a
gunzip, zcat were fixed just after 0.51 was released
2001-07-05 03:46:23 +00:00
Glenn L McGrath
bbac261402
ash, hush and msh are new applets to 0.52
2001-07-05 03:42:17 +00:00
Glenn L McGrath
7f3cbdd7fd
Added entries for my commits
2001-07-05 03:28:28 +00:00
Matt Kraai
623cfa99e5
Remove a redundant call to mkdir.
2001-07-03 20:55:30 +00:00
Eric Andersen
dd8500bce7
Cleanups and sinze reduction for the vi applet from Aaron Lehmann
...
<aaronl@vitelus.com >
2001-07-02 18:06:14 +00:00
Eric Andersen
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.
2001-07-02 17:57:32 +00:00
Eric Andersen
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.
2001-07-02 17:32:40 +00:00
Eric Andersen
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.
2001-07-02 17:27:21 +00:00
Eric Andersen
8f6978405d
Patch from vodz to fix freeing a static in cmdedit.
2001-07-02 15:36:57 +00:00
Eric Andersen
10175a43ee
Simplify a comment
2001-06-30 18:11:52 +00:00
Eric Andersen
0159597bd6
Generalize comment -- no longer ls specific
2001-06-30 18:08:36 +00:00
Eric Andersen
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
2001-06-30 18:00:26 +00:00
Eric Andersen
8fa1bf7cd6
Fix a silly logic error which caused symlinks to be printed twice, and
...
wrongly caused the return code to be an error.
-Erik
2001-06-30 17:54:20 +00:00
Manuel Novoa III
8f01839386
Fixed scaling problems involving make_human_readable_str.
2001-06-30 07:48:01 +00:00
Manuel Novoa III
a77cfbfd0c
ls -s was reporting bytes instead of blocks.
2001-06-30 07:46:50 +00:00
Manuel Novoa III
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".
2001-06-30 07:40:44 +00:00
Eric Andersen
db15cb72e2
A really nice patch from Manuel Novoa III for compile time
...
configurable size/speed tradeoffs.
2001-06-29 20:44:51 +00:00
Manuel Novoa III
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.
2001-06-29 18:59:32 +00:00
Eric Andersen
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
2001-06-29 04:57:14 +00:00
Eric Andersen
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
Eric Andersen
029b4a0422
Allow xrealloc to act as a free() when size=0, per SuS2.
...
-Erik
2001-06-28 21:22:19 +00:00
Eric Andersen
ec23c4920f
Remove vodz from credits, per his request
2001-06-28 16:43:57 +00:00
Eric Andersen
df82f611c8
Scrub up the licensing block
...
-Erik
2001-06-28 07:46:40 +00:00
Eric Andersen
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
Eric Andersen
184d73636d
Remove unneeded stuff.
2001-06-28 03:22:19 +00:00
Eric Andersen
028b65b060
More thrashing about trying to make hush behave itself wrt job
...
control...
2001-06-28 01:10:11 +00:00
Eric Andersen
07abfe2092
don't whine if all we need to do is remove a bg job
2001-06-27 17:29:11 +00:00
Eric Andersen
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
Eric Andersen
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
Eric Andersen
5c66d06104
Explicitly call setsid()
2001-06-26 23:16:31 +00:00
Eric Andersen
0392b8638e
Minor formatting change
2001-06-26 23:11:44 +00:00
Eric Andersen
a90f20b1c3
Don't choke if /etc/profile is not available
2001-06-26 23:00:21 +00:00
Eric Andersen
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
Eric Andersen
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
Eric Andersen
5ef5614c31
Don't use void * to pass pointers of known type
2001-06-26 16:36:26 +00:00
Eric Andersen
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
Glenn L McGrath
78b0e379d7
Vladimir's last_patch_15
2001-06-26 02:06:08 +00:00
Glenn L McGrath
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
Glenn L McGrath
f8736d251e
rpm2cpio applet by Laurence Anderson
2001-06-26 01:19:34 +00:00
Eric Andersen
6c947d289f
Fix the code for establishing a controlling terminal.
...
-Erik
2001-06-25 22:24:38 +00:00
Eric Andersen
24982c589b
Fix up some warnings that show up on ppc
2001-06-25 19:31:48 +00:00
Eric Andersen
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
Glenn L McGrath
2e6d3cfa82
Nore unarchive (and doc) fixes from Laurence Anderson
2001-06-24 12:36:54 +00:00
Eric Andersen
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
Eric Andersen
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
Eric Andersen
d9c8acec37
Leave BB_FEATURE_NFSMOUNT disabled by default.
...
-Erik
2001-06-22 15:48:19 +00:00
Glenn L McGrath
8f5b63edea
cpio applet, and changes to associated code
2001-06-22 09:22:06 +00:00
Eric Andersen
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
Eric Andersen
c798b07762
Some cleanups for hush. Saves about 350bytes.
...
-Erik
2001-06-22 06:23:03 +00:00
Matt Kraai
a0105713e8
Remove obsolete function declaration.
2001-06-22 04:20:24 +00:00
Eric Andersen
764303f980
stdlib.h defined free(), which this needs
2001-06-22 03:07:19 +00:00
Eric Andersen
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
Eric Andersen
6b03504441
Add in a missing header file
2001-06-22 02:58:45 +00:00
Glenn L McGrath
76ce7549ce
Dont change date or chmod on symlinks, lchown on symlinks if lchown available
2001-06-22 02:55:16 +00:00
Glenn L McGrath
9f832deecf
remove defines around unarchive, its always used
2001-06-22 02:27:55 +00:00
Tim Riker
7387240ef0
heh
2001-06-22 00:27:21 +00:00
Tim Riker
837097648e
comment cleanup
2001-06-22 00:27:11 +00:00
Tim Riker
fbbd360b3c
create_path -> make_directory
2001-06-22 00:14:20 +00:00
Eric Andersen
8071c02131
Add wget -P support, finishing off bug #1176
...
-Erik
2001-06-21 19:45:06 +00:00
Matt Kraai
ceeff73819
Rewrote mkdir (and touched lots of things in the process).
2001-06-21 19:41:37 +00:00
Eric Andersen
091781e20e
Support tar -C, per bug #1176
...
-Erik
2001-06-21 19:30:10 +00:00
Eric Andersen
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
Eric Andersen
ea4abff595
Add in (and ignore) tar -p, since we preserver permissions automatically.
...
closes bug #1185
-Erik
2001-06-21 15:17:59 +00:00
Matt Kraai
075228a461
Remove documentation of unsupported sed options.
2001-06-21 14:40:55 +00:00
Matt Kraai
02c40a72b8
Always apply commands with no specified range.
2001-06-21 13:57:51 +00:00
Eric Andersen
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
Eric Andersen
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
Glenn L McGrath
06a71cced2
Initialise in_file to stdin, so it wont crash if no source specified
2001-06-20 08:07:34 +00:00
Glenn L McGrath
8e74bf94f3
Changed gz_open to ruturn a stream
2001-06-20 07:54:15 +00:00
Glenn L McGrath
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
2001-06-20 07:48:00 +00:00
Eric Andersen
b4a26e6fc0
For m68k, use __mc68000__ (not __m68k__ ), since that is what the
...
various m68k compilers seem to actually use...
-Erik
2001-06-19 15:00:52 +00:00
Mark Whitley
74c97cdba6
Changed a hard-coded path to a variable defined path.
2001-06-18 16:52:56 +00:00
Eric Andersen
32574a41b4
With a bit of care I was able to save about 100 bytes.
...
-Erik
2001-06-15 20:10:39 +00:00
Mark Whitley
bd4b621e91
Applied patch from Jim Gleason that makes it so busybox will still work even
...
if you rename it.
2001-06-15 16:54:25 +00:00
Glenn L McGrath
6bad1fa1fd
This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c
2001-06-15 03:13:00 +00:00
Eric Andersen
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
2001-06-13 08:02:45 +00:00
Glenn L McGrath
17822cd60a
Reorganise unarchive functions, new files, removed some
2001-06-13 07:34:03 +00:00
Glenn L McGrath
9aff903603
Reorganise archive extraction code
2001-06-13 07:26:39 +00:00
Eric Andersen
dab3d46b9d
A patch from Benjamin Zeckel <bzeckel@cisco.com> to allow
...
nslookup.c to display the correct default nameservers.
2001-06-12 22:21:24 +00:00
Eric Andersen
583e3ca456
Add in Devil-Linux
2001-06-12 22:04:40 +00:00
Matt Kraai
7bd773c9fe
Only use a login shell when it will run on a console.
2001-06-12 20:55:02 +00:00
Mark Whitley
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
2001-06-11 23:50:06 +00:00
Matt Kraai
bf0a010cf7
Copy files until EOF, not the reported file size, to deal with bad sizes in
...
the proc filesystem.
2001-06-11 13:58:02 +00:00
Matt Kraai
5246225596
Add padding to struct sysinfo needed by m68k (note and patch by Richard
...
Hirst).
2001-06-08 13:57:27 +00:00
Eric Andersen
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.
2001-06-07 16:42:05 +00:00
Eric Andersen
4f3e24979b
Add the Linux Terminal Server Project
2001-06-06 18:21:25 +00:00
Eric Andersen
817e73cb63
A patch from Larry to fix pathological things like '>""'
2001-06-06 17:56:09 +00:00
Matt Kraai
12422ffe3e
Added a new testcase from Larry Doolittle (inspired by a note from Vadim
...
Berkgaut).
2001-06-05 17:48:47 +00:00
Matt Kraai
c616e53ca2
Don't close file descriptors when we are duplicating them.
2001-06-05 16:50:08 +00:00
Eric Andersen
f4dd6e3d1a
Do not purge the .cvsignore files on 'make release' so that
...
people can properly import into their own CVS trees.
-Erik
2001-06-04 17:26:38 +00:00
Eric Andersen
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
2001-06-04 16:54:39 +00:00
Matt Kraai
67a4640333
Loop forever instead of exiting.
2001-06-03 05:55:52 +00:00
Glenn L McGrath
62ebe2e443
Remove space between ar options
2001-06-03 05:41:59 +00:00
Glenn L McGrath
cda5cf1c2f
Correct ar options
2001-06-03 05:15:04 +00:00
Matt Kraai
9344f7575e
Don't whine about already mounted filesystems when invoked with -a.
2001-06-03 02:21:38 +00:00
Eric Andersen
8b113f93b9
Vladimir's last_patch13, containing several bugfixes.
2001-06-01 21:47:15 +00:00
Eric Andersen
4f6753e586
Cope gracefully when people type something, then hit ^C.
...
-Erik
2001-05-31 17:17:12 +00:00
Eric Andersen
4f990533e3
Patch from Vladimir to fix up autocompletion on a files/dirs with spaces in
...
them in the presence of a quoting. Also revert my signal handling patch,
which seems to not solve the problem I thought it solved.
2001-05-31 17:15:57 +00:00
Eric Andersen
f12cc4ee68
Make hush the default shell. Ensure the applets_list gets
...
the axe on a distclean.
2001-05-30 19:09:40 +00:00
Eric Andersen
86f0167e39
grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.
2001-05-29 22:36:39 +00:00
Matt Kraai
6e9e136fcb
Use safe_strncpy.
2001-05-27 14:11:52 +00:00
Mark Whitley
4f6aea807b
More shell / quoting testcases from Larry.
2001-05-24 23:05:13 +00:00
Mark Whitley
8b7a0d807a
Some more patchelttes from Larry Doolittle.
2001-05-24 21:31:09 +00:00
Mark Whitley
0a4f578fdc
'Nother patch from Larry to fix a buglet in how the line gets sed-ified.
...
Also, more testcases and comments on bugs and formatting differences in some
of the testcases.
2001-05-24 21:24:39 +00:00
Mark Whitley
fa43e54b6f
Added support for grep -e and grep -f, closes bug #1164 . Also added some
...
testcases for these new features.
2001-05-24 18:36:18 +00:00
Mark Whitley
04052f96e1
Numerous new testcases from Larry Doolittle and a patch to tester.sh to avoid
...
a bash2-ism and quote variables that contain strings.
2001-05-24 17:15:33 +00:00
Eric Andersen
a813afc24f
Plug another memory leak
2001-05-24 16:19:36 +00:00
Eric Andersen
5a9d441b2c
Fix up some signed char vs int issues that show up on powerpc.
2001-05-24 14:16:28 +00:00
Eric Andersen
1c1f5d3047
Get BB_LASH out of the list...
2001-05-24 14:11:09 +00:00
Eric Andersen
a15dc15f12
Plug another memory leak in hush. This one showed up when backticked
...
commands were run. This one was sure a bugger to find.
-Erik
2001-05-23 23:46:09 +00:00
Eric Andersen
bf7df04ec1
Fix a massive memory leak in the run_list_test() function.
...
Rename run_list_test() as free_pipe_list().
Rename run_pipe_test() as free_pipe().
-Erik
2001-05-23 22:18:35 +00:00
Eric Andersen
77d9268892
Patch from larry to fix some grammar errors.
2001-05-23 20:32:09 +00:00
Matt Kraai
bdd4eced84
Commit a patch by Larry Doolittle which fixes recursive calls to file_peek,
...
and improves some debugging messages.
2001-05-23 17:43:00 +00:00
Matt Kraai
774d135b66
Make more robust (patch by Larry Doolittle).
2001-05-23 14:45:09 +00:00
Eric Andersen
3200f5ac68
It turns out the descriptions of both dos2unix and unix2dos
...
were broken. This fixes.
-Erik
2001-05-22 22:39:10 +00:00
Eric Andersen
57e6a49e5b
Excellent. This patch from Larry fixes the behavior of hush
...
when builtins are included in pipes.
2001-05-22 22:34:51 +00:00
Eric Andersen
9978576f15
Fix this case. No, really this time.
...
unset FOO
export FOO=bar
FOO=baz
echo "global env: " `env | grep ^FOO`
echo "local env: " `set | grep ^FOO`
-Erik
2001-05-22 21:37:48 +00:00
Eric Andersen
aeb44c4da6
Fix a race. Sometimes by the time we got to checkjobs(), the
...
pipe struct had already been freed. Return immediately if the
pipe is NULL.
2001-05-22 20:29:00 +00:00
Eric Andersen
816867858b
Oops. Remove some debug noise I left in.
2001-05-22 19:23:35 +00:00
Eric Andersen
94ac244dea
Updates from both Vladimir and Larry
2001-05-22 19:05:18 +00:00
Matt Kraai
1eb4acfc23
Fixed misnamed rewind command (noted by Tom Oehser).
2001-05-22 14:32:35 +00:00
Matt Kraai
edc806507c
Fixed extra -- lines (noted by Christophe Boyanique).
2001-05-22 14:29:27 +00:00
Matt Kraai
117231c44f
Make - read compressed data from stdin (thanks to Marius Groeger).
2001-05-22 14:23:02 +00:00
Matt Kraai
7f7348b7b2
Correctly remove leading slashes upon extraction (thanks to Marius Groeger).
2001-05-22 14:18:03 +00:00
Mark Whitley
1d9d41150b
Fixed mishandling of -c & -l options and accounted for case when we're
...
grepping only one file.
2001-05-21 21:13:00 +00:00
Eric Andersen
004015e9c4
Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug
...
#1130 (i.e. When you turn on features it should always ADD features)
2001-05-21 20:30:51 +00:00
Eric Andersen
abec344ab7
A couple more minor touchups
2001-05-21 17:58:01 +00:00
Eric Andersen
317827d9e5
Several cleanups for usage messages
2001-05-21 17:50:53 +00:00
Matt Kraai
73991ff925
Fix tell support.
2001-05-21 17:01:32 +00:00
Eric Andersen
ada18ff0f5
The latest patch from Larry
2001-05-21 16:18:22 +00:00
Eric Andersen
8ae319a322
This patch from Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de> is based on
...
the work of Jinux Kim on his "babobox" (derived from busybox-0.42), and enables
kernel module loading and unloading for uClinux/m68k.
2001-05-21 16:09:18 +00:00
Eric Andersen
2f6e1f880b
Patch from Gernot Poerner <gp@it-netservice.de>. Adds in
...
mount bind support.
2001-05-21 15:59:34 +00:00
Matt Kraai
13a70ac2ab
Fix open mode for IOCTLs which write to the tape.
2001-05-21 15:00:39 +00:00
Eric Andersen
9ffb7dd9a4
This is a patch from Vladimir:
...
> I rewrite *local_variable* function in hush.c with:
> 1) remove many memory leaks
> 2) add support read_only protect (require write builtin function for set this,
> I write this special for variable HUSH_VERION=0.01)
> 3) commad read set only local variable now
> 4) remove many error messages if "set unset export" not defined variable
> (bash syntax not put and set error code). Hmm, if I set result to -1, you hush
> called waitpid and returned with error "no waitpid" ( i not found place this
> error).
> 5) destroy error in new version check xgetcwd()==NULL and set "(unknow)" -
> this have error: crashe in next call `pwd`, but xgetcwd(not null) called
> free(arg).
> 6) next add integraion with libbb
Valdimir's patch missed two cases of local variable handling
FOO=bar
export FOO=baz
unset FOO
and
export FOO=bar
FOO=baz
which were working before, so I fixed those two cases.
2001-05-19 03:00:46 +00:00
Eric Andersen
6197c51834
Fix an escape problem in the docs. Some \n's didn't have the '\'
...
escaped, and so were messsing the out output.
-Erik
2001-05-18 23:14:53 +00:00
Mark Whitley
b6967635eb
(Almost) brand-new version of cut that supports muitiple lists of positions,
...
per feature request from Tom Oehser.
2001-05-18 23:04:51 +00:00
Matt Kraai
1844770fec
Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.
2001-05-18 21:24:58 +00:00
Matt Kraai
d6ef07406d
Rewrote copyfd to use library functions, terminate, and copy correct data.
2001-05-18 14:14:55 +00:00
Matt Kraai
6943815400
Fix applet_name.
2001-05-17 20:40:21 +00:00
Matt Kraai
231f998aba
Switch from hstrerror to herror for libc5 systems.
2001-05-17 14:19:05 +00:00
Matt Kraai
7cedac567c
Remove unused function. If necessary, we can use remove_file instead.
2001-05-17 04:03:22 +00:00
Matt Kraai
bc0f783a5f
Fix invocation of builtin shell to have proper argc and argv.
2001-05-17 03:54:37 +00:00
Matt Kraai
233817437d
Always print a newline after a matching substitution.
2001-05-17 01:02:58 +00:00
Eric Andersen
bfae2529b8
It turns out job control in both hush and lash was broken by the
...
signal handling in cmdedit.c. Disabling it makes the shells behave
themselves again. hush isn't quite there, but is getting close...
-Erik
2001-05-17 00:14:27 +00:00
Eric Andersen
2439a59828
Remove/replace the "div" call.
2001-05-16 18:53:34 +00:00
Matt Kraai
8f7a4ad442
Add missing include, noted by Larry Doolittle.
2001-05-16 17:05:03 +00:00
Matt Kraai
bf381a0ad8
Whoops. Forgot the x.
2001-05-16 15:52:23 +00:00
Matt Kraai
c55b8d41c1
Add xgethostbyname and herror_msg* functions.
2001-05-16 15:40:51 +00:00
Matt Kraai
59df6f7398
Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c
...
by Larry Doolittle.
2001-05-16 14:21:09 +00:00
Eric Andersen
bc604a2f41
Move init of a bunch of globals into main so we are at least
...
a bit more reentrant.
-Erik
2001-05-16 05:24:03 +00:00
Eric Andersen
f72f562b2f
Fix the behavior of local shell variables to match that of bash and ash.
...
-Erik
2001-05-15 23:21:41 +00:00
Eric Andersen
9abfe85e96
Suggestion from Larry: no format string, use fputs instead.
2001-05-15 20:11:49 +00:00
Eric Andersen
50ae3102fb
Patch from Adam Heath <doogie@debian.org> to add arbitrary header support
...
to wget, so it can now do funky interactive things with cgi scripts.
2001-05-15 17:51:37 +00:00
Eric Andersen
55f9872616
This patch from Adam Heath <doogie@debian.org>, makes print_file
...
(used by cat, grep, sed, etc) quite a bit faster.
2001-05-15 17:48:09 +00:00
Eric Andersen
c911a4389b
Patch from Vladimir:
...
1) fixed a bug that could crash df, mount, and umount applets if the root
device name was longer then the word "root" (/dev/loop1 vs /dev/root) -
2) severl functions needed static declaration in the umount applet
3) update declaration for function in last_char_is() in libbb
2001-05-15 17:42:16 +00:00
Eric Andersen
15649c11f3
Oops. I left in some debug noise.
2001-05-15 17:28:26 +00:00
Eric Andersen
20a69a77d2
Write set_local_var() and fixup lookup_param() so you can now use
...
shell local variables.
-Erik
2001-05-15 17:24:44 +00:00
Eric Andersen
78a7c99f7f
This patch covers one big part of variable handling.
...
$ a=b foo
should be handled correctly.
$ a=b
is parsed OK, but the actual variable setting is not
yet written. Except for some weird exceptions related
to quoting rules, this code passes (matches ash behavior)
all the tests I threw at it.
If someone now writes set_local_var(), and updates lookup_param()
to match, we can claim success!
- Larry
2001-05-15 16:30:25 +00:00
Matt Kraai
be9f44a7df
Fix incorrect length passed to accept noted by Larry Doolittle.
2001-05-15 03:05:39 +00:00
Mark Whitley
336480fe6f
Added some testcases for grep and sed (many more could still be added)
2001-05-14 21:18:54 +00:00
Mark Whitley
d928accbbd
...Need to print just a few more newlines.
2001-05-14 20:44:26 +00:00
Eric Andersen
2416dfc3c9
A compromise solution for insmod
2001-05-14 20:03:04 +00:00
Mark Whitley
dd527d3c62
...And now that we're chomping lines, we need to re-add the newline later...
2001-05-14 19:53:08 +00:00
Mark Whitley
9de2659264
We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.
2001-05-14 19:44:44 +00:00
Mark Whitley
35e59bed97
Fixed a subtle bug in the handling of -l and -c flags.
2001-05-14 19:40:32 +00:00
Mark Whitley
452cc1f293
Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work
2001-05-14 19:23:02 +00:00
Matt Kraai
9496466044
Follow symbolic links when searching for modules.
2001-05-14 18:27:25 +00:00
Eric Andersen
14d354312a
Per suggestion from Vladimir, eliminate check_wildcard_match(), which
...
was only being used by insmod these days.
Also, I spent a minute adjusting insmod so that it first searches
/lib/modules/`uname -r` and then (if that fails) searches /lib/modules,
which makes bb insmod behave much more like the real insmod, and should
avoid nasty surprises (such as the recent "Modutils vs. Busybox..."
thread).
-Erik
2001-05-14 17:07:32 +00:00
Matt Kraai
cb378a5267
Add missing periods and delete superfluous whitespace.
2001-05-14 06:35:15 +00:00
Eric Andersen
a17b3631fe
Do not ever change permissions on existing directories, only
...
on directories we created while extracting a tarball. Fix
based on bug report and patch from Konstantin Boldyshev
<konst@linuxassembly.org >
-Erik
2001-05-13 15:39:30 +00:00
Eric Andersen
95a349f427
When doing a 'wget -O -' turn on the quiet flag, lest the status bar
...
noise get mingled with the retrieved webpage.
-Erik
2001-05-13 00:55:54 +00:00
Eric Andersen
ddb00545b7
A patch from Aaron Lehmann <aaronl@vitelus.com> to fix a
...
crash on a broken regexp.
2001-05-13 00:48:09 +00:00
Eric Andersen
4819c3d477
Make the locale stuff only do the getpid==1 check if BB_INIT is defined
2001-05-13 00:33:16 +00:00
Mark Whitley
1f3b9f297e
Added support for 'r' command in sed.
2001-05-11 22:27:13 +00:00
Eric Andersen
cfa88ecb72
Fix up some silly warnings
2001-05-11 18:08:16 +00:00
Eric Andersen
5f265b755a
Fix a segfault in lash, hush, and cmdedit. Each of these used
...
xgetcwd, but did not check the return for a NULL, and then continued
to call strlen on the NULL when the cwd had been removed from under it.
-Erik
2001-05-11 16:58:46 +00:00
Eric Andersen
9d94deabd3
Use xgetcwd
2001-05-11 16:36:03 +00:00
Eric Andersen
238da24620
Fix the chown usage text, also thanks to Lars Kellogg-Stedman <lars@larsshack.org>
2001-05-11 16:31:46 +00:00
Eric Andersen
2b02ab9606
This patch from Lars Kellogg-Stedman, fixes the behavior of
...
chown to be consistant with GNU chown, so that it follows
symlinks (who cares about the perms on a link anyways?) unless
the -h option is supplied.
-Erik
2001-05-11 15:55:41 +00:00
Matt Kraai
eb5f433736
Check that putenv succeeded, suggested by Jonas Holmberg.
2001-05-11 15:16:28 +00:00
Matt Kraai
c96381be40
Fix env usage information.
2001-05-11 14:28:17 +00:00
Matt Kraai
5b44f48afc
Fix handling of '-' option and way that variables are added to the
...
environment from Jonas Holmberg <jonas.holmberg@axis.com >. Fix
handling of command options by adding + to getopt string.
2001-05-11 14:26:29 +00:00
Matt Kraai
f3e79ba6e3
Fix symlink removal problem noted by Erik Andersen.
2001-05-11 02:35:36 +00:00
Matt Kraai
6e91f69a0d
Add installation instructions from Tomas Pospisek <tpo_hp@sourcepole.ch>.
2001-05-10 14:12:20 +00:00
Matt Kraai
854125f6e6
Make stdio functions which can be interrupted by the progressmeter timer
...
recover gracefully from EINTR.
2001-05-09 19:15:46 +00:00
Eric Andersen
d283e1cfe9
Bump version to 0.52pre
2001-05-09 17:31:27 +00:00
Eric Andersen
1a6d39b259
A few more structural updates for job control.
...
-Erik
2001-05-08 05:11:54 +00:00
Eric Andersen
0a36de0580
Fix a stupid segfault caused by dereferencing a NULL ptr.
...
-Erik
2001-05-08 04:25:46 +00:00
Eric Andersen
45e92ba2ce
This patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works.
...
This way leaks memory, but oh well. We will probably fix that when we get
around to doing local variables.
2001-05-07 23:53:09 +00:00
Eric Andersen
8cd16d8fd3
This syncs things with Vladimir's latest patches. Also gets
...
rid of useless 'const int' declarations.
-Erik
2001-05-07 23:11:23 +00:00
Eric Andersen
186bf1defc
This is Vladimir's update to last_char_is(). Since 'char *' is
...
the least common denominator, I modified it to use that (not const),
which will minimize the need for casting elsewhere.
2001-05-07 23:10:16 +00:00
Eric Andersen
de0ca0cd9e
Silence cut so it doesn't whine during compilation
2001-05-07 23:07:17 +00:00
Eric Andersen
f3f9f3efa7
A patch from Vladimir to simplify chomp()
2001-05-07 23:02:39 +00:00
Eric Andersen
4ad13e5d95
A patch from Vladimir to simplify concat_path_file() and
...
make it less likely to break.
2001-05-07 23:01:32 +00:00
Eric Andersen
c33ebc9741
A patch from Vladimir to use last_char_is(), and a patch from
...
Larry to fix a silly bug when BB_FEATURE_VI_OPTIMIZE_CURSOR
is not defined.
2001-05-07 22:57:47 +00:00
Eric Andersen
04b0354d8e
Patch from Vladimir to use last_char_is to simplify du.c
2001-05-07 22:49:43 +00:00
Eric Andersen
8f3e51b4ad
Patch from Vladimir to remove testing stuff from stty
2001-05-07 22:47:45 +00:00
Eric Andersen
8d35134ad8
A bug fix from Vladimir for a memory leak I stupidly
...
added to which.c.
2001-05-07 22:45:06 +00:00
Eric Andersen
83a2ae2184
More hush updates from Larry:
...
Update some comments. Generate partial placeholders for the missing
builtins. Write builtin_umask. Properly treat exec without arguments
as a means to open/close files within the running script. Implement
"4<&-" that encodes for file descriptor closure.
2001-05-07 17:59:25 +00:00
Eric Andersen
7e1273edf7
Patch from Jim McQuillan to pass the terminal type to the remote host.
2001-05-07 17:57:45 +00:00
Eric Andersen
238bc4090d
Per comment from Jim McQuillan <jam@mcquil.com>, don't log
...
syslogd startup/shutdown messages as KERN.EMERG, but use
SYSLOG.INFO instead.
2001-05-07 17:55:05 +00:00
Eric Andersen
da7f095c12
Update comment re USE_SYSTEM_PWD_GRP
...
-Erik
2001-05-07 17:51:34 +00:00
Eric Andersen
28355a36da
Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,
...
make xreadlink() return NULL on failure, and make sure everyone
uses the interface correctly.
-Erik
2001-05-07 17:48:28 +00:00
Eric Andersen
822c3837f9
Another vi update from Sterling Huxley:
...
- All of the ESC sequences are now in variables. This should make
re-targeting for other terminals easier.
- The initial screen draw does not force out every single column.
Should be faster.
- The place_cursor() routine trys to be smarter about moving the
cursor. This is optional based on BB_FEATURE_VI_OPTIMIZE_CURSOR.
- The 't' and 'f' intra-line positioning commands were added.
They can now be used as targets in 'c' and 'd' commands, i.e.,
dfx - delete from dot to next 'x'
dtx - delete from dot to the char before next 'x'
- show_status_line() uses a static int checksum to remember what
is currently displayed on the screen and not re-draw the status
line unless it has changed.
- Some of the code in refresh() was moved out to format_line().
refresh() trys to send out the smallest segment containing
the changed chars rather than the whole line.
- Added "flash" to the :set command to specify if error indication
should be by flashing the screen or ringing the bell.
- Changed the rawmode() routine so that it turns off the
NL -> CR NL translation. On output of a NL, the OS will not add
a CR.
- If vi was started as "view", with global read-only mode,
and another file is opened, the file is opened read-only
rather than read+write.
2001-05-07 17:37:43 +00:00
Glenn L McGrath
713b398700
woops, forgot the break statment
2001-05-07 12:06:37 +00:00
Glenn L McGrath
5bcfc9ba1a
Tolerate -q argument, if -q is passed give a warning and continue rather than just fail
2001-05-07 12:01:58 +00:00
Glenn L McGrath
cc0aa0f2d7
Actually we dont need to check if the device is nfs as it wont be stat'ed
2001-05-07 01:51:24 +00:00
Glenn L McGrath
1b62619446
woops, i shouldnt be so presumtuous? about what the error will be
2001-05-07 01:40:59 +00:00
Glenn L McGrath
3aae10014c
Device may not be a real filename
2001-05-07 01:38:03 +00:00
Matt Kraai
2e6c878763
Rewrite -c and -b processing to shrink code and eliminate buffer overrun.
2001-05-05 16:19:13 +00:00
Glenn L McGrath
6b8c550d88
include libbb.h after other includes
2001-05-05 03:19:12 +00:00
Eric Andersen
2dcfba7117
Larry's variant on Evin Robertson's fix to what I messed up
...
trying to make job control work. This fix makes it so that
hush doesn't error out when init hasn't set up job control,
as in when init=/bin/sh
2001-05-04 22:13:37 +00:00
Eric Andersen
044a72d0d5
Larry suggested using concat_path_file() would be an even safer bet
...
for 'which'. I ageed, so I whipped this up -- which revealed a bug in
concat_path_file. It turns out that that a '/' can be appended from
either the path _or_ the filename, but only the former was checked.
-Erik
2001-05-04 22:04:24 +00:00
Mark Whitley
a0ba9f45fb
Wrote documentation and scripts for creating a busybox boot floppy. Initial revision.
2001-05-04 21:46:00 +00:00
Matt Kraai
d24f878546
Don't reset parents context when we encounter an terminator. Fixes
...
if true; then if true; then true; fi; fi
2001-05-04 21:20:20 +00:00
Eric Andersen
7526f035f4
Fix a buffer overflow. Which accounted for the size of the path, plus the the
...
'/', plus the size of the test command. It did not account for the terminating
NULL, which overwrote the end of the string.
-Erik
2001-05-04 20:47:33 +00:00
Eric Andersen
e5ffb911e8
If it fails to run a builtin, let it fall through to
...
exec the real thing.
-Erik
2001-05-04 16:30:29 +00:00
Matt Kraai
e6bf66eada
Fix two bugs reported by Ralph Jones.
2001-05-04 14:49:58 +00:00
Eric Andersen
b0aca921be
A todo update from larry to acknowledge the existance of hush
2001-05-03 17:35:48 +00:00
Eric Andersen
87d893c04b
devfs does not support creation of regular files. So change the
...
test a bit so as to not possibly create a regular file.
-Erik
2001-05-03 07:01:41 +00:00
Matt Kraai
6689140597
Remove summary header. Not present in GNU or SUSv2.
2001-05-03 04:45:40 +00:00
Matt Kraai
80abc45182
Move up waitpid error check so that errno isn't clobbered by tcsetpgrp.
2001-05-02 21:48:17 +00:00
Matt Kraai
adcbc12d85
Canonicalize path before trying to unmount it.
2001-05-02 21:24:51 +00:00
Matt Kraai
3425111bb9
Fix bug #1108 by always canonicalizing arguments.
2001-05-02 21:17:38 +00:00
Eric Andersen
0fcd447d59
Some more job control updates. It will now sucessfully background
...
stuff. Good luck getting things back into the foreground though...
-Erik
2001-05-02 20:12:03 +00:00
Matt Kraai
20a3069ec0
Don't treat newline as pipe separator when processing substitutions.
2001-05-02 17:52:49 +00:00
Eric Andersen
19ec9ee91e
Use .png for images (removing all .gifs) and make them all 90x36
...
-Erik
2001-05-02 17:19:25 +00:00
Matt Kraai
9f8caf134f
Fix $(...) construction. Noted and patched by Larry Doolittle
...
<ldoolitt@recycle.lbl.gov >. I'm just a patch whore. :)
2001-05-02 16:26:12 +00:00
Eric Andersen
bafd94f154
First pass at getting job control working. This gets the infrastructure
...
in place, but something is still missing/wrong in there. Testing with
'grep foo &' seems to put _hush_ into the background. Pondering...
-Erik
2001-05-02 16:11:59 +00:00
Matt Kraai
1c8a59ab95
Use the current pgrp, not pid, when resetting the foreground process group.
...
Fixes bizarre suspension when executing `echo`.
2001-05-02 15:37:09 +00:00
Matt Kraai
f162e7d09d
Don't segfault if the first word is the empty string.
2001-05-02 14:48:48 +00:00
Eric Andersen
e67c3ce327
Another update from Larry:
...
Makes hush return code equal to that of the last command executed.
Fixes the mode where input comes from a file.
2001-05-02 02:09:36 +00:00
Matt Kraai
e0244b0642
Skip headers with empty filenames, rather than stopping.
2001-05-01 21:12:31 +00:00
Eric Andersen
b9f5b82339
Another refinement, this time from Larry.
2001-05-01 16:24:32 +00:00
Eric Andersen
6d553ef200
Argh. Now we break non-pristine builds. Check a bit more carefully.
...
-Erik
2001-05-01 14:54:35 +00:00
Eric Andersen
abde065935
Oops. The dangers of applying patches by hand...
2001-05-01 14:37:03 +00:00
Eric Andersen
4ed5e37d4b
Another hush update from Larry:
...
Minor improvements. Something is still broken with running
scripts via "hush filename". All the following are now handled
acceptably (matches ash, not bash).
if true; then echo foo1; fi
if
true; then echo foo2; fi
if true; false; then echo bar; else echo foo3; fi
if true || false; then echo foo4; fi
- Larry
2001-05-01 01:49:50 +00:00
Eric Andersen
3f99b567b8
A patch from Larry to fix pristine source builds (again).
...
I just can't seem to _not_ break it. Sigh.
2001-05-01 01:40:34 +00:00
Eric Andersen
aac75e5a78
Some more hush.c updates from Larry Doolittle.
2001-04-30 18:18:45 +00:00
Eric Andersen
0e9aef36fa
Oops. I was a bit too hasty and also changed applet_name.
2001-04-30 18:18:02 +00:00
Mark Whitley
8a633268ef
Made new xreadlink function for libbb and changed applets to use it instead of
...
readlink(2).
2001-04-30 18:17:00 +00:00
Eric Andersen
6f34394454
These messages can be .rodata, so make them even more const.
...
-Erik
2001-04-30 18:08:03 +00:00
Eric Andersen
65504ac12c
These do not need initial values. Let them live in the bss.
...
-Erik
2001-04-30 18:07:24 +00:00
Eric Andersen
defa4f93c2
Per suggestion by Matt, make sh.c a real target. There is no
...
need for the useless sh_link dummy target -- use the real thing.
-Erik
2001-04-30 17:52:36 +00:00
Matt Kraai
218aa370b4
Fix user permissions of copied directories.
2001-04-30 17:32:43 +00:00
Matt Kraai
43ca13714b
Simplify permission handling for FIFOs.
2001-04-30 16:43:21 +00:00
Matt Kraai
24abecc349
Fix exit status when there is an error copying a file.
2001-04-30 16:37:04 +00:00
Glenn L McGrath
af166e7ce0
Logic reversal for last_char_is
2001-04-29 00:50:33 +00:00
David Kimdon
2bf4dad7ec
fix to applet_source_list rule so Debian package continues to build
2001-04-28 16:37:23 +00:00
Eric Andersen
07e462fd6d
Matt was complaining. Hopefully this helps the sh.c link situation
2001-04-27 18:36:43 +00:00
Matt Kraai
72ab975a6b
Terminate source correctly when copying symlink. Report and patch by
...
Brian Webb <webbb@desertscenes.net >.
2001-04-27 15:40:27 +00:00
Eric Andersen
088875fec4
Use BUFSIZ for the_command to match size used in cmdedit
2001-04-27 07:49:41 +00:00
Eric Andersen
af44a0e8f4
An update to hush from Larry:
...
It should recover more smoothly from syntax errors, and it now
has a decent guess when the reserved word construct is over
(or not) to control execution and prompting. I took out all the
redundant standalone test copies of libbb routines, but left in a
hook so I can include those for my testing. I'll post that include
file on my web site.
- Larry
2001-04-27 07:26:12 +00:00
Eric Andersen
0081466925
Be a bit more sneaky about the sh.c symlink so you don't need to
...
do a mke clean for it to happen.
-Erik
2001-04-26 23:29:10 +00:00
Eric Andersen
0f9426edb0
Ignore some generated files
2001-04-26 23:23:04 +00:00
Eric Andersen
25f2703015
This is the initial checkin of Larry Doolittle's hush.c, using his
...
April 25, 2001 snapshot, adjusted a bit by me so it has cmdedit support.
This checkin also removes sh.c. In the future sh.c will be a symlink to
your shell of choice. For now, this symlink will default to pointing to
lash.c (as in the past). If you change the symlink to point to hush.c,
then thats what you will get. This symlink business is a temporary situation,
which will be cleaned up Real Soon Now(tm).
-Erik
2001-04-26 23:22:31 +00:00
Eric Andersen
a1dbc22469
Disable lash
...
-Erik
2001-04-26 23:10:22 +00:00
Eric Andersen
924ab5b7d3
These days busybox.pod is autogenerated, so it should be removed
...
from CVS.
2001-04-26 23:06:39 +00:00
Eric Andersen
7f3b86e7bf
A fix from Larry for a corner case where insmod could end up
...
doing an xrealloc(0).
2001-04-26 19:29:58 +00:00
Matt Kraai
6aabfd5e30
Fix handling of permission addition and removal (e.g., o-r).
2001-04-26 18:55:29 +00:00
Eric Andersen
ca85cdbe4c
Doh. I never allocated storate for the struct stat I am using.
...
There was just a never initialized pointer.
-Erik
2001-04-26 18:43:36 +00:00
Matt Kraai
468f504fd7
Fix handling of -R flag.
2001-04-26 18:27:47 +00:00
Eric Andersen
c1bdffe99b
Another nice cleanup from Larry. This adds a new last_char_is() function and
...
uses it to avoid possible buffer underruns whn strlen is zero, and avoid the
possible space-hogging inline of strlen() in several cases.
-Erik
2001-04-26 15:56:47 +00:00
Eric Andersen
3c3277f0bd
As Larry pointed out, this the off by one canbe fixed much more elegantly.
2001-04-26 15:41:51 +00:00
Eric Andersen
30592a5451
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
...
-Erik
2001-04-26 14:56:45 +00:00
Mark Whitley
e55987896a
Applied patch from Larry Doolittle to fix pristine build breakage.
2001-04-25 23:49:43 +00:00
Mark Whitley
2789906aad
Removed obsoleted BB_FEATURE_RM_INTERACTIVE
2001-04-25 22:08:56 +00:00
Mark Whitley
207587a9b4
Applied patch from I.Q. to add -s to cmp.
2001-04-25 20:41:02 +00:00
Mark Whitley
c29c44c00e
libbb.h now includes ../busybox.h. This way, files in libbb that have
...
BB_[FEATURE] #defines won't be ignored. Credit to Magnus Damm for spotting
this.
2001-04-25 18:06:21 +00:00
Eric Andersen
4f4bcfcd1a
Some more cleanups for insmod from Larry.
...
-Erik
2001-04-25 17:22:32 +00:00
Eric Andersen
c57a75d896
Larry noticed that chown and chgrp has the version numbers off a bit
...
for glibc's lchown support. Thanks Larry.
2001-04-25 17:12:33 +00:00
Mark Whitley
4b541a8817
Moved some #ifdefs down below #include "busybox.h" where they belong.
2001-04-25 17:10:30 +00:00
Mark Whitley
67d7fe66e7
Sync'ed up the olympus section between this and stock Config.h
2001-04-25 17:05:51 +00:00
Mark Whitley
4f3558af17
Fixed a BB_MTAB #define buglet reported by Magnus Damm.
2001-04-25 17:03:40 +00:00
Eric Andersen
04095e58fb
Move messages.c to libbb. Make each string in messages.c be its own .o file.
...
This way, we can new get rid of all that tedious #define rubbish we used to
need to enable specific messages. This way is enormously simpler, and as a
bonus also ends up saving us 96 bytes.
-Erik
2001-04-25 05:39:18 +00:00
Eric Andersen
3676374915
Cleanup more carefully after pod2html
2001-04-24 21:46:07 +00:00
Eric Andersen
f227815c3a
Several cleanups from Larry.
2001-04-24 21:41:41 +00:00
Matt Kraai
8810bdbba3
Rewrote rm.
2001-04-24 20:04:18 +00:00
Eric Andersen
9f0fedb8f6
Split up chmod_chown_chgrp.c into 3 separate apps. This unfortunately
...
adds 384 bytes to the overall size. But having each app be standalone
is the Right Thing(tm) so we will just have to live with it.
-Erik
2001-04-24 18:07:19 +00:00
Matt Kraai
3a4aef5a4c
Update applet define from BB_CP_MV to BB_CP and BB_MV.
2001-04-24 15:19:04 +00:00
Matt Kraai
01441036e9
Use generic flag names.
2001-04-24 01:30:02 +00:00
Matt Kraai
9ff9325e60
Move applet_name declaration from busybox.h to libbb.h.
2001-04-24 01:12:33 +00:00
Mark Whitley
af030496fa
Applied patch from Larry Doolittle to remove some strlen calls, and add one
...
paranoia check to avoid buffer underrun. Saves 120 text bytes.
2001-04-23 23:16:20 +00:00
Matt Kraai
de1b262942
Remove file obsoleted by cp/mv rewrite.
2001-04-23 19:48:26 +00:00
Matt Kraai
91b2855ba8
Rewrite cp and mv to be SUSv2 compliant.
2001-04-23 18:53:07 +00:00
Mark Whitley
4e9267d76c
Reversed last patch; unnecessary.
2001-04-23 17:56:27 +00:00
Mark Whitley
4b66dabc76
Added a sanity check to fix weird bug exposed when sourcing in commands from a
...
file with lash. Based on report from Heinz Walter.
2001-04-23 17:04:41 +00:00
Matt Kraai
8a24a65d2f
Change link order so that libbb functions use libpwd.a when appropriate.
2001-04-23 16:11:57 +00:00
Eric Andersen
ed424dbf1d
Some patches from Gennady Feldman. Fixed a glob problem such that
...
'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control.
Made cmdedit exit sanely when it cannot read input.
2001-04-23 15:28:28 +00:00
Eric Andersen
d8862928c2
A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)
...
so init will work on serial consoles with 2.4.3+ kernels, thanks
to Fabrice Gautier <gautier@email.enst.fr > for finding this one.
-Erik
2001-04-23 15:14:11 +00:00
Glenn L McGrath
f5c358bc98
Simplify file_prefix handling, and use of *dir variable.
2001-04-23 13:52:02 +00:00
Matt Kraai
782ab3ccf8
Simplify pathname building, in which a bug was noted by Larry Doolittle,
...
a patch was provided by Vladimir Oleynik, and am improved patch commited
by me.
2001-04-23 01:07:00 +00:00
Glenn L McGrath
ee0d93ed04
Fix horrible, horrible memmory leak. I wondered why processes were dying !
2001-04-21 10:26:15 +00:00
Glenn L McGrath
89dc02d944
Clearly define out exclude list code, as recommended by Larry Doolittle
2001-04-21 02:12:13 +00:00
Mark Whitley
56c14a6473
Fixed a buglet where an extra newline was being added after an insert command
...
in some cases.
2001-04-20 23:41:44 +00:00
Mark Whitley
497ef46587
Made a correction to a bad test expression. Props to Larry Doolittle for
...
spotting this one.
2001-04-20 23:27:17 +00:00
Mark Whitley
3e310ac309
Applied patch from Larry Doolittle to give users the third option of putting
...
buffers in BSS (in addition to stack and heap).
2001-04-20 17:40:33 +00:00
Glenn L McGrath
6ebd633829
Set permissions of created file
2001-04-20 05:16:38 +00:00
Eric Andersen
46cd74b9e3
This has two patches. First it moves interface.c to libbb (it is
...
support code after all). It also contains a patch from Larry Doolittle
that removes two instances of "strlen([^)]*) *- *1", un-shadows two
variables, relaxes requirement for a sprintf(3) that returns number of
bytes written, and eliminates a duplicate subroutine.
2001-04-19 16:55:27 +00:00
Matt Kraai
3ce79338e6
Fix buffer underrun noted and solved by Larry Doolittle.
2001-04-19 14:56:23 +00:00
Eric Andersen
0a3bda2c53
Move real_loop.h to libbb, where it belongs.
...
-Erik
2001-04-18 22:23:22 +00:00
Eric Andersen
b5ec61e4f5
Add types for the inline funcs, thanks to Ralph Siemsen <ralphs@netwinder.org>
2001-04-18 20:17:05 +00:00
Matt Kraai
53265546a6
Eliminate spurious warning, convert to getopt, and eliminate redundant check.
2001-04-18 16:05:34 +00:00
Matt Kraai
96dcd19b8a
Fix a number of problems with argument handling.
2001-04-18 15:54:09 +00:00
Matt Kraai
54652230d4
Eliminate a segfault when called on an existing file with out an extension:
...
touch foo && gunzip foo
2001-04-18 15:51:45 +00:00
Matt Kraai
b181056e06
Eliminated seeks so that we work correctly on pipes, and removed reliance on
...
undefined evaluation ordering. Thanks to Anthony Towns for explanation and
solution.
2001-04-18 14:49:55 +00:00
Glenn L McGrath
bcfeb2ac44
Fix zcat/gunzip when reading from stdin
2001-04-18 13:34:09 +00:00
John Beppu
2771d1a574
- updated busybox_header.pod by adding adjtimex to the list.
...
- a new busybox.pod that reflects my fixes, and todays patches
to usage.h
2001-04-17 23:57:23 +00:00
Mark Whitley
fccaa3629b
Applied patch from I.Q. to add sort -u as a feature.
2001-04-17 18:56:18 +00:00
Mark Whitley
6e808ca354
Changed line[strlen(line) - 1] = '\0'; to chomp(line);
2001-04-17 18:26:11 +00:00
Mark Whitley
30ac01cca7
Applied a patch from Laurence Anderson to fix the wget statusbar and a patch
...
to usage.h to document the -q option.
2001-04-17 18:13:16 +00:00
Mark Whitley
3828dbed57
Applied patch from I.Q. to fix problem with sort -n.
2001-04-17 17:47:33 +00:00
Mark Whitley
31868b85be
Added some help messages.
2001-04-17 17:37:47 +00:00
Mark Whitley
59a86cad67
The tiniest of bracket-placement fixes.
2001-04-17 17:30:44 +00:00
John Beppu
5d81768cf1
- usage.h
...
o echo_example_usage
needed to escape some backslashes in an inner quote
o find_full_usage
missing a \n at the end of the -name line
? getopt_full_usage
the -o line has tab issues, but I didn't fix them.
o length_example_usage
removed some double-quotes that were within an inner quotes
o printf_example_usage
needed to escape a backslash in an inner quote
o sort_example_usage
needed to escape some backslashes and double quotes in an inner quote
o tftp_full_usage
s/nameing/naming/;
o umount_full_usage
remove colons after options for consistency w/ other full_usage messages
o uniq_example_usage
needed to escape some backslashes and double quotes in an inner quote
- TODO xargs -l ?
- docs/autodocifier.pl POD && comment updates
- docs/busybox_footer.pod added Larry Doolittle and Sterling Huxley
2001-04-17 17:09:34 +00:00
Matt Kraai
a3045dfd25
Convert mount to use getopt.
2001-04-17 04:48:51 +00:00
Matt Kraai
1240082e37
Further cleanup of mount option handling.
2001-04-17 04:32:50 +00:00
Matt Kraai
24ed3bee0c
Fix -a support (broken by previous patch).
2001-04-17 04:26:05 +00:00
Matt Kraai
3d406da0c9
Fix segfault on `mount -t nfs' reported by Gratien D'haese.
2001-04-17 04:22:22 +00:00
Eric Andersen
1c0d311ff4
Several fixes from Sterling Huxley for the vi applet.
2001-04-16 15:46:44 +00:00
Glenn L McGrath
ae1c704c44
Write full status file
2001-04-16 10:26:46 +00:00
Glenn L McGrath
33431ebb9a
dpkg improvements, use full package struct, avoid extracting to tmp dir, rename variable.
...
deb_extract, untar and dpkg_deb modified to make the above possible
2001-04-16 04:52:19 +00:00
Glenn L McGrath
3136904ff6
Document new dpkg-deb funtions
2001-04-15 12:53:24 +00:00
Glenn L McGrath
685f5fd6f4
untar changed to allow deb_extract to extract to memory, allows better operation of dpkg-deb -f
2001-04-15 12:51:59 +00:00
Glenn L McGrath
a529d885d2
NEw functions read_package_field and read_text_file_to_buffer
2001-04-15 12:50:15 +00:00
Glenn L McGrath
5faef74bae
Reads a field from a debian control (status or available) file, handles multi-line fields.
2001-04-15 12:38:12 +00:00
Glenn L McGrath
65708e4cd1
Read a FILE* till an empty line or eof and return it as a char buffer.
...
In future maybe add char *end_str to interface to allow calling function
to specify end point.
2001-04-15 12:36:19 +00:00
Eric Andersen
4a2e463525
Handle endian-ness. Patch from Paul J.Y. Lahaie <pjlahaie@linuxcare.com>
...
-Erik
2001-04-14 03:33:33 +00:00
Matt Kraai
0f50bca9aa
Fix infinite loop and reallocate if too many modules.
2001-04-13 14:40:15 +00:00
Glenn L McGrath
445fb952b8
dpkg-deb -f and partial -I commands, adds 600 bytes
2001-04-13 04:02:57 +00:00
Matt Kraai
1e04ea388f
Fix dos2unix/tr problem noted by Larry Doolittle.
2001-04-12 21:38:06 +00:00
Matt Kraai
d6cde0bcf4
Fix return code and don't output spurious newlines.
2001-04-12 20:51:01 +00:00
Matt Kraai
4ef40c02f4
Another banner consolidation from Larry Doolittle <ldoolitt@recycle.lbl.gov>.
2001-04-12 20:44:21 +00:00
Matt Kraai
8fc364ebd5
Fix comment.
2001-04-12 20:12:16 +00:00
Matt Kraai
6ba1a80c26
Use date -u instead of date --utc and consolidate version string.
...
Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov >.
2001-04-12 20:11:55 +00:00
Glenn L McGrath
5a65413c04
Updates, fixes for handling contents, verbose extract.
...
More updates to come
2001-04-12 16:40:21 +00:00
Glenn L McGrath
47fd219c95
Rename variable that shadows global
2001-04-12 16:37:13 +00:00
Matt Kraai
be66ad3212
Fix handling of '' and "".
2001-04-12 15:42:17 +00:00
Glenn L McGrath
3e2ab88ee2
New dpkg-deb function -t, stands for --fsys-tarfile
2001-04-12 13:49:09 +00:00
Glenn L McGrath
c9cac5be23
Change size to unsinged long long, so if -1 is passed it will read as much as possible.
2001-04-12 13:47:12 +00:00
Glenn L McGrath
6785b51280
dpkg-deb -c works now
2001-04-12 11:48:02 +00:00
Glenn L McGrath
359c106871
Fix dpkg-deb, enum's are cool
2001-04-12 10:19:08 +00:00
Glenn L McGrath
46079a1d77
remove unused clearerr statements
2001-04-12 10:17:22 +00:00
Glenn L McGrath
327175137f
This belongs in dos2unix.c
2001-04-12 02:29:34 +00:00
Glenn L McGrath
a6ce670a87
use tmpfile() and revert my previous changes... convert() belongs here
2001-04-12 02:26:04 +00:00
Glenn L McGrath
2709297f3b
dos2unix and unix2dos are now independent
2001-04-12 00:55:05 +00:00
Glenn L McGrath
50b787cac5
Move convert to libbb
2001-04-12 00:52:29 +00:00
Glenn L McGrath
a283157c38
convert() is used by dos2unix and unix2dos
2001-04-12 00:49:26 +00:00
Glenn L McGrath
c8d9e0604a
Moved from dos2unix
2001-04-12 00:42:53 +00:00
Matt Kraai
da160c0da5
Use putc, and write to stderr as the rest of the progressmeter does.
2001-04-11 20:11:51 +00:00
Matt Kraai
90d7f696d6
Only finish with a newline if we are displaying the progress indicator.
2001-04-11 20:07:27 +00:00
Matt Kraai
65317ea27f
Fix behavior when extracting to stdout. Report and patch by
...
Evin Robertson <nitfol@my-deja.com >.
2001-04-11 20:03:01 +00:00
Glenn L McGrath
ed897e5415
Vladimir's patch to reverse previous patch
2001-04-11 17:20:44 +00:00
Glenn L McGrath
2975a34f23
readTarFile changed from exter nto static
2001-04-11 16:49:07 +00:00
Glenn L McGrath
b3f23d4c6a
Seek to start of an entry inside an ar file
2001-04-11 16:31:20 +00:00
Glenn L McGrath
988be100e2
dpkg, dpkg_deb dont depend on any other applets now
2001-04-11 16:25:45 +00:00
Glenn L McGrath
4949faf4b2
copy_file_chunk uses streams now.
2001-04-11 16:23:35 +00:00
Glenn L McGrath
5b20d02ea9
This is primarily to allow deb_extract to be independent of the tar applet.
...
TODO: This function and its conterpart in tar.c should be merged
2001-04-11 16:14:24 +00:00
Glenn L McGrath
9e966ffed4
Remove unneeded printf statment
2001-04-11 15:11:48 +00:00
Glenn L McGrath
f70f6cef39
Disable sigterm
2001-04-11 15:09:30 +00:00
Glenn L McGrath
48081f81bd
replace getOctal with strtol( , NULL, 8)
...
saves 100 Bytes
2001-04-11 05:01:09 +00:00
Glenn L McGrath
7dc8d227a5
dpkg only dependeds on tar
2001-04-11 03:47:45 +00:00
Glenn L McGrath
528ef50a4a
Gzip is indepenedent of gunzip
2001-04-11 03:45:37 +00:00
Glenn L McGrath
a12131966c
Remove dpkg-deb applet dependencies, still depends on tar
2001-04-11 03:27:06 +00:00
Glenn L McGrath
7fd92949d0
Move unzip, gz_open, gz_close to libbb
2001-04-11 03:11:33 +00:00
Glenn L McGrath
d22e560ad6
Move deb_extract() to libbb, dpkg now independent of dpkg-deb
2001-04-11 02:12:08 +00:00
Glenn L McGrath
9d53c8ab74
Move get_ar_headers to libbb, make dpkg_deb.c independent of ar.c
2001-04-11 01:37:03 +00:00
Eric Andersen
93ffa950bf
Put in a paragraph break
2001-04-10 22:10:42 +00:00
Mark Whitley
efcfe874ea
Added a chart of busybox's growth by Larry Doolittle and put a news
...
announcement for it on the main page.
2001-04-10 21:58:32 +00:00
Eric Andersen
0958093be6
Doc update for the 0.51 release.
...
-Erik
2001-04-10 20:10:55 +00:00
Eric Andersen
3c3430502a
Fix up changelog for 0.51 release
2001-04-10 20:10:14 +00:00
Eric Andersen
b04d744a47
Bring Debian config files into sync with the master one.
2001-04-10 20:07:19 +00:00
Eric Andersen
e703f7ed42
Ha. Regression testing found a bug with uClibc support. Fixed.
...
-Erik
2001-04-10 19:03:03 +00:00
Eric Andersen
b9af894264
Fix up the uClibc compiler name (its format was recently changed slightly)
2001-04-10 18:35:02 +00:00
Eric Andersen
6d7fa438a7
This patch from Laurence Anderson <laurence@zxmail.com> fixes
...
wget HTTP 1.1 support and addes chunked encoding so bb wget
is now fully RFC compliant.
2001-04-10 18:17:05 +00:00
Eric Andersen
fd402941a7
Patch from Valdimir to reduce stack usage, since recursive_action
...
is (as the name implies) is recursive, reducing stack memory usage
is important to avoid exhausting available stack memory.
2001-04-10 17:53:49 +00:00
Matt Kraai
4e853560f5
Fix double quote handling.
2001-04-10 00:00:05 +00:00
Eric Andersen
2f2da90fd4
"I will always compile before I commit" x 100
2001-04-09 23:54:15 +00:00
Eric Andersen
b6b519b416
Update how we detect if libc5 is in use.
...
-Erik
2001-04-09 23:52:18 +00:00
Matt Kraai
d3f97f1971
Fix warning generated by pod2html about unterminated list.
2001-04-09 23:27:51 +00:00
Eric Andersen
303dd28bb0
Make 'grep -l' work
2001-04-09 23:26:31 +00:00
Mark Whitley
4391a16c92
Fixed option parsing. Grep would continue grepping, even when given a bad /
...
invalid option. Closes bug #1146 .
2001-04-09 23:00:07 +00:00
Eric Andersen
e5dfced23a
Apply Vladimir's latest cleanup patch.
...
-Erik
2001-04-09 22:48:12 +00:00
Eric Andersen
a75e286743
Bump version number to 0.51
2001-04-09 22:18:14 +00:00
Eric Andersen
59aa5703ae
Enable freeramdisk and pivot_root, disable lash for the Debian .udeb
...
-Erik
2001-04-09 22:17:10 +00:00
Eric Andersen
fc994d1cb4
make sure we auto-close debian bug #91758
...
-Erik
2001-04-09 22:15:27 +00:00
Eric Andersen
7cf9fed83f
update the changelog, prepatory to the 0.51 release. Please review
...
for correctness!
-Erik
2001-04-09 22:09:41 +00:00
Eric Andersen
3f8688b406
Update changelog
2001-04-09 19:00:29 +00:00
Eric Andersen
5d6f3440e6
use 'USE_SYSTEM_PWD_GRP=false' for the Debian packages so the boot-floppies
...
do not need any of the nss crap installed. As was, things like 'id' would
fail. Fixed now (with thanks to Matt Kraai for his help).
-Erik
2001-04-09 18:42:52 +00:00
Glenn L McGrath
305fdfa755
Reorganise status field to use 3 chars instead of one bit shifted long int.
...
Generates status file properly now, not compatable with full dpkg yet.
2001-04-08 13:27:39 +00:00
Glenn L McGrath
37849f3320
Use create_path instead of mkdir
2001-04-08 07:23:53 +00:00
Glenn L McGrath
13e9c7ad82
It now correctly backs up the (still corrupt) status file
2001-04-08 07:18:08 +00:00
Glenn L McGrath
0e757a2f3f
Some fixes, but still broken... (cont)
...
Make better use of some libbb functions
New remove dir code to avoid depending on the rm applet
dont use copy_file() it doesnt fail elegantly
Use getopt.
Generate correct /var/lib/dpkg/info/ files
Status file is broken, working on it now
2001-04-08 05:27:18 +00:00
Glenn L McGrath
f608da4288
Ignore SIGTERM prior to gz_close()
2001-04-07 02:40:59 +00:00
Glenn L McGrath
e5f3957665
Fix warning
2001-04-07 02:17:36 +00:00
Eric Andersen
8a9b2c6448
Note that insmod now also supports powerpc and mips. Thanks Larry.
2001-04-06 22:02:49 +00:00
Eric Andersen
aa21e0f913
An optimization from Vladimir
2001-04-06 16:02:22 +00:00
Eric Andersen
250a221768
more FILE_OFFSET_BITS == 64 adjustments.
2001-04-05 23:26:44 +00:00
Eric Andersen
83f173b61e
A first pass at making D_FILE_OFFSET_BITS=64 work, from
...
Jari Ruusu <jari.ruusu@pp.inet.fi >
2001-04-05 23:07:25 +00:00
Eric Andersen
c270ec1fa2
Add support of /W prompts
...
-Erik
2001-04-05 23:00:47 +00:00
Eric Andersen
831ed16efc
Handle glibc 2.0.7 as well
2001-04-05 22:38:32 +00:00
Eric Andersen
79757c9c37
A patch from Dmitry Zakharov <dmit@crp.bank.gov.ua> which adds
...
- support for ftp downloads
- HTTP basic authentication support (as an optional feature)
- handling of http redirections
- protocol version changed to 1.0 (to stop servers from requesting
chunked encoding)
- bugfix: in the case when content-length not given, wget didn't
download anything
- when attempting to continue an aborted download but server doesn't
support restarts, reopen output file in write mode
- changed assumption that existing file should restart an aborted
download. Now the user must explicitly specify this with -c
2001-04-05 21:45:54 +00:00
Eric Andersen
ea9065072c
Some cleanups/fixes for the syslogd circular buffer code
...
from Gennady Feldman.
2001-04-05 20:55:17 +00:00
John Beppu
79359d87e8
- autodocifier.pl :: continuation() was modified such that '#'
...
is handled correctly.
2001-04-05 20:03:33 +00:00
John Beppu
94e505485e
- use docs/autodocifier.pl to merge POD together
2001-04-05 19:42:03 +00:00
John Beppu
5bca0afb31
- split busybox.pod into a header and footer.
...
the body will be generated by docs/autodocifier.pl
2001-04-05 19:41:23 +00:00
John Beppu
9a1395b9fd
- documentation updates and a minor tweak to POD generation
2001-04-05 19:35:17 +00:00
Eric Andersen
4e2439ad27
It seems all the stdout munging was useless anyways, since
...
deb_extract and all its called functions do nothing with
stdout anyways. Axe that stuff.
-Erik
2001-04-05 18:30:38 +00:00
Eric Andersen
911af57ff8
Be more generic for libc5. We don't need to know struct definitions
...
to make the syscall finction -- use a generic pointer instead.
2001-04-05 07:41:51 +00:00
Eric Andersen
64c8b1762c
Another iteration -- adjust the init_module syscall a bit.
...
-Erik
2001-04-05 07:33:10 +00:00
Eric Andersen
acc7757312
*** empty log message ***
2001-04-05 06:24:28 +00:00
Eric Andersen
a2a978ae23
Some further syscall adjustments. Split the module syscalls out of
...
insmod and into libbb. Only enable them for libc5. glibc and
uClibc don't need them.
-Erik
2001-04-05 06:08:14 +00:00
Eric Andersen
fdefbbbe85
dpkg_deb had not been updated for the new gunzip interface. Fix it.
...
-Erik
2001-04-05 06:04:11 +00:00
Eric Andersen
e76c3b08e1
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
...
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can
handle them sanely and all at once.
-Erik
2001-04-05 03:14:39 +00:00
Eric Andersen
3c0364f391
Patch from Larry Doolittle to eliminate needless thrashing
...
about when trimming long strings with lots of trailing white
space.
2001-04-04 22:49:01 +00:00
Eric Andersen
4fd382ea29
Remove unused optarg variable
2001-04-04 19:33:32 +00:00
Eric Andersen
06070532ba
Failed to name "Electric-fence" explicitly
2001-04-04 19:32:00 +00:00
Eric Andersen
d402edfd63
Some cleanups for libc5 support
2001-04-04 19:29:48 +00:00
Eric Andersen
14fe392dde
Fix a warning with libc5.
...
-Erik
2001-04-04 19:26:22 +00:00
Eric Andersen
b2e3e9b0c9
Seems that stupid libc5 doesn't implement daemon(), so conditionally
...
inclde that here.
-Erik
2001-04-04 19:25:57 +00:00
Matt Kraai
2129f97cd9
Avoid segfault when export is invoked with no arguments. Thanks to
...
Gennady Feldman.
2001-04-04 17:50:04 +00:00
Eric Andersen
3f98040554
I said no new features till after the 0.51 release. Well, I lied. This is a
...
vi editor for busybox, contributed by Sterling Huxley <sterling@europa.com >.
It adds 22k to the busybox binary when enabled. Quite impressive!
2001-04-04 17:31:15 +00:00
Eric Andersen
91c9388715
Place a temporary bandaid on the ls/du/df human-readable issue. This method is
...
not going to scale up as well as I would like, and Matt Kraai and I have
discussed a better long term solution. But for now this will at least make all
the human-readable apps give correct answers.
Please test the human readable/non-human readable options on your systems!!!
-Erik
2001-04-03 23:14:29 +00:00
Eric Andersen
24073c7665
Add in easy-to-use electric-fence support.
...
-Erik
2001-04-03 22:53:19 +00:00
Eric Andersen
60b2d8d2c8
if strlen(s) was 0, it would then end up using s[-1] as an array index. Bad,
...
bad, bad. This was crashing the shell on powerpc boxes, though all other archs
seem to have a much more forgiving malloc implementations. I finally found
this bug using electric-fence on a powerpc box.
-Erik
2001-04-03 22:50:52 +00:00
Eric Andersen
c97ec34370
A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Now
...
you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior
needing to be a reboot.
2001-04-03 18:01:51 +00:00
Eric Andersen
0f0c0b41ce
Make 'busybox --help' work as expected, closing bug #1139
...
-Erik
2001-04-03 17:05:01 +00:00
Eric Andersen
c0c502e172
Fix for bug 1143 from Larry Doolittle
...
-Erik
2001-04-03 16:38:37 +00:00
Eric Andersen
c4cef5ab06
Move the mtab support stuff into libbb
...
-Erik
2001-04-01 16:01:11 +00:00
Eric Andersen
f77d88641d
Formatting change
2001-04-01 04:49:41 +00:00
Glenn L McGrath
1e117b4752
Dont try and automount devfs, rename some variables
2001-03-30 01:28:13 +00:00
Eric Andersen
84e229cfbe
Add in a new standalone env applet for fixing up app's environments
...
-Erik
2001-03-29 22:48:33 +00:00
Eric Andersen
e5c24dfd01
Use daemon() to spawn syslogd and klogd daemons.
...
-Erik
2001-03-29 21:58:33 +00:00
Eric Andersen
3a6da8c183
gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.
...
Fix that.
2001-03-29 14:22:45 +00:00
Glenn L McGrath
5f2ef46d6d
Fix zcat
2001-03-29 01:07:54 +00:00
Glenn L McGrath
ed7a776538
gunzip -c works again
2001-03-29 00:57:20 +00:00
Glenn L McGrath
ae8ad35590
Fixes from Robert Kaiser
2001-03-28 23:57:51 +00:00
Mark Whitley
e0a7f917c2
Applied patch from David Douthitt to re-add -print option to find.
...
Closes bug #1144 .
2001-03-28 22:04:42 +00:00
Eric Andersen
c835567914
Fix ls so it uses make_human_readable_str() the same way already
...
used by 'du' and 'df'. Now we just need to fix make_human_readable_str
so it behaves they way it used to before Matt fixed it.
2001-03-28 20:26:51 +00:00
Matt Kraai
d98e574d41
Patch bass ackwards behavior of hr flag.
2001-03-28 20:10:25 +00:00
Matt Kraai
7cd0cfeab6
Rewrite to fix bug #1140 and make it slightly smaller.
2001-03-28 16:42:27 +00:00
Glenn L McGrath
f957c77910
Enable tar -z support again by default
2001-03-28 07:48:10 +00:00
Glenn L McGrath
02cebebc3b
Remove cruft
2001-03-28 07:37:48 +00:00
Glenn L McGrath
9233959940
Remove tar_unzip_init() not needed any more, uses gz_open instead
2001-03-28 07:31:37 +00:00
Glenn L McGrath
018e9e6799
Fix tar -z, calls gz_open now
2001-03-28 07:27:26 +00:00
Glenn L McGrath
ee79ca1ba6
Disable tar -z for now
2001-03-28 06:13:15 +00:00
Glenn L McGrath
0cbc8cf4c9
Gunzip changes broke tar -z support (woops)
2001-03-28 05:47:26 +00:00
Glenn L McGrath
58e42d5356
Major cleanup to better adhere to style guide and use standard busybox functions
2001-03-28 05:38:24 +00:00
Glenn L McGrath
f58efb57d1
Add functions that were shared with gunzip.c, gunzip about to change.
2001-03-28 05:35:16 +00:00
Matt Kraai
a2e68fc233
Change BB_FEATURE_TRIVIAL_HELP to BB_FEATURE_VERBOSE_USAGE (per bug #1130 ).
2001-03-27 21:57:29 +00:00
Mark Whitley
5b8939b147
Some more words on sending patches to the bug-tracker.
2001-03-27 21:20:05 +00:00
Mark Whitley
9a2144663a
Applied patch from David Douthitt to fix problem where ls reports half the
...
file size. Should close bug #1140 .
2001-03-27 20:59:14 +00:00
Mark Whitley
cc7b4f39fc
Some more tests for cut. Craig Matsuura said he saw some problems along these
...
lines. "Works for me", but we'll keep these tests around for regression.
2001-03-27 20:48:01 +00:00
Mark Whitley
bff6b18bf9
Applied patch from Gennady Feldman to fix a single-threaded syslogd bug that
...
turned up. This code needs to be tested on an embedded system, since that's
where the bug turned up in the first place.
2001-03-27 20:17:58 +00:00
Mark Whitley
2b549c3be0
Fixed the Makefile so busybox can link against libc5 again. Putting libbb.a at
...
the end broke it.
2001-03-27 18:22:41 +00:00
Mark Whitley
5cd2a2d53e
In fact, socklen_t *is* defined by libc5.
2001-03-27 18:22:00 +00:00
Mark Whitley
a82a00397f
Fix to last patch: locale code should be 9, not 7.
2001-03-27 17:07:15 +00:00
Mark Whitley
1c6581a865
Applied patch from Vladimir N. Oleynik to add locale support to the shell per
...
bug report from Ralph Jones.
2001-03-27 16:35:16 +00:00
Mark Whitley
af633757d3
Applied patch from Anthony Towns that he posted to Debian bug tracking.
2001-03-26 16:47:57 +00:00
Manuel Novoa III
049dc25fe7
Fix in_ether bug regarding hex digits reported by Jonas Holmberg <jonas.holmberg@axis.com>.
2001-03-26 16:26:16 +00:00
Eric Andersen
36eff9ac55
Bump version number to 0.51pre
2001-03-24 06:34:59 +00:00
Eric Andersen
6f3240abf9
xstrdup xargs cleanup from Jeff Garzik
2001-03-23 17:11:22 +00:00
Eric Andersen
6b2c23d847
xstrdup tftp cleanup from Jeff Garzik
2001-03-23 17:10:19 +00:00
Eric Andersen
21af752b04
Patch to use xfopen from Jeff Garzik
2001-03-23 17:09:15 +00:00
Eric Andersen
f6aa13d403
-Wshadow tr fix from Jeff Garzik
2001-03-23 17:08:21 +00:00
Eric Andersen
82ab8da245
-Wshadow sh fix from Jeff Garzik
2001-03-23 17:06:01 +00:00
Eric Andersen
8ffaf8d139
-Wshadow logread fix from Jeff Garzik
2001-03-23 17:04:47 +00:00
Eric Andersen
c54f9530ee
-Wshadow loadacm fix from Jeff Garzik
2001-03-23 17:03:28 +00:00
Eric Andersen
08ff8a49ba
includes cleanup from Jeff Garzik
2001-03-23 17:02:05 +00:00
Mark Whitley
0b4d73a53c
Some minor wordsmithing, an extra item in the list of "things Busybox doesn't
...
need", example of a testcase, more janitorial items, and a whole new section
with guidelines on committing changes to CVS.
2001-03-22 22:59:33 +00:00
Eric Andersen
82bb8a2bf8
Patch from Dirk Behme <dirk.behme@de.bosch.com> to
...
add EM_MIPS_RS3_LE for mips
-Erik
2001-03-22 19:01:16 +00:00
Eric Andersen
851895ab80
Clean up more local vars which shadow globals
...
-Erik
2001-03-21 21:52:25 +00:00
Eric Andersen
1ca20a7747
A nice patch from Larry Doolittle that adds -Wshadow and
...
cleans up most of the now-revealed problems.
2001-03-21 07:34:27 +00:00
Mark Whitley
7447642a47
Added a section on the available Busybox boot-floppy image. Also provided some
...
linkes to a Wired article on Midori Linux.
2001-03-20 19:57:30 +00:00
Mark Whitley
6f93277f56
Added adjtimex applet from Larry Doolittle.
2001-03-20 19:18:10 +00:00
Eric Andersen
ba372620c2
Force applet_name to be "sh" when command prefaced by "-"
2001-03-20 17:39:53 +00:00
Eric Andersen
7ef1a5beb2
Fix up command line munging in init. Postpone the askfirst thing till
...
a bit later in run().
2001-03-20 17:39:08 +00:00
Eric Andersen
4ef37d0c17
chown was missing a ] in its usage msg
2001-03-20 01:06:14 +00:00
Eric Andersen
92d23245c9
Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>
2001-03-19 23:49:41 +00:00
Eric Andersen
40eaa9f0bb
Size optimization for rdate from Vladimir
2001-03-19 19:41:54 +00:00
Eric Andersen
8269396491
Simpify detection of no options.
2001-03-19 19:40:43 +00:00
Eric Andersen
2ccfef2004
Patch from Vladimir to move struct applet from busybox.c to applets.c,
...
which looks like the right place for such things to live.
2001-03-19 19:30:24 +00:00
Eric Andersen
23c1a18126
Per suggestion from Vladimir, no need to initialize these -- let the bss
...
do it.
-Erik
2001-03-19 19:28:24 +00:00
Eric Andersen
7ef54de672
locale correction patch from Vladimir
2001-03-19 19:25:49 +00:00
Eric Andersen
b183dfad2d
Split error messages into separate files.
...
Update libbb.h, per suggestion from Vladimir, to include __attribute__((format
(printf ...))) stuff
-Erik
2001-03-19 19:24:06 +00:00
Eric Andersen
cc165b9083
Should exclude "i" option when not enabled.
2001-03-19 18:59:01 +00:00
Eric Andersen
00b0496e69
Doesn't need a "-" option -- getopt does that for us.
2001-03-19 18:57:08 +00:00
Eric Andersen
16f7015722
Patch from Vladimir to force interactiveFlag=FALSE when forceFlag=TRUE
2001-03-19 18:54:38 +00:00
Eric Andersen
7c25441792
getopt-ify rm so that BB_FEATURE_RM_INTERACTIVE will work
2001-03-19 18:52:37 +00:00
Eric Andersen
c75586e06d
Split libbb/pwd_grp_wrappers.c into 5 different libbb/my_* files.
...
-Erik
2001-03-19 18:37:42 +00:00
Eric Andersen
61173a5371
Fix to cmdedit.c from Vladimir
2001-03-19 17:48:55 +00:00
Eric Andersen
fa513aab48
Some configuration adjustments from Vladimir
2001-03-19 17:25:21 +00:00
Eric Andersen
8b96032139
Fix a bug pointed out by Rob Landley <rlandley@austin.rr.com>, where
...
setup_sockaddr_in was zeroing the sizeof a pointer, not the sizeof the struct,
which was obviously what was intended. Thanks Rob,
-Erik
2001-03-17 05:43:39 +00:00
Eric Andersen
341744781a
Patch from Larry and Vladimir to clean up sh.c and fix
...
shell expansion to work in non POSIX locales.
2001-03-17 00:20:10 +00:00
Eric Andersen
1a6f8cfadf
update .cvsignore files to note new location of loop.h
2001-03-17 00:15:02 +00:00
Eric Andersen
8a6dbf6709
Patch from Pierre PEIFFER <pierre.peiffer@sxb.bsf.alcatel.fr>
...
that copes with the fact that processes may have been swapped
out.
2001-03-17 00:05:42 +00:00
Eric Andersen
e2a3cd15a8
Stupid thinko. egrep tried to call init. Sigh. Fix from Christophe Boyanique
2001-03-16 23:49:20 +00:00
Eric Andersen
aad1a88c76
Convert utility.c into libbb.a. It is now a whole pile of .c
...
files. Clean up the resulting damage and fix up the makefile.
-Erik
2001-03-16 22:47:14 +00:00
Eric Andersen
dfba13d199
A few minor touchups.
2001-03-16 08:30:00 +00:00
Eric Andersen
704b2c2122
There was an unwanted extra newline, which prevented building
...
uudecode. How did this sneak through the testing until now?
-Erik
2001-03-16 08:06:30 +00:00
Eric Andersen
53b55ac08d
Fix the make release target.
2001-03-16 07:43:53 +00:00
Eric Andersen
c36c2ba598
Update webpage noting 0.50 release.
2001-03-16 07:16:12 +00:00
Eric Andersen
7f1978570f
A patch from Andreas Neuhaus to be especially careful to not dup
...
any env variables when spawning child processes.
2001-03-16 01:14:04 +00:00
Eric Andersen
4aaefc2a50
Fix from Larry for glob problems.
...
-Erik
2001-03-15 23:01:19 +00:00
Eric Andersen
c5b3242d3d
Remove the "GPL2" bit, since it hung over the end of the line.
2001-03-15 22:58:11 +00:00
Mark Whitley
056960d8dc
Applied patch from Larry Doolittle to fix problem where multibuild.pl would
...
build the wrong files. Made the same changes to multifeat.pl.
2001-03-15 22:14:26 +00:00
Eric Andersen
0d5051def0
Update files and version number prepratory to cutting a release.
...
-Erik
2001-03-15 22:12:43 +00:00
Eric Andersen
3a0057e2c5
Fix egrep
2001-03-15 21:33:33 +00:00
Mark Whitley
f71378c4ad
One tiny little missing newline that confused pod.
2001-03-15 21:20:25 +00:00
Mark Whitley
0a6f1d31e7
One tinly, little, missing newline that confused Pod.
2001-03-15 21:19:09 +00:00
John Beppu
e708cb5f9a
- generated middle section of busybox.pod w/ autodocifier.pl
...
- updated autodocifier.pl to use tab to indent example section
2001-03-15 21:08:01 +00:00
Eric Andersen
a4edd0e946
A better fix. Read nextPtr before mem gets freed.
...
-Erik
2001-03-15 21:04:18 +00:00
Eric Andersen
f9ff8a7d90
cmdedit.c bugfix patch from Vladimir.
...
-Erik
2001-03-15 20:51:09 +00:00
John Beppu
af9e533a54
- properly indent Examples section in pod generator
2001-03-15 20:49:25 +00:00
Eric Andersen
48dcc16548
Don't confuse people. If the run 'ifconfig' and they didn't
...
compile with BB_FEATURE_IFCONFIG_STATUS turned on, it will
now print a message telling them as much.
-Erik
2001-03-15 20:48:45 +00:00
Mark Whitley
730cdb1904
Reversed previous patch. The right way is to fix uClibc.
2001-03-15 19:39:40 +00:00
Eric Andersen
0d4e51d390
Prevent init from potentially using already freed memory when
...
deleting an initAction, fixing a bug pointed out by Andreas Neuhaus
-Erik
2001-03-15 19:18:21 +00:00
Mark Whitley
0b57e28373
Applied patch from Andreas Neuhaus to fix namespace conflict that made busybox
...
not compile with uClibc.
2001-03-15 19:12:06 +00:00
Mark Whitley
b0c2b7dfe3
dos2unix logread.c
2001-03-15 19:05:59 +00:00
Eric Andersen
2825ee8c2c
Fix linuxrc define
2001-03-15 18:58:06 +00:00
Eric Andersen
a8035a51be
Move the warning msg after features.h gets pulled in.
...
-Erik
2001-03-15 18:20:23 +00:00
Mark Whitley
7384d7dce0
Added some tests for some recently found / fixed bugs in the shell.
2001-03-15 18:19:13 +00:00
Eric Andersen
0d3a02eba7
Update the documentation so examples are autoincluded in the output text.
...
Fix up docs/busybox.pod with the latest autogenerated output.
-Erik
2001-03-15 18:14:25 +00:00
Eric Andersen
670bea210e
Update the changelog, in preparation for making the 0.50 release
2001-03-15 17:56:44 +00:00
Eric Andersen
d8adaa279e
Update the olympus sections
2001-03-15 17:54:56 +00:00
Mark Whitley
3bf60aa723
If only BB_DPKG was enabled in Config.h, busybox would not build; it'd say:
...
dpkg.c:18: #error It looks like you are using libc5, which does not support
dpkg.c:19: #error tfind(). tfind() is used by busybox dpkg.
dpkg.c:20: #error Please disable BB_DPKG. Sorry.
This was fixed by changing the || to an && in the preprocessor.
(We've changed the logic in there too many times.)
Found using multibuild.pl.
2001-03-15 17:39:29 +00:00
Mark Whitley
e110ccb672
Removed leftover BB_FEATURE_KLOGD per report from Giulio Orsero
2001-03-15 17:30:07 +00:00
Manuel Novoa III
0e0883e0e9
Fix stupid cut-and-paste bug... output RX/TX bytes instead of RX/RX bytes.
2001-03-15 15:37:48 +00:00
Mark Whitley
038c8eb5a9
Applied patch from Erik Habbinga to fix a problem with an uninitialized
...
substitution delimiter.
2001-03-14 21:11:49 +00:00
Mark Whitley
7ddaf7caae
Added a section to describe how to convert variables to K&R style using the
...
mk2knr.pl script. Also some minor cleanups.
2001-03-14 21:04:53 +00:00
Mark Whitley
bac75ac2d5
Script that generates a script that will convert oddball variable names to K&R
...
style.
2001-03-14 21:04:07 +00:00
Eric Andersen
1ef92685cf
Yesterday I make strsep_space include post-token whitespace,
...
so we should not be adding another " " between tokens.
-Erik
2001-03-14 19:33:45 +00:00
Eric Andersen
ce4a586edb
I forgot to malloc space for the NULL.
...
-Erik
2001-03-14 18:57:54 +00:00
Mark Whitley
40e5e7c7ea
Applied patch from Christophe Boyanique to add an egrep alias for grep.
2001-03-14 17:45:45 +00:00
Mark Whitley
20f61d35de
The patch I previously applied from Brian Webb was 2 lines off. Oops.
2001-03-14 17:30:44 +00:00
Mark Whitley
44a9914709
Applied patch from Larry Doolittle to fix '>\na\n' bug. Should close bug #1132
2001-03-14 17:26:37 +00:00
Mark Whitley
2892c35bdb
Applied patch from Giulio Orsero to fix some preprocessor bugs.
2001-03-14 17:18:52 +00:00
Eric Andersen
82d8502409
Fix from Manuel for a silly thinko on my part.
2001-03-14 17:15:45 +00:00
Eric Andersen
53f5061c7e
Fix init so that checking for terminal devices is delayed until the
...
devices are actually used, thereby allowing devfsd based systems to
work. This should fix bug #1133
-Erik
2001-03-14 09:01:11 +00:00
Eric Andersen
bdc8db9685
Use the system passwd and group stuff by default
2001-03-14 01:49:10 +00:00
Eric Andersen
741f2c9898
Fix mtab so it works on libc5
2001-03-14 01:48:10 +00:00
Eric Andersen
b9a1e56a80
No reason to include fstab. It breaks libc5, does nothing for glibc.
...
-Erik
2001-03-14 01:43:29 +00:00
Eric Andersen
2b1c367a98
Amazing the difference between an "and" and an "or".
2001-03-14 01:36:52 +00:00
Eric Andersen
3c0b425cde
dpkg used tfind, which doesn't work with libc5. Print a friendy error
...
should someone try to use it...
-Erik
2001-03-14 01:31:11 +00:00
Eric Andersen
14e9e9d1ca
Fix socklen_t for libc5
2001-03-14 01:23:07 +00:00
Eric Andersen
9c09e0eeaa
The IPC_SYSLOG stuff should be off by default.
...
-Erik
2001-03-14 01:16:41 +00:00
Eric Andersen
c319601db5
Some updates for libc5
2001-03-14 01:15:06 +00:00
Eric Andersen
4e7244e6b2
libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE
...
-Erik
2001-03-14 00:49:52 +00:00
Mark Whitley
8658816f71
Added a dependency on BB_MKFS_MINIX to xfopen().
2001-03-14 00:43:16 +00:00
Mark Whitley
f594986b37
- Changed name of BB_FEATURE_SIMPLE_PROMPT to BB_FEATURE_SH_SIMPLE_PROMPT
...
- Set BB_FEATURE_SH_STANDALONE_SHELL and BB_FEATURE_SH_APPLETS_ALWAYS_WIN to
be off by default
- Set BB_FEATURE_SH_SIMPLE_PROMPT to be on by default
- Added some more magic to the Olympus section to make all the dependencies
on the shell, cmdline editing, tab completion and friend work properly.
- Tidied up the Olympus section with some whitespace. Checked the various
scrips that parse through there and the extra whitespace shouldn't break
anything.
2001-03-14 00:29:14 +00:00
Mark Whitley
c75f83d874
Some new testcases, some improvements to the tester.sh script.
2001-03-13 23:30:18 +00:00
Eric Andersen
b3d6e2df95
Update the lash shell (hopefully the last time...) so things like
...
echo "foo bar" and echo -n "foo\t\\\\\tbar" work as expected.
Merge prompt printing work from Vladimir.
-Erik
2001-03-13 22:57:56 +00:00
Mark Whitley
798ab301c7
Added Midori Linux to the list of known projects that use Busybox.
2001-03-13 17:08:54 +00:00
Mark Whitley
f6ba2da29f
Credited Christophe Boyaniqu for interactive patch to rm.
2001-03-13 16:35:55 +00:00
Mark Whitley
e0bf91d7c6
Applied patch from Christophe Boyanique to add -i support to rm.
2001-03-13 00:40:19 +00:00
Mark Whitley
53737c5421
Some fixlets that didn't get added in the last 'syslogd split' patch:
...
- BB_LOGREAD should not be in the applet section
- BB_FEATURE_IPC_SYSLOG added to the feature section
- Some voodoo added to the Olympus section
2001-03-12 23:55:56 +00:00
Mark Whitley
6bff9cc487
Added some comment lines in the header indicating that Gennady Feldman is the
...
maintainer of these three applets.
2001-03-12 23:41:34 +00:00
Mark Whitley
bd2e42f162
Applied a patch from Brian Webb to fix a problem with mount on the Agenda PDA.
...
Apparently, the mount() call does not like taking a stack allocated pointer.
2001-03-12 23:17:26 +00:00
Mark Whitley
94fd480bab
Applied patch from John Lombardo to fix OOM in insmod.
2001-03-12 23:08:34 +00:00
Mark Whitley
6317c4baf7
Applied patch from Gennady Feldman to split up syslogd.c into syslogd and
...
klogd (as it should be).
2001-03-12 22:51:50 +00:00
Eric Andersen
4987bbf979
A fix from Larry Doolittle for some nasty segfaults when sh.c tried to free a
...
corrupted cmd pointer, and where it would truncate a command line at the first
double space.
-Erik
2001-03-12 21:36:49 +00:00
Mark Whitley
5ec5415402
Program for testing concurrent access to syslogd.
2001-03-12 20:00:00 +00:00
Mark Whitley
1a49fc5e92
Applied patch from Gennady Feldman to use single-thread instead of forking.
2001-03-12 19:51:09 +00:00
Manuel Novoa III
fe4e13fb97
Add missing dependency -- interface.c needs get_kernel_revision.
2001-03-12 10:00:17 +00:00
Manuel Novoa III
22b889a998
Adjust ifconfig usage message for selected options and current functionality.
2001-03-12 09:58:51 +00:00
Manuel Novoa III
68ea1d0325
Reduced code size of interface. Support ifconfig -a and ifconfig interface
...
display. Change %llu to %Lu in ifconfig for hacked unsigned long long support
in uClibc scanf.
2001-03-12 09:57:59 +00:00
Eric Andersen
1365bb7861
When using wordexp, only try to use the expand command
...
when something actually got expanded. Skip it otherwise.
-Erik
2001-03-10 07:12:12 +00:00
Manuel Novoa III
78f57460f2
Quick mod to enable option -a for ifconfig.
2001-03-10 02:00:54 +00:00
Mark Whitley
d2117e9c82
Created new regression testing framework with a number of testcases (many more
...
can be added). Also changed 'test' target in makefile to run the new
tester.sh. (Hopefully, we should be able to remove all the tests/*.mk files
soon.)
2001-03-10 00:51:29 +00:00
Mark Whitley
09f4af5afd
/* getopt not needed */
2001-03-10 00:13:20 +00:00
Mark Whitley
827e45c518
Added some more '/* getopt not needed */' lines.
2001-03-09 23:59:51 +00:00
Manuel Novoa III
fa45f22e50
Use perror_msg_and_die function where appropriate.
2001-03-09 23:06:15 +00:00
Eric Andersen
d92168486b
Fixed df.c so that nfs volumes will display properly (fixing bug #1113 ).
...
Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then
cast the result back to an int after the math is done, letting C's type
promotion do its magic for the rest.
-Erik
2001-03-09 22:42:26 +00:00
Eric Andersen
4aaf89f49f
Silence a silly warning
2001-03-09 22:17:59 +00:00
Mark Whitley
f90c28dd1e
Applied patch from Jeff Garzik to getopt-ify rmmod.
2001-03-09 21:49:12 +00:00
Eric Andersen
8d4c397d9d
Patch from Jeff Garzik marking a few 'getopt not needed' apps.
2001-03-09 21:28:09 +00:00
Eric Andersen
3e6ff9017f
A cleanup patch from Jeff Garzik to static-ify a number of
...
namespace polluting things that really should be static.
2001-03-09 21:24:12 +00:00
Eric Andersen
dd91724aa0
patch from Larry to fix pristine source builds
2001-03-09 20:47:27 +00:00
Eric Andersen
74e056bfc8
Fixed a couple more cases. $FOO/bar ${FOO} and such now work
...
without wordexp. Of course for stuff like ${1:-foo} you still
need wordexp for them to work.
-Erik
2001-03-09 20:34:46 +00:00
Eric Andersen
3c7361f53a
Allow wordexp to be used if available
2001-03-09 19:45:26 +00:00
Eric Andersen
ce89871ff7
Urg. Remove the debug noise
2001-03-09 19:43:57 +00:00
Eric Andersen
195743f195
Ok, sh.c should be working now. Many thanks to Larry Doolittle
...
for his timely help -- nearly all of the work in this patch is
his.
-Erik
2001-03-09 19:21:37 +00:00
Eric Andersen
eba8ed71f0
Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup
...
warnings with glibc 2.2 and use always use xfopen
-Erik
2001-03-09 14:36:42 +00:00
Mark Whitley
9ba5bce06f
Added script that tests turning on features in busybox one at a time and
...
compiling to see if things break. Initial revision.
2001-03-09 01:46:45 +00:00
Eric Andersen
01658a3eec
Fix sh.c for the glab case. I was messing things up for
...
single argument commands. It should now work as expected...
-Erik
2001-03-09 01:24:02 +00:00
Eric Andersen
3dbf1e877a
A '.' is a legal seperator.
2001-03-09 01:08:06 +00:00
Mark Whitley
afffbfe8c4
Fix to trim to make it trim properly.
2001-03-09 00:55:34 +00:00
Eric Andersen
b180dd9e50
Cleanup patch from Larry
2001-03-09 00:42:46 +00:00
Eric Andersen
13d1fa1d01
Add in 'trim' routine. Fix up sh.c so it works when wordexp
...
is not available.
-Erik
2001-03-08 23:59:45 +00:00
Manuel Novoa III
df351d6109
Improved port of ifconfig... smaller and with more features.
2001-03-08 22:57:00 +00:00
Eric Andersen
39eea898c4
Per Vladimir's suggestion, force the locale to POSIX for all
...
the scripts so busybox will install properly.
2001-03-08 21:42:11 +00:00
Mark Whitley
7e5291f111
Whitespace / formatting / bracket cleanup.
2001-03-08 19:31:12 +00:00
Eric Andersen
32f8c170b0
Remember to delete un-expandable variables, and do a better job of expanding
...
shell-specific things in case the wordexp implementation is broken (ie. the
stubbed out wordexp in uClibc).
-Erik
2001-03-08 17:44:37 +00:00
Eric Andersen
ca6045955d
Rework environment variable handling to use wordexp, per a suggestion from
...
Larry Doolittle a couple of months ago. This makes the stuff-expansion in lash
be ever so standards compliant. This change needs testing by everyone, but
appears to be solid enough to let us close bug #1090 .
It works for me; however, please test this change!
-Erik
2001-03-08 17:17:13 +00:00
Mark Whitley
e2c44fc966
Applied patch from Vladimir to fix bug where find would stop as soon as it hit
...
a perms error. Closes bug 1124.
2001-03-08 16:54:44 +00:00
Matt Kraai
5de909873a
Eliminate superfluous test.
2001-03-07 21:45:13 +00:00
Mark Whitley
4cc8f31ffe
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
2001-03-07 18:00:44 +00:00
Mark Whitley
ae5612ca6e
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of
...
'format' function to 'make_human_readable_str'.
2001-03-07 17:42:07 +00:00
Mark Whitley
ae20128e9f
Applied patch from Christophe Boyaniqu to remove double-slashes printed in
...
recursive_action.
2001-03-07 17:27:04 +00:00
Eric Andersen
26d53eb197
This patch by Vladimir and Larry saves a few bytes.
2001-03-07 06:33:01 +00:00
Eric Andersen
ec9fad9a49
Static-ify a variable. make du work with all the human-readable variants
...
since my last pass only fixed 'du -h' but left the others broken.
2001-03-07 06:04:08 +00:00
Eric Andersen
a7db19bb81
Fix up du so it behaves itself also.
...
-Erik
2001-03-07 03:53:40 +00:00
Eric Andersen
11ae573320
remove an unused variable
2001-03-07 03:51:27 +00:00
Eric Andersen
7850f1e2ac
Rewrite of format so it behaves itself
...
-Erik
2001-03-07 03:50:57 +00:00
Eric Andersen
5986f8d1c6
Fix up df so it works properly
...
-Erik
2001-03-07 03:50:03 +00:00
Eric Andersen
651f8c04ef
Fix up ls.c to ensure human readable works properly in all cases
2001-03-07 03:48:02 +00:00
Mark Whitley
6c563bc1a1
Thought of another janitorial item for the list.
2001-03-06 23:16:13 +00:00
Eric Andersen
8b728a25a3
I made these little simplifications a while back, bug forgot to
...
check this stuff in.
-Erik
2001-03-06 23:14:43 +00:00
Eric Andersen
702ec5926f
Fix the memory leak. No really this time.
...
-Erik
2001-03-06 22:17:29 +00:00
Mark Whitley
8bb7df49c2
Applied patch from Vladimir Oleynik via Magnus Damm that removes newlines from
...
error_msg() calls and uses 'return EXIT_SUCCESS' instead of return 0.
2001-03-06 20:58:48 +00:00
Eric Andersen
0f430e34af
Fix up some silly macros and use xmalloc and friends exclusively.
2001-03-06 20:54:43 +00:00
Eric Andersen
36278b9576
Fix func prototype
2001-03-06 20:47:31 +00:00
Eric Andersen
54851d3c65
Fixed a memory leak in lash. It seems that close_all was calling close()
...
directly instead of calling mark_closed(), which allowed the memory allocated
by mark_open() to never be freed.
-Erik
2001-03-06 20:44:39 +00:00
Eric Andersen
07f2f3917a
Close open files before calling builtin_exec(). I've tested this
...
and it fixes bug #1121 .
-Erik
2001-03-06 20:28:22 +00:00
Eric Andersen
1a046d5f9d
Bug 1110 reported that the LOOP_GET_STATUS ioctl apparently returnes non-zero
...
error messages, contrary to the documentation. Whatever. This patch from
zhaoway <zw@debian.org > looks safe enough.
-Erik
2001-03-06 19:35:58 +00:00
John Beppu
138ece09b5
minor cleanup
2001-03-06 19:25:25 +00:00
Eric Andersen
e6c4de03c6
First pass at trying to retrofit a changelog for 0.50. Please everyone
...
look over this and if I forgot something, misattributed your work, or
spelled something badly, please let me know.
-Erik
2001-03-06 18:46:10 +00:00
Eric Andersen
f15d4dad66
Add in a first pass at ifconfig status reporting. It took a long while
...
hacking on the mess in net-tools-1.59, but it currently adds 12k and
supports ethernet, loop, ppp, and treats everything else as a generic
interface. Works ok for me.
-Erik
2001-03-06 00:48:59 +00:00
Eric Andersen
5efa2291aa
Fix up the freshmeat appindex record.
2001-03-05 18:26:50 +00:00
Eric Andersen
c27b9544b6
Make sure libpwd.a is linked _last_ so it overrides the system pwd/grp
...
implementation. It wasn't doing that as expected...
2001-03-05 17:57:34 +00:00
Eric Andersen
47cdcdd359
Try to do a little better at documenting how to use
...
alternate C libraries, thanks to David Douthitt.
2001-03-05 17:08:52 +00:00
David Kimdon
21b7459add
add wget, tr, telnet, ping, md5sum and loadkmap to .deb
2001-03-05 08:43:26 +00:00
Eric Andersen
afbff22e6e
Enable INSTALLER for the deb
2001-03-05 04:00:06 +00:00
Eric Andersen
452fd33ffa
Patch from Vladimir to make sure PATH is set correctly.
2001-03-04 06:47:33 +00:00
Eric Andersen
076cdc24fc
If umount2 is not available, stub it out.
2001-03-04 06:07:34 +00:00
Mark Whitley
9ead68975c
Added some words on use of getopt in applets.
2001-03-03 00:44:55 +00:00
Glenn L McGrath
323434be42
Dont try to automount some specific filesystem types
2001-03-02 22:21:34 +00:00
Mark Whitley
446dd27843
Applied patch from Vladimir N. Oleynik that fixes incorrect behaviour in
...
recovery_mode and changed option processing.
2001-03-02 20:00:54 +00:00
Mark Whitley
42ab250709
Removed section on testing that is now in contributing.txt.
2001-03-02 19:15:01 +00:00
Mark Whitley
3b565cdf91
Added 'How to contribute to Busybox' doc.
2001-03-02 19:14:25 +00:00
Mark Whitley
85adecb668
Whoops! BB_TFTP should prolly be off by default.
2001-03-02 19:11:26 +00:00
Mark Whitley
450736cd3c
Added Magnus Damm's tftp applet to Busybox.
2001-03-02 19:08:50 +00:00
Mark Whitley
016771834a
Changed exit code from -1 to 0 when busybox is invoked with no args.
...
(Closes bug #1114.)
2001-03-02 17:47:17 +00:00
Mark Whitley
39842defda
Applied patch from David Douthitt to fix build error in df.c when
...
BB_FEATURE_HUMAN_READABLE was disabled.
2001-03-01 18:51:33 +00:00
Eric Andersen
de4406747b
Bah. I missed a header file.
2001-03-01 07:55:49 +00:00
Eric Andersen
7b91f02021
Reduce the size of mount (and bypass /proc/filesystems) by using the sysfs
...
system call, based on work done by Glenn McGrath in December.
-Erik
2001-03-01 07:50:04 +00:00
Matt Kraai
93ba60f01d
Keep trying if an NFS mount fails, and eliminate a call to exit(3).
2001-02-28 15:33:12 +00:00
Eric Andersen
1b6cff3df4
libpwd was getting added twice.
2001-02-27 22:24:45 +00:00
Mark Whitley
4f76bb6f3e
Little patchlet to make linking against libc5 work a little better
2001-02-27 19:53:48 +00:00
Eric Andersen
4142d4dc66
Patch from Vladimir N. Oleynik to save 128 bytes by moving error
...
checking for some my_* functions to utility.c
2001-02-27 18:22:03 +00:00
Mark Whitley
e677dfedd1
Applied patch from Magnus Damm <damm@opensource.se> to fix a 'inner scope var
...
masking outer scope var with same name' bug that was preventing the loopback
device from being unmounted if mount() fails.
2001-02-26 17:45:58 +00:00
John Beppu
d11578f916
- changed the way POD is generated such that the dashed
...
line appears at the bottom instead of the top. The
indentation semantics of POD make the first item in
the (=over,=back) block look weird the other way.
- implemented a way to encode example usage into usage.h
One would define a macro called "${applet}_example_usage"
which would expand to the example text.
- The example usage is considered optional, but trivial and
full usage are not.
Here's an example using chown.
---- before
#define chown_trivial_usage \
"[OPTION]... OWNER[<.|:>[GROUP] FILE..."
#define chown_full_usage \
"Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
"\nOptions:\n" \
"\t-R\tChanges files and directories recursively."
#define chown_example_usage \
"\t$ ls -l /tmp/foo\n" \
"\t-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
"\t$ chown root /tmp/foo\n" \
"\t$ ls -l /tmp/foo\n" \
"\t-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" \
"\t$ chown root.root /tmp/foo\n" \
"\tls -l /tmp/foo\n" \
"\t-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
---- after
=item I<chown>
chown [OPTION]... OWNER[<.|:>[GROUP] FILE...
Change the owner and/or group of each FILE to OWNER and/or GROUP.
Options:
-R Changes files and directories recursively.
Example:
$ ls -l /tmp/foo
-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
$ chown root /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo
$ chown root.root /tmp/foo
ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
-------------------------------
2001-02-26 02:50:11 +00:00
Eric Andersen
2bf658d5cd
This patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support
...
to busybox insmod. Thanks Quinn!!!
-Erik
2001-02-24 20:01:53 +00:00
Eric Andersen
afeb96547f
Make output match the real lsmod -- print (autoclean) type
...
stuff first not last.
-Erik
2001-02-24 19:51:54 +00:00
Eric Andersen
d160a27ec1
Stub out the syscall, not the whole application. The stubbed
...
out syscall sets errno properly and whines about missing kernel
support.
-Erik
2001-02-24 19:17:07 +00:00
Eric Andersen
dc12190ba2
The usage message for syslogd had stuff longer then 80 chars and wrapped.
2001-02-24 18:52:36 +00:00
John Beppu
37977622c4
...
2001-02-24 14:44:25 +00:00
John Beppu
7d597c4833
refinement
2001-02-24 14:37:48 +00:00
John Beppu
dbfff6cbde
formatting ...
2001-02-23 17:55:03 +00:00
John Beppu
e6967b20cb
Added some documentation and made --sgml use sgml_from_usage().
...
pod_from_usage() is the default generator.
2001-02-23 17:51:08 +00:00
Eric Andersen
3757f98d86
Another usage cleanup from kent robotti
2001-02-23 17:47:51 +00:00
John Beppu
8373e70c55
During POD generation, it inserts a blank line before lines
...
that were intended to be indented.
2001-02-23 17:41:41 +00:00
Eric Andersen
7a9cc2dcdd
More cleanups
2001-02-23 16:58:44 +00:00
John Beppu
15f9b92127
forgot to remove some debugging noise
2001-02-23 16:16:08 +00:00
John Beppu
df1e9daf30
This one should be able to deal with the USAGE macros a little
...
more robustly. I also blow away any USAGE_NOT_\w+ macros.
2001-02-23 16:15:34 +00:00
Eric Andersen
ed0d958c3e
Make HUMAN_READABLE be single argument like the others.
2001-02-23 13:23:03 +00:00
John Beppu
2498b155fd
forgot a comma.
2001-02-23 13:04:39 +00:00
Eric Andersen
a0cfe94c4e
More usage cleanups from kent robotti. I know some of these were
...
applied previously but apparently lost with some of the latest changes.
2001-02-23 10:07:09 +00:00
Eric Andersen
b83ffafc15
Fix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>
2001-02-23 06:36:53 +00:00
David Kimdon
56082dc2ae
space after \ make preprocessor sad
2001-02-23 06:03:22 +00:00
David Kimdon
68c1d8400c
utility.c must include stdarg.h
2001-02-23 03:55:24 +00:00
John Beppu
b249fbb1dc
I can't leave it alone.
2001-02-23 03:12:45 +00:00
John Beppu
8c16bc5012
minor cleanup... all that's left to do is
...
* make headers and footers for both the POD and SGML content
* make an SGML generator
* finish the command-line handling
Also, some of the documentation in usage.h will have to
be adjusted. expr needs some lines to be indented, and
ls has a stray comma. I may have missed some things...
but it looks OK for the most part.
2001-02-23 02:54:31 +00:00
John Beppu
4a25d8c9c3
This is the remixed autodocufier.pl.
2001-02-23 02:33:28 +00:00
Eric Andersen
0ed9923887
Stub out pivot_root so it won't fail to compile.
...
-Erik
2001-02-23 02:31:03 +00:00
Eric Andersen
3574b70efc
Somewhere along the line, MAKE_LINKS got broken, thereby breaking
...
'make install'. Fix that.
2001-02-23 02:16:29 +00:00
Eric Andersen
8079b155c2
Argh. I should know to compile first.
2001-02-23 02:04:33 +00:00
Eric Andersen
bbc8e4789f
Only default to BB_FEATURE_NEW_MODULE_INTERFACE when
...
BB_FEATURE_OLD_MODULE_INTERFACE is not defined.
-Erik
2001-02-23 02:00:35 +00:00
Eric Andersen
2f3105725f
Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
...
is enabled.
-Erik
2001-02-23 01:58:18 +00:00
Eric Andersen
5723934f7c
Yet another fix. I think I got it this time.
...
-Erik
2001-02-23 01:39:26 +00:00
Eric Andersen
41492d6c23
I should be more careful...
2001-02-23 00:05:56 +00:00
Eric Andersen
c163e5107f
Turn off the printf attribute for the ?error_msg* functions, since it
...
is ok to pass them a NULL, unlike printf. This silences a pointless
warning message.
-Erik
2001-02-22 23:38:48 +00:00
Eric Andersen
544891dd26
Add in kent robotti's updated dos2unix.c
2001-02-22 23:37:30 +00:00
Eric Andersen
adea7a6101
Fix up Makefile -- uClibc nfs works these days
2001-02-22 23:36:30 +00:00
Eric Andersen
4b2e69a1cf
Commit a few updates to the usage messages.
2001-02-22 23:32:59 +00:00
Eric Andersen
e13bc0bc68
First pass at making up an automagical usage message extractor, which
...
will be used (when it works) to autogenerate documentation. Based on
code written by Mark Whitley.
2001-02-22 22:47:06 +00:00
Eric Andersen
ffc40bf3de
Account for remainder, and reset page_height for each and every page.
2001-02-22 21:49:32 +00:00
Eric Andersen
b2007bffc5
Make busybox and busybox-static conflict/replace each other
2001-02-22 05:21:35 +00:00
Eric Andersen
5d9cad0253
Fix malformed build-depends. Update list of bugs to close
...
-Erik
2001-02-22 05:08:16 +00:00
Eric Andersen
7aa1f5c42a
Make md5sum not display filename when reading stdin
...
-Erik
2001-02-22 04:59:16 +00:00
Eric Andersen
dbcd8ce464
Make init compile when DEBUG_INIT is enabled
...
-Erik
2001-02-22 04:55:33 +00:00
Eric Andersen
7e9276b50a
Another update to the way usage messages are done by Evin Robertson
...
<nitfol@my-deja.com >, which makes things just a little bit smaller, but makes
usage.h more readable/maintainable IMHO.
-Erik
2001-02-22 01:15:47 +00:00
Eric Andersen
8fc300976f
Revert my change to do extra termType checking. That is done elsewhere.
...
Silly me.
-Erik
2001-02-22 00:50:20 +00:00
Eric Andersen
be30a6b8b0
Adjust the terminal height for any overlap, so that no lines
...
get lost off the top
-Erik
2001-02-22 00:22:46 +00:00
Eric Andersen
54006bce25
Oops! I left in my debug noise.
2001-02-21 00:27:22 +00:00
Eric Andersen
7c3e7ac940
df was totally broken. So I fixed it.
...
-Erik
2001-02-21 00:24:51 +00:00
Mark Whitley
8d7bdc9deb
Small patch from Kent Robotti to show megabytes in human-readable output.
2001-02-20 21:57:55 +00:00
Eric Andersen
9e37007edb
Minor cleanup.
2001-02-20 21:52:49 +00:00
Eric Andersen
90fe7fea10
Apply a patch from Magnus Damm <damm@opensource.se> to support
...
powerpc with busybox insmod
-Erik
2001-02-20 20:47:08 +00:00
Eric Andersen
477aedd77f
Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
...
environment variables set from the kernel command line to be inherited
bu application programs. Slightly changed to special case handling of
TERM, so that it has sane defaults when on a serial console.
-Erik
2001-02-20 18:01:50 +00:00
Eric Andersen
5165fbed63
Oops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
...
after busybox.h is included.
2001-02-20 06:42:29 +00:00
Eric Andersen
caeeb36784
This fixes lash so it handles environment variable expansion, regardless
...
of where the environment variables are located in an argument. This allows
things like 'echo foo$1$SHELL' to expand the same way bash would expand it.
Of course, to make this work I introduced a memory leak, and I am too tired
to find a way to fix it.
-Erik
2001-02-20 06:38:44 +00:00
Eric Andersen
a183f05825
Cleanup the use of 'find' to prevent error msgs.
...
-Erik
2001-02-20 06:22:54 +00:00
Eric Andersen
f1142c5b11
Oops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS
...
-Erik
2001-02-20 06:16:29 +00:00
Eric Andersen
cbe31dace5
It turns out that DODMALLOC was broken when I reorganized busybox.h
...
header file usage before the 0.49 release. To fix it, I had to move
the '#include "busybox.h"' to the end of the list of #include files.
-Erik
2001-02-20 06:14:08 +00:00
Eric Andersen
94456f5984
Put back Vladimir's testing defines, which I mistakenly removed.
2001-02-18 20:26:48 +00:00
Eric Andersen
12dceb1147
A few more cleanups from Vladimir.
2001-02-18 20:15:36 +00:00
Eric Andersen
963791a9e9
Another patch from Vladimir to eliminate obsolete junk.
2001-02-18 20:13:18 +00:00
Eric Andersen
f1bbb22dca
A small cleanup by Vladimir
2001-02-18 20:12:25 +00:00
Eric Andersen
f57a832063
Remove leftover junk
2001-02-18 20:11:38 +00:00
Eric Andersen
b50da53e0c
Get rid of long stale usage message code.
...
-Erik
2001-02-17 16:52:35 +00:00
Eric Andersen
3d20f772c2
A bunch of usage clenups from kent robotti <robotti@metconnect.com>
...
-Erik
2001-02-17 16:49:00 +00:00
Eric Andersen
966b3a6f79
More updates from Larry Doolittle. Don't use basedir, Don't assume
...
random makefiles are going to work with busybox.
2001-02-17 15:56:52 +00:00
Eric Andersen
1cf8166329
More updates.
2001-02-17 15:55:15 +00:00
Eric Andersen
47aea4ee71
Ignore applet_source_list
2001-02-17 03:08:32 +00:00
Eric Andersen
19f86207f5
Update the build system for pristine source directory builds. This
...
update is primarily work done by Larry Doolittle, but I did some
touchups of my own to make it work for me,
-Erik
2001-02-17 00:42:47 +00:00
Eric Andersen
69c8572f29
Update the debian build stuff
...
-Erik
2001-02-17 00:41:05 +00:00
Eric Andersen
f6a7227fd6
Throw out the obsolete INIT_CHROOT junk
2001-02-17 00:40:32 +00:00
Eric Andersen
28a78ab62c
Several features were hard coded on. Stop that. List tab completion
...
as working (thanks Vladimir!) and taking 4k.
-Erik
2001-02-16 20:26:50 +00:00
Eric Andersen
6faae7deb4
Commit Vladimir's latest cmdedit. I modified it slightly to ensure
...
parse_prompt() would be called before cmdedit_init(), since cmdedit_init()
calls cmdedit_setwidth() which uses cmdedit_prmt_len, which is set by
parse_prompt(). Also, added a mod, so very narrow terminals should now wrap
properly... This is working very nicely for me -- Vladimir has done some
very good work.
2001-02-16 20:09:17 +00:00
Eric Andersen
361ee514c6
Revert multibuild.pl change.
2001-02-16 19:07:21 +00:00
Eric Andersen
ca0f458ada
Regression testing bugfixes from Larry Doolittle. As an aside,
...
can I just say how much I am looking forward to having 0.50
released, so we can address this #define stupidness properly
by building a static libbusybox, and then letting the linker
sort out the dependancies.... Ahh, that will be much nicer.
-Erik
2001-02-16 18:43:54 +00:00
Eric Andersen
733c4ad6eb
Do usage messages the same way all other apps fo them.
...
Skip printing of available options (can't do this easily).
Based on a patch by Larry Doolittle.
-Erik
2001-02-16 18:41:12 +00:00
Eric Andersen
fa4f146d7d
Patch from Larry Doolittle to cross things in multibuild.pl
2001-02-16 18:37:00 +00:00
Eric Andersen
5f2c79d8c7
Make ar be crossed.
2001-02-16 18:36:04 +00:00
Eric Andersen
af12bc6de4
Make dpkg require dpkg-deb
2001-02-16 18:35:06 +00:00
Glenn L McGrath
3f5bcbfa3c
Fix warning for implicit declaration of time()
2001-02-16 10:33:30 +00:00
Glenn L McGrath
a9c69762ba
Fix compile error, sync() always returns 0 anyway.
2001-02-16 10:21:35 +00:00
Mark Whitley
825ae5a166
Another small formatting change from Larry Doolittle.
2001-02-15 23:31:40 +00:00
Mark Whitley
99806ad2bd
Applied patch from Larry Doolittle that does the following:
...
- style changes
- It actually returns the code computed by INET_setroute (wasn't being done
properly before)
- The displayroute() format string now matches net-tools
2001-02-15 23:00:48 +00:00
Eric Andersen
11b7a1deb7
Acknowledge Kenneth Chalmers ln fix.
2001-02-15 20:13:59 +00:00
Eric Andersen
d69d2da165
use perror_msg instead of perror to print the applet name.
...
-Erik
2001-02-15 20:12:05 +00:00
Eric Andersen
b50d707633
fix a few mallocs to be xmallocs.
...
-Erik
2001-02-15 19:50:11 +00:00
Eric Andersen
02b9f42a27
Patch from Matt Kraai to fix bug #1103 . I've tested it,
...
and it indeed seems to fix things.
-Erik
2001-02-15 19:07:43 +00:00
Eric Andersen
81bcc92c32
Fixed 'ls -s' so it actually displays block sizes again.
...
-Erik
2001-02-15 18:59:02 +00:00
Eric Andersen
8305006f7c
Make usage.c depend on usage.h
...
-Erik
2001-02-14 21:52:18 +00:00
Eric Andersen
c1c43113b4
Fins find message.
2001-02-14 21:51:54 +00:00
Eric Andersen
3ec8ffb121
I forgot to add usage.h, so here it is, with a few extra cleanups.
...
Also update show_usage to handle the updated usage.h. Again,
nearly all the work to get usage.h into shape was done by
Manuel Novoa III.
-Erik
2001-02-14 21:46:30 +00:00
Eric Andersen
67991cf824
This patch, put together by Manuel Novoa III, is a merge of work
...
done by Evin Robertson (bug#1105) and work from Manuel to make
usage messages occupy less space and simplify how usage messages
are displayed.
2001-02-14 21:23:06 +00:00
Eric Andersen
68be2ab914
implemented displayroute() based on a patch from Vladimir N. Oleynik,
...
so now route behaves as expected w/o any arguments.
2001-02-14 19:26:39 +00:00
Eric Andersen
98e599ca06
Commit Vladimir's latest version of stty.c. Nice work.
...
-Erik
2001-02-14 18:47:33 +00:00
Eric Andersen
ec45595300
Add in ifconfig and route
2001-02-14 08:11:27 +00:00
Eric Andersen
88a5ceb450
Bump rev to 0.50pre.
2001-02-14 07:55:19 +00:00
Eric Andersen
fc83c4c353
Several cleanups from Manuel Novoa III.
...
get_kernel_revision -- size reduction
NOTE: may want to combine with get_kernel_version in insmod???
parse_mode -- size reduction, multiple settings with "," now work correctly,
sticky-bit setting now implemented
process_escape_sequence -- size reduction, octal code to big for char bug fixed
format -- size reduction, val > LONG_MAX and hr = 1 printing bug fixed (was %ld),
2001-02-14 07:15:30 +00:00
Eric Andersen
6fd8c664c1
Apply a patch from Evin Robertson -- new pivot_root applet.
...
-Erik
2001-02-13 20:04:30 +00:00
Glenn L McGrath
3af1f88725
Closer integration with dpkg-deb and other busybox functions.
...
Hopefully simplified some code (works for me).
2001-02-12 11:33:09 +00:00
Glenn L McGrath
dadf9c6dcd
New dpkg-deb option, warning about dpkg usage
2001-02-12 11:27:45 +00:00
Glenn L McGrath
821fbf0f42
New option 'list' produces output that can be used for the packages .list file.
...
Will be used be bb dpkg
2001-02-12 11:16:26 +00:00
Glenn L McGrath
bc9afadecd
New function, deb-extract to be used by dpkg, code cleanups. saves some bytes
2001-02-11 03:32:41 +00:00
Glenn L McGrath
728875f340
Consmetic changes
2001-02-11 03:15:57 +00:00
Glenn L McGrath
631064613f
More style changes
2001-02-11 01:40:23 +00:00
Glenn L McGrath
0c9d77ccfd
Style changes; use get_line_from_file from utilities
2001-02-11 00:17:22 +00:00
Glenn L McGrath
de556615dc
BB_DPKG uses copy_file
2001-02-10 14:53:44 +00:00
Glenn L McGrath
510f0ddafa
Use copy_file from utilty.c, remove some char defines
2001-02-10 14:53:08 +00:00
Glenn L McGrath
649968ceb1
Bug fix, rename status file, cleanups
2001-02-10 14:26:48 +00:00
Glenn L McGrath
af8c65deaa
Replace status defines with const int to conform to sytle guide, adds 32 bytes
2001-02-10 03:19:51 +00:00
Glenn L McGrath
c900575dc4
Initial import
2001-02-10 02:05:24 +00:00
Glenn L McGrath
c30ab0f4a8
New applet: dpkg
2001-02-10 02:04:40 +00:00
Matt Kraai
e78fd0f721
Fix typo.
2001-02-09 18:10:53 +00:00
Mark Whitley
2fd52989f7
Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.
2001-02-09 00:41:10 +00:00
Mark Whitley
d238a7bcc8
Minor cleanups and clarifications.
2001-02-09 00:28:59 +00:00
Matt Kraai
1d70267450
Add listening support.
2001-02-07 04:09:23 +00:00
Matt Kraai
df8ccb6350
Added documentation for new find options.
2001-02-07 04:05:35 +00:00
Matt Kraai
096370d349
Reworked find with David Douthitt to support -type, -perm, -mtime, and
...
other improvements.
2001-02-07 03:52:38 +00:00
Matt Kraai
a164c647ac
Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.
2001-02-05 17:50:03 +00:00
Mark Whitley
925edb828d
Added some more on paren spacing and a section on testing guidelines.
2001-02-03 00:20:14 +00:00
Eric Andersen
c3fc3c5e7a
It seems I stupidly checked in a silly test I was making.
...
-Erik
2001-02-02 15:15:36 +00:00
Eric Andersen
29cff26f32
After testing multi-build, I stupidly committed Config.h
...
with nearly everything turned off. Doh!
-Erik
2001-02-02 01:08:22 +00:00
Mark Whitley
76c5e60d54
Patch from Chris Jaeger that makes turning on and off options in the makefile
...
a bit less error prone by calling 'strip' on makefile vars before performing
truth tests against them.
2001-02-02 01:07:17 +00:00
Eric Andersen
af4ac77d9d
Apply a patch from Larry Doolittle to add "-all" and "-none" switches
...
to multibuild.pl. I did a little formatting adjustments to make it
_very_ obvious when things stop working. I also removed the USE_PROCFS
config option -- just do the right thing when USE_DEVPS_PATCH is enabled.
-Erik
2001-02-01 22:43:49 +00:00
Mark Whitley
b5c29850e3
Tightened things up a bit, saved 20 bytes, and made the code a bit clearer in
...
the process.
2001-02-01 21:02:41 +00:00
Mark Whitley
065c7e779a
Applied patch from Chris Jaeger <cjaeger@ensim.com> to do better checking for
...
NFS_MOUNT_VERSION, depending on which kernel you're running.
2001-02-01 19:51:13 +00:00
Mark Whitley
9b300d0b1f
Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.
2001-02-01 19:39:43 +00:00
Matt Kraai
f2cc2762bb
Create find_applet_by_name function. Save 32 bytes.
2001-02-01 19:21:20 +00:00
Matt Kraai
05e782ddd3
Fix wget error message and add (and use) chomp library function.
2001-02-01 16:49:30 +00:00
Eric Andersen
bd018b1bab
Make old compilers not choke -- define the attribute in the func prototype.
2001-01-31 23:00:46 +00:00
Matt Kraai
dd19c69904
Removed trailing \n from error_msg{,_and_die} messages.
2001-01-31 19:00:21 +00:00
Mark Whitley
63ec273245
Added floppyfw to list of known projects using BusyBox.
2001-01-31 18:33:20 +00:00
Eric Andersen
82d5e59ea2
xfopen now used by wget
...
-Erik
2001-01-31 17:50:35 +00:00
Eric Andersen
79e898ac0e
Patch from Vladimir N. Oleynik to simplify wget file opening
...
using xfopen (which is what everything should be using).
2001-01-31 17:49:47 +00:00
Eric Andersen
65225df2dc
Cleanup patch from Vladimir N. Oleynik.
...
* mkdir: remove 3 lines in source code.
* mkfs_minix: save 32 bytes, remove 4 bugs.
* mkswap: save 64 bytes, remove 1 bug.
2001-01-31 17:35:02 +00:00
Eric Andersen
53cfb7e231
Patch from Vladimir N. Oleynik to simplify/cleanup a few things in init.c
2001-01-31 17:29:47 +00:00
Eric Andersen
704d2a6c43
Patch from Vladimir N. Oleynik to simplify how it decides which
...
app was invoked. This removes several strcmp calls.
2001-01-31 17:29:12 +00:00
Eric Andersen
39573f7130
Wrap a table (bg set to black, width=80%) around the screenshot
...
so it doesn't look like crap in Netscape. Should look fine in
Mozilla either way. I think.
-Erik
2001-01-31 17:14:17 +00:00
Matt Kraai
18d5064c47
Make it validate.
2001-01-31 02:13:05 +00:00
Matt Kraai
9ba0daf4ba
Close IMG tag.
2001-01-31 01:59:46 +00:00
Eric Andersen
93a8e2e64b
Patch from Larry Doolittle to reduce the chance that fussing with VPATH will
...
break cross-compilation.
-Erik
2001-01-31 01:38:05 +00:00
Eric Andersen
306f4fe480
If the ioctl fails to tell us the winsize, default to 79.
...
-Erik
2001-01-31 00:30:45 +00:00
Eric Andersen
22332fd26f
Patch from Bryan Rittmeyer -- be more conservative by default
...
with the lash prompt.
-Erik
2001-01-30 23:40:39 +00:00
Mark Whitley
ac21e93a3f
Added a new screenshot of Busybox. :-)
2001-01-30 23:37:15 +00:00
Eric Andersen
4bbdd788e0
Fix the pwd and group functions. The bb_ stuff was a leftover from
...
a brief past that mercifully (except for this) never made it into CVS.
-Erik
2001-01-30 22:23:17 +00:00
Eric Andersen
30f64c3aa2
Fix a stupid typo -- bug found by Larry Doolittle.
2001-01-30 19:23:46 +00:00
Mark Whitley
8526067336
Applied patch from Larry Doolittle to use preprocessor for defining
...
NFS_MOUNT_VERSION.
2001-01-30 18:53:42 +00:00
Eric Andersen
e57d54b456
Fix ls behavior for broken or very narrow terminals. Fix my_*
...
functions so they comply with the original interface (i.e. don't
exit on error, stringify uids and gids when no amtching name found).
-Erik
2001-01-30 18:03:11 +00:00
Matt Kraai
201dc0d5a9
Test applets containing numbers in their name. Thanks to Larry Doolittle.
2001-01-29 19:00:48 +00:00
Matt Kraai
ceade5c856
Fix missing header file.
2001-01-29 18:41:12 +00:00
Eric Andersen
8ec10a9483
Fix up copyright msgs. Bump version to 0.49 in preparation for
...
a release. Update the website with release details.
-Erik
2001-01-27 09:33:39 +00:00
Eric Andersen
90ca2848fd
Fix some formatting
2001-01-27 08:32:57 +00:00
Eric Andersen
ed3ef50c23
Fix header file usage -- there were many unnecessary header files included in
...
busybox.h which slowed compiles. I left only what was needed and then fixed up
all the apps to include their own header files. I also fixed naming for pwd.h
and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc.
-Erik
2001-01-27 08:24:39 +00:00
Eric Andersen
ab050f5522
Add in a patch to make busybox use the normal pwd.h and grp.h
...
functions. Add in simple implementations of these functions,
which can, optionally, be used instead of the system versions.
-Erik
2001-01-27 06:01:43 +00:00
Mark Whitley
3654ca56fa
Applied patch from Larry Doolittle to list supported arches, libcs and kernels
2001-01-26 20:58:23 +00:00
Mark Whitley
4e33875759
Applied patch from Vladimir N. Oleynik <dzo@simtreas.ru> to do tab-completion
...
in Busybox shell. (Thanks, Vlad.)
2001-01-26 20:42:23 +00:00
Eric Andersen
a68b21a28e
Cleanup patch from larry doolittle
...
-Erik
2001-01-26 20:31:02 +00:00
Mark Whitley
6e25f92636
Fixed a li'l thinko.
2001-01-26 19:19:23 +00:00
Eric Andersen
a528dc7071
Fix my braindamage -- remove termios and sighandling since they are not
...
needed at all. My bad.
-Erik
2001-01-26 18:30:12 +00:00
Eric Andersen
1e4b957ac3
I am an idiot. Looking over my patch, ls doesn't need to do anything
...
more then the ioctl to get the win size. None of the termios handling
crap is needed.
-Erik
2001-01-26 18:09:13 +00:00
Eric Andersen
5c9c8b4b26
Make cin be static
2001-01-26 06:50:46 +00:00
Eric Andersen
d5cad14b11
Update the arch-not-yet-supported msg to be more clear.
2001-01-26 02:23:57 +00:00
Eric Andersen
dff9d54e32
Add errno.h
2001-01-26 02:04:49 +00:00
Eric Andersen
5307eca7de
Make ls understand termios.
...
-Erik
2001-01-26 01:52:43 +00:00
Eric Andersen
114ad9c753
Fix a stupid bug I introduced yesterday. Doh!
...
-Erik
2001-01-26 01:52:14 +00:00
Eric Andersen
dbb8f8d123
Update some comments to clarify things.
2001-01-26 00:11:54 +00:00
Eric Andersen
d35c21587a
Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.
...
-Erik
2001-01-25 23:49:09 +00:00
Eric Andersen
ffde8673fe
Add in spoon's watchdog timer app.
...
-Erik
2001-01-25 23:40:32 +00:00
Mark Whitley
8ba1b1120e
Because you demanded it, source tree snapshots are made available daily.
2001-01-25 23:29:58 +00:00
Mark Whitley
0bc20caea5
Added Linux on nanoEngine to the list of known users.
2001-01-25 23:00:12 +00:00
Eric Andersen
537d165216
Update contact info.
2001-01-25 22:00:37 +00:00
Eric Andersen
c1b8f1224c
Apply a patch from Brent Priddy <brent.priddy@adtran.com> to add
...
'id -n' support.
-Erik
2001-01-25 05:12:02 +00:00
Eric Andersen
155c89b0c3
I just wrote 'insmod -o' to close bug#1049.
2001-01-25 04:11:06 +00:00
Eric Andersen
15f29e7d86
Tar, by itself, could fail.
2001-01-25 00:53:46 +00:00
Eric Andersen
cc2bcdc41d
Cleanup from Larry Doolittle
2001-01-25 00:47:31 +00:00
Eric Andersen
39b727f498
Fix for dpkg-deb, courtesy of Larry Doolittle.
...
-Erik
2001-01-25 00:45:52 +00:00
Eric Andersen
3862423884
Add in Larry's CUSTOMIZED_BANNER patchlet, and let folks know that
...
BB_FEATURE_INIT_CHROOT needs to be rewritten to use pivot_root.
-Erik
2001-01-25 00:04:16 +00:00
Eric Andersen
70c6086474
More regression testing found buglets
2001-01-25 00:00:04 +00:00
Eric Andersen
86f3d5bad6
Bug fix and small create_module cleanup from Larry Doolittle to
...
fix insmod, since I broke var=value args when I getopt'ified it.
2001-01-24 23:59:50 +00:00
Eric Andersen
54e9457920
Oops. I am an idiot. Put CFLAGS_EXTRA back. Sorry 'bout that.
...
-Erik
2001-01-24 23:53:43 +00:00
Eric Andersen
23a93f52aa
More regression-found bug fixes
2001-01-24 23:47:21 +00:00
Eric Andersen
f5d5e77321
more bugs fixed -- found doing regression testing
...
-Erik
2001-01-24 23:34:48 +00:00
Eric Andersen
26439a2991
Cleanup for build problem found using regression script
2001-01-24 22:46:16 +00:00
Eric Andersen
088d9e0f05
Fix _old_ bug so that the regression test actually works.
...
-Erik
2001-01-24 22:09:46 +00:00
Eric Andersen
7d69701d39
Some behavioral updates to wget so it acts a bit nicer.
...
-Erik
2001-01-24 20:28:35 +00:00
Eric Andersen
8c5cb31e1b
Fix up insmod usage info to mention -L
2001-01-24 19:15:07 +00:00
Eric Andersen
a18aaf1b6a
Make insmod understand (and ignore) -L, and convert it to use getopt.
2001-01-24 19:07:09 +00:00
Eric Andersen
c5cd470fdb
Update comments re netkit-tiny...
...
-Erik
2001-01-24 18:47:30 +00:00
Eric Andersen
f6c6d9aacc
Remove the warning messages. By consensus, netkit-tiny doesn't
...
need to happen.
2001-01-24 18:44:54 +00:00
Eric Andersen
24be980004
Fix spelling. s/maintainence/maintenance/
2001-01-24 17:37:07 +00:00
Mark Whitley
a5b55ca8a9
- Added a section on avoiding static buffers, per mailing list discussions
...
- Added a section on avoiding dangerous, overrun-prone string functions, per
mailing list comment by David Douthitt
- Added comment on how to search-and-replace in multiple files per (very old)
mailing list comment by Larry Doolittle.
2001-01-24 00:18:13 +00:00
Mark Whitley
f1b0c77c22
Fixed tiny typo.
2001-01-23 22:31:10 +00:00
Mark Whitley
59ab025363
#define -> static const int. Also got rid of some big static buffers.
2001-01-23 22:30:04 +00:00
Eric Andersen
2b8d07c590
Bug fix.
2001-01-23 00:27:51 +00:00
Eric Andersen
9136e3c84e
Remove host* applets from the default build.
2001-01-22 22:51:08 +00:00
Eric Andersen
e132119f07
Fix silly typo
2001-01-22 22:50:01 +00:00
Eric Andersen
6705986f27
Warn about apps that will be going away in release 0.50
...
-Erik
2001-01-22 22:48:42 +00:00
Richard June
6d0921cc0b
Add HUMAN_READABLE define for -m and -h support in du, df, and ls
...
Add support for -k in du, df, and ls(no define, it's for compatibliity with the GNU utils as bb does -k by default)
Fix bug #1084
2001-01-22 22:35:38 +00:00
Matt Kraai
3b3f5c364a
Use getopt (or getopt_long).
2001-01-22 20:49:00 +00:00
Matt Kraai
8f8dab94e5
Fixed listed files to extract to be more like GNU. Reported by Deon George.
2001-01-22 05:25:19 +00:00
Eric Andersen
0d5a08ed92
Patch from Larry Doolittle to close bug #1086 .
...
-Erik
2001-01-22 01:05:04 +00:00
Eric Andersen
b098b6d74c
Update time
2001-01-21 02:59:23 +00:00
Eric Andersen
fe9888ad97
Fix naming to reflect reality
2001-01-20 21:51:21 +00:00
Eric Andersen
965fa326a1
Move \n to inside TRIVIAL_HELP, to save a few bytes for the default case.
...
Patch from Vladimir N. Oleynik <dzo@simtreas.ru >
2001-01-20 21:45:57 +00:00
Eric Andersen
e2310b5a91
djust debian build targets
2001-01-20 21:43:43 +00:00
Eric Andersen
c73a7f9ba0
lean up a potential error, thanks to Vladimir N. Oleynik <dzo@simtreas.ru>.
2001-01-20 21:41:11 +00:00
Eric Andersen
370fb08e79
Clarify the statusbar config option so it states which applet it applies to.
2001-01-20 20:07:00 +00:00
Eric Andersen
6092680305
Adjust the default feature set a wee bit
2001-01-20 19:48:21 +00:00
Eric Andersen
5f825ee6d6
Apply a patch from Vladimir N. Oleynik <dzo@simtreas.ru>,
...
and thereby save 64 bytes.
-Erik
2001-01-20 16:22:58 +00:00
Glenn L McGrath
f914a8af2b
Close files before exit
2001-01-20 06:23:54 +00:00
Eric Andersen
6f65a3a7e8
More printf cleanups
2001-01-20 01:10:07 +00:00
Glenn L McGrath
1d269432b1
Close unused pipe handle before fork (for tar -z).
2001-01-20 00:12:21 +00:00
Matt Kraai
8392acd8fc
All files include busybox.h, which includes applets.h, so the Makefile
...
should reflect this. Thanks to Vladimir N. Oleynik for the idea.
2001-01-18 03:03:09 +00:00
Matt Kraai
12f417edbd
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
...
Vladimir N. Oleynik.
2001-01-18 02:57:08 +00:00
Matt Kraai
c9acf8c766
Complicate truncate behavior.
2001-01-17 00:21:05 +00:00
Matt Kraai
fd4c58d7c5
Fix the exit status of umount -a, a casualty of the TRUE/FALSE normalization.
...
Thanks to Francois-R Boyer <boyerf@IRO.UMontreal.CA > for the report.
2001-01-17 00:12:11 +00:00
Eric Andersen
9aa23ba5a8
Show an example of how to compile with uClibc.
...
-Erik
2001-01-16 21:20:46 +00:00
Matt Kraai
541ffe30a2
Fix ownership of extracted directories.
2001-01-13 21:46:25 +00:00
Mark Whitley
55787401ea
Removed unused, unneeded, Lineo-specific script.
2001-01-09 23:09:45 +00:00
Eric Andersen
744b064a34
Needs to be NULL at init in all cases.
2001-01-05 21:23:44 +00:00
Eric Andersen
59d31b68c3
Changelog update/cleanup from larry.
2001-01-05 21:01:01 +00:00
Eric Andersen
8ea28be6d2
Patch from larry doolittle to be ever so careful to cleanup
...
all open file descriptors, lest wierdness happen later.
2001-01-05 20:58:22 +00:00
Eric Andersen
0bcc813a34
Better label the globals.
2001-01-05 19:37:32 +00:00
Eric Andersen
b0970d4fed
Patch from Larry Doolittle to set values to static variables that live in the
...
bss at runtime, since sh.c can call sh.c, which causes these variables to not
be set to their defaults as god intended.
-Erik
2001-01-05 19:34:52 +00:00
Mark Whitley
eb60d8bcd1
Turned some #define constants into static const ints.
2001-01-05 18:19:30 +00:00
Matt Kraai
55bccf315e
Rewrote tail.
2001-01-05 02:57:53 +00:00
Matt Kraai
defcd5e75e
Fix a segfault by only constructing the prompt when we need to. If we don't
...
do this we will segfault processing /etc/.profile since cwd isn't yet set.
2001-01-05 02:53:11 +00:00
Mark Whitley
6c6ea6cba2
Changed email address to codepoet.org, updated list of applets / docs I
...
maintain in AUTHORS.
2001-01-04 22:21:13 +00:00
Mark Whitley
92386561f1
Included name of Larry Doolittle's build test script. Shameless self-crediting
...
of a few items.
2001-01-04 22:07:50 +00:00
Eric Andersen
05ebdd03d4
Update to changelog -- mostly from Larry Doolittle.
2001-01-04 21:14:15 +00:00
Matt Kraai
0810f723b1
Fixed -qv interaction (thanks to a report and patch from David Douthitt).
2001-01-04 15:11:52 +00:00
Eric Andersen
09acc06c10
Move window size handling to cmdedit.c. Move prompt setup to setup_prompt_string()
2001-01-04 11:10:38 +00:00
Eric Andersen
849083c886
Update interface per what now exists...
2001-01-04 11:09:00 +00:00
Eric Andersen
b3dc3b8990
Cleanup -- move win handling to cmdedit.c, static-ify many functions.
2001-01-04 11:08:45 +00:00
Matt Kraai
70a7855980
Fix symbol table manipulation (report and fix by Larry Doolittle).
2001-01-04 02:00:17 +00:00
Mark Whitley
1171c2fcb4
Added new script from Larry Doolittle that builds each applet individually.
2001-01-04 01:05:55 +00:00
Matt Kraai
be7499c83c
Behave like GNU tar when matching excluded files.
2001-01-03 17:22:10 +00:00
Matt Kraai
a9711a5969
Prevent / doubling and shrink parse_url.
2001-01-03 16:15:15 +00:00
Glenn L McGrath
59c09d06e3
Fix warning for unused variable
2001-01-03 01:44:49 +00:00
Glenn L McGrath
5e23e3d631
enable is_direcotry() for dpkg-deb
2001-01-03 01:38:29 +00:00
Glenn L McGrath
fa0443216d
Add dpkg-deb documentation
2001-01-03 01:06:30 +00:00
Eric Andersen
47b005217e
Disable a bunch of less common stuff by default. This produces
...
a more reasonable sized default build.
2001-01-03 00:14:45 +00:00
Eric Andersen
5e8b3ea19d
Logger forgot to NULL terminate strings from stdin.
2001-01-03 00:06:46 +00:00
Glenn L McGrath
58a408512b
really add dpkg-deb.c this time
2001-01-02 23:49:26 +00:00
Glenn L McGrath
7541e3a812
add dpkg-deb command
2001-01-02 23:41:50 +00:00
Matt Kraai
004827d715
Update logger usage information.
2001-01-02 22:54:12 +00:00
Matt Kraai
1944f547bd
Log stdin when no message given and use getopt.
2001-01-02 18:13:58 +00:00
Eric Andersen
28b3c53f0d
I just whipped up support for arbitrary regex delimiters, so
...
now things such as
$ echo foo | sed 'sxfooxb\arx'
bar
will work as expected (and so doogie can stop complaining).
-Erik
2001-01-02 11:01:31 +00:00
Eric Andersen
01bda5de6b
Better dmalloc handling
2001-01-02 01:16:38 +00:00
Eric Andersen
27c7bec4d4
Be more careful about dmalloc handling
2001-01-02 01:16:02 +00:00
Matt Kraai
e6e818309e
Improvements from Vladimir N. Oleynik.
2000-12-30 07:46:23 +00:00
Matt Kraai
e9e182e255
Fix lower casing for weird locales.
2000-12-26 16:36:10 +00:00
Eric Andersen
2d5b64273f
Cleanup from Gennady Feldman <gfeldman@mail.com>
2000-12-22 18:02:02 +00:00
Matt Kraai
a9819b2908
Use busybox error handling functions wherever possible.
2000-12-22 01:48:07 +00:00
Eric Andersen
e9f07fb6e8
Another sh.c patch from Larry Doolittle. This makes redirects work properly
...
with non-forking shell builtins. Especially helpful for "read". This patch
also beautifies builtin_fg_bg, clarifies the problems with
run_command_predicate, makes if/then/else support the default, and corrects the
sense of the BB_FEATURE_SH_ENVIRONMENT comment.
2000-12-21 18:31:36 +00:00
Eric Andersen
16fdbe8b27
Make more things be static (like they are supposed to be).
2000-12-20 23:40:57 +00:00
Eric Andersen
a6cd07099d
Bump the version number to 0.49pre
2000-12-20 23:22:29 +00:00
Eric Andersen
e111d69ca2
Turns out, md5sum was broken anyways. It uses backwards TRUE/FALSE
...
and wasnever updated when TRUE and FALSE were fixed. So kludge it
by doing an #undef TRUE, then define it backwards...
2000-12-20 23:19:42 +00:00
Eric Andersen
70da6a66d2
Fix a warning in sh.c. Remove use of getline() in md5sum since
...
nobody else uses it and it is a GNU extension anyways...
2000-12-20 22:59:16 +00:00
Mark Whitley
3680c58084
Some corrections, some additions, some embellishments.
2000-12-20 22:35:12 +00:00
Matt Kraai
5e8c0ffb75
Rewrote.
2000-12-20 20:49:56 +00:00
Eric Andersen
e75f6a972c
Fix a stupid naming error.
2000-12-20 20:41:02 +00:00
Matt Kraai
e80a2633bc
Be sure to read from the given path, not the one used in the header.
2000-12-19 20:45:49 +00:00
Mark Whitley
8eb5985f94
More spelling fixes from Larry Doolittle.
2000-12-19 19:44:35 +00:00
Mark Whitley
8a6b619c96
Added a paragraph from Larry Dolittle, made some more section headers.
2000-12-19 17:54:38 +00:00
Mark Whitley
eac2636513
New applet HOWTO. Written by Matt Kraai with some formating and additions by me.
2000-12-19 17:35:24 +00:00
Matt Kraai
a1f9775981
Fix tar handling of absolute paths and excluded directories.
2000-12-19 06:24:08 +00:00
Matt Kraai
24ac017961
Rewrote dd.
2000-12-18 21:38:57 +00:00
Eric Andersen
0d2acb0ead
Doc update from Matt Kraai, better describing the init process.
2000-12-18 20:36:02 +00:00
Eric Andersen
86349776d0
Ok, this is a pretty major update to sh.c. I renamed all the variables and
...
function names to conform with the style guide. I also did a lot of work on
the if-then-alse-fi logic and added prototype (i.e. it segfaults when enabled)
line continuation support.
Furthermore, this patch includes Larry Doolittle's work on restructuring some
of the data structures that represent the job and child_program, allowing
several simplifications and fixing several bugs.
-Erik
2000-12-18 20:25:50 +00:00
Matt Kraai
1fa1adea2a
Change calls to error_msg.* and strerror to use perror_msg.*.
2000-12-18 03:57:16 +00:00
Matt Kraai
0dab829977
Add missing newlines to error messages.
2000-12-18 03:08:29 +00:00
Matt Kraai
bfa7967c4a
Rewrite nc to be simpler, smaller, and to check syscalls for errors.
2000-12-15 22:34:34 +00:00
Matt Kraai
8677d7b6ec
Only say mailing list once.
2000-12-15 15:41:03 +00:00
Glenn L McGrath
e699b9f0fb
Remove defines for ar that arent needed
2000-12-15 06:50:54 +00:00
Glenn L McGrath
4f1b0124c7
Rewrite, fix a bug with multiple long filenames, simplify structure, remove cruft, make code conform closer to style guide, saves 350 Bytes.
2000-12-15 06:50:09 +00:00
Matt Kraai
8abc78aa84
Rewrite argv munger.
2000-12-15 00:35:22 +00:00
Eric Andersen
1b622ff5ac
Add in mkCDrec - make CD-ROM recovery project.
2000-12-14 15:43:57 +00:00
Matt Kraai
aefe5629ab
Simplify error handling.
2000-12-14 05:44:36 +00:00
Matt Kraai
95fa0ea3d4
Shutdown sending on the socket when stdin closes.
2000-12-14 04:34:58 +00:00
Mark Whitley
6f6aa9b428
Added some necessary brackets, removed debug noise.
2000-12-13 23:23:30 +00:00
Matt Kraai
e3a94f7d08
Ran aspell.
2000-12-13 19:50:48 +00:00
Eric Andersen
95d1f6d7c7
Formatting fix
2000-12-13 18:30:59 +00:00
Eric Andersen
4362200712
Website update for the release
2000-12-13 18:30:13 +00:00
Eric Andersen
1e1d232f38
Add a few folks to Authors
2000-12-13 18:14:51 +00:00
Eric Andersen
235f66dea3
A few more updates
2000-12-13 18:07:38 +00:00
Eric Andersen
d0fa0a12f1
Document gzip -d
2000-12-13 17:59:37 +00:00
Eric Andersen
02ced93ec2
Add GNU compatibile gzip -d
2000-12-13 17:55:11 +00:00
Eric Andersen
46948366fa
Update the version number to 0.48 (no longer pre).
2000-12-13 16:42:24 +00:00
Eric Andersen
21125543e1
A couple of updates to fix some minor cross compiling issues
2000-12-13 16:41:29 +00:00
Eric Andersen
4836fd44f0
Patch from Matt Kraai:
...
The following patch makes the -X option to tar behave like GNU,
which reads one file per line. It also prevents the last file
from being appended to the list twice (though that has no
noticeable impact).
2000-12-13 15:28:48 +00:00
Eric Andersen
bd193a42a5
Fix from Matt Kraai -- a better way to NULL terminate strings for the
...
my_* passwd and group routines. I should have thought of doing it
this way...
2000-12-13 01:52:39 +00:00
Eric Andersen
77508b29fa
Fix from Gennady Feldman for error msg
2000-12-12 23:51:43 +00:00
Eric Andersen
f361ac29b0
Mem leak fix from Matt Kraai
2000-12-12 23:45:36 +00:00
Eric Andersen
483262f633
Patch from Matt Kraai to fix 'dirname /'
2000-12-12 23:27:48 +00:00
Eric Andersen
4d4b3b1d88
Fix so cross compiling works again...
2000-12-12 23:23:32 +00:00
Eric Andersen
e3a48d865a
Cleanup for proper compilation with uClibc.
2000-12-12 23:22:35 +00:00
Eric Andersen
d9d03b83f8
Mount error return code fix from Kent Robotti -- we must reset the error
...
code when looping...
2000-12-12 23:20:37 +00:00
Eric Andersen
b12e506d8d
du.c error msg cleanup from Kent Robotti
2000-12-12 23:17:26 +00:00
Eric Andersen
69a6b2d4ae
Fix from Matt Kraai so basename / will work as expected.
2000-12-12 23:13:54 +00:00
Eric Andersen
e48eea63d3
Oops. Unmatched #if
2000-12-12 18:20:19 +00:00
Eric Andersen
a2d61e761e
Some compile fixes found by Larry Doolittle
2000-12-12 16:55:56 +00:00
Eric Andersen
5ec241d3b3
Script updates for better portability
2000-12-12 16:49:12 +00:00
Eric Andersen
2d6282bb37
Matt Kraai pointed out that we can rely on strncpy to NULL
...
terminate shorter cases, so we can save a few cycles...
2000-12-11 20:33:46 +00:00
Eric Andersen
d323d32c5b
Patch from larry doolittle to make sure we don't realloc
...
a pointer that was not yet malloced mem.
2000-12-11 20:29:13 +00:00
Matt Kraai
5a964f9d0b
Keep unknown priorities from segfaulting.
2000-12-11 20:13:37 +00:00
Eric Andersen
20c2bdd7f2
Fix spelling error s/defaut/default/g
2000-12-11 19:39:25 +00:00
Eric Andersen
5c365da884
Fix non-NULL terminated strings.
2000-12-11 19:37:19 +00:00
Eric Andersen
4ed17829ac
Fix a thinko -- when REMOTE_LOG support is compiled in,
...
but the user has not specified remote logging, then
be sure to log locally... duh.
2000-12-11 19:28:29 +00:00
Eric Andersen
b2356f6de9
Patch from Matt Kraai to fox sh.c escape problem such that
...
running things like 'echo "\n\tHi\n\t\!"' and 'echo -e "\n\tHi\n\t\!"'
behave as under bash.
2000-12-11 19:14:40 +00:00
Eric Andersen
59ec601b8e
Test suite update from Larry Doolittle to disable some problematic
...
ambiguous cases. Everything now passes the test suite...
2000-12-11 17:33:08 +00:00
Eric Andersen
a293a516ad
Patch from kent robotti to fix a buglet where
...
# du doesn't_exist
du: doesn't_exist: No such file or directory
0 doesn't_exist
which was on course wrong. I simplified it a bit...
2000-12-11 17:08:21 +00:00
Eric Andersen
394cf22668
Fix the option parsing to use getopt, which seems to fix bug #1050
2000-12-11 16:48:50 +00:00
Eric Andersen
cf7982e908
Patch from Larry Doolittle, fix up logging across multilple lines, hopefully
...
fixing bug #1061 .
2000-12-11 16:31:11 +00:00
Eric Andersen
70d09ed1cf
Reverse logic so when network logging, it by default does not log locally.
2000-12-11 16:24:16 +00:00
Eric Andersen
9962cd9f78
Add a linker warning for symbol conflicts.
2000-12-11 16:20:40 +00:00
Eric Andersen
c8eedd56ac
Some .deb update
2000-12-10 04:43:49 +00:00
Glenn L McGrath
46f44d24fc
Support for tar -z option for uncompressing only
2000-12-10 01:57:30 +00:00
Glenn L McGrath
00732b57c7
Introduce new function gunzip_init()
...
gunzip_init() will make it easier to use gunzip from other bb functions.
2000-12-10 00:51:42 +00:00
Glenn L McGrath
c52a97d79f
NFS_PORT and NFS_FHSIZE are not defined in the kernel headers that come with libc6-2.2-5
...
This just defines that if they arent found in the kernel header
2000-12-09 23:59:04 +00:00
Eric Andersen
9df3833370
Fix problem where 'du file_that_exists' doesn't work.
2000-12-09 17:07:12 +00:00
Eric Andersen
29edd005f9
More wget cleanups I've been working on...
2000-12-09 16:55:35 +00:00
Eric Andersen
afdde3e356
Some little cleanups from Larry Doolittle
2000-12-09 16:41:42 +00:00
Eric Andersen
5b5db38a7d
Patch from Matt Kraai to implement uniq -[cdu]
2000-12-09 16:37:53 +00:00
Glenn L McGrath
1bca5ed886
add quiet mode support.
...
If wget compiled without statusbar then -q option is accepted but has no effect.
If wget compiled with statusbar -q turns it off.
2000-12-09 08:12:06 +00:00
Eric Andersen
8c28fd7849
Forget to set final argv entry to NULL, breaking sh.c amoung
...
other things...
2000-12-09 00:19:30 +00:00
Eric Andersen
7da312058c
Some updates. Wrong name was on a patch, plus a spelling fix.
2000-12-08 21:05:58 +00:00
Eric Andersen
f21aa84389
Put in i to getopt, so i will work...
2000-12-08 20:50:30 +00:00
Eric Andersen
eb4218d0a4
Update inittab docs
2000-12-08 20:38:00 +00:00
Eric Andersen
bf2b8ae49a
Make no local logging a runtime option for network logging...
2000-12-08 19:52:01 +00:00
Eric Andersen
76fef0a5d0
Patch from Gennady Feldman <gfeldman@mail.com> to make syslogd not log
...
when compiled for remote logging. Not the ideal way to fix it (it should
really be a runtime switch), but good enough for now I guess...
2000-12-08 19:41:21 +00:00
Eric Andersen
9cff4fbac9
Patch from Matt Kraai to make logger log all arguments.
2000-12-08 19:35:51 +00:00
Eric Andersen
5e09b6e3a8
when invoked as 'busybox foo args' remove the "busybox"
...
so ps shows only what we want it to show...
2000-12-08 19:03:12 +00:00
Eric Andersen
f3b2b52b58
Patch from Matt Kraai to enable proxy support.
2000-12-07 22:42:11 +00:00
Mark Whitley
f57c944e09
Changed names of functions in utility.c and all affected files, to make
...
compliant with the style guide. Everybody rebuild your tags file!
2000-12-07 19:56:48 +00:00
Matt Kraai
7b5c16ebe5
Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format
...
strings from being passed to syslog(3).
2000-12-07 16:22:04 +00:00
Matt Kraai
87afb526b5
Get rid of redundant TRUE and FALSE definitions.
2000-12-07 16:11:50 +00:00
Randolph Chung
1e1d9d1c95
oops, didn't mean to commit that last one... reverting
2000-12-07 03:56:10 +00:00
Randolph Chung
da7b82981b
Write progress meter to stderr instead of stdout
2000-12-07 03:55:35 +00:00
Randolph Chung
02553a2a18
Fixed URL parsing bug
...
Fixed -O - output-to-stdout bug
2000-12-07 03:53:47 +00:00
Eric Andersen
3d957c87b7
Patch from Jim Gleason <jimg@lineo.com> to fix tar so it no longer breaks hard
...
links, and no longer segfault in a certain wierd case.
2000-12-07 00:34:58 +00:00
Eric Andersen
6b78fe383f
Add some more changlog stuff suggested by Larry Doolittle.
2000-12-07 00:29:50 +00:00
Eric Andersen
1e7cea952b
Bettwr document the hidden internal sh.c #defines, and which folks
...
might want to use...
2000-12-06 23:47:38 +00:00
Eric Andersen
bc5941a540
Close but #1071...
2000-12-06 23:17:37 +00:00
Eric Andersen
bfa54143f6
Ignore the newdocs as well
2000-12-06 23:12:43 +00:00
Eric Andersen
8ffabf5825
Patch from Matt Kraai to fix 'echo "1 2 3" | tr -s " "'
...
so it properly outputs "1 2 3".
2000-12-06 22:53:06 +00:00
Eric Andersen
1d3523b7aa
patch from Larry Doolittle to rename BB_FEATURE_SH_BUILTINS_ALWAYS_WIN
...
to the more pedantically correct BB_FEATURE_SH_APPLETS_ALWAYS_WIN.
2000-12-06 19:07:39 +00:00
Eric Andersen
21adca750a
Added insmod support for ARM, and lsmod support for older kernels,
...
thanks to Alcove, Julien Gaulmin <julien.gaulmin@alcove.fr > and
Nicolas Ferre <nicolas.ferre@alcove.fr >.
-Erik
2000-12-06 18:18:26 +00:00
Matt Kraai
e884970c87
Must compile before committing.
2000-12-06 15:56:31 +00:00
Matt Kraai
92ed8a3519
Fix exit status on failure.
2000-12-06 15:55:23 +00:00
Mark Whitley
ab147f608d
Removed isBlank and isWildCard macros that were totally unused (should anyone
...
need isBlank, please use isblank() in ctype.h). Converted isDecimal and
isOctal into inline functions. Compiled, tested, worked.
2000-12-05 20:42:48 +00:00
Mark Whitley
26a3adb244
Changed some #define strings to static const char [] variables. Tested ls
...
after changing, it worked.
2000-12-05 20:10:27 +00:00
Matt Kraai
deb9d4d765
Use perrorMsg and clean up exit status.
2000-12-05 20:07:27 +00:00
Mark Whitley
4758368505
Fixed the comments to match the code and renamed the function to a (hopefully)
...
more descriptive name, and as per the style guide.
2000-12-05 20:03:17 +00:00
Mark Whitley
cf61fe14ae
Applied patch from Matt Kraai to add v*error functions for handling vararg
...
lists in a safe 'n sane fashion.
2000-12-05 19:27:13 +00:00
Matt Kraai
d27753afd9
Use perrorMsg instead of perror and keep removing files if we encounter
...
an error.
2000-12-05 05:11:41 +00:00
Eric Andersen
0e836ed8db
Changelog update
2000-12-04 23:52:19 +00:00
Eric Andersen
2187adc619
Flag day warning!
...
Change TRUE and FALSE defines to normal C style TRUE=1, FALSE=0.
-Erik
2000-12-04 20:31:45 +00:00
Eric Andersen
8cede00b9e
Patch to add in the -X option and fix the --exclude bug, originally by
...
Sebastien Huet, and now ported to the latest and greatest by both Arne Bernin
<ab@netropol.de > and kent robotti <robotti@metconnect.com >.
2000-12-04 18:51:09 +00:00
Eric Andersen
f484e7e65c
Fix typo
2000-12-02 06:32:14 +00:00
Eric Andersen
868c057d25
Patch from Larry Doolittle so it will build the newdocs right.
2000-12-02 00:44:48 +00:00
Eric Andersen
e73fda8311
Update for handling .udebs and building using a pristine source dir...
2000-12-01 22:59:04 +00:00
Eric Andersen
29be79c5f6
More doc handling updates
2000-12-01 22:57:44 +00:00
Eric Andersen
4c45e0991a
Update some descriptions
2000-12-01 22:57:09 +00:00
Eric Andersen
b8b8d81c24
Fix yet another blunder. Create symlink correctly this time.
2000-12-01 20:26:30 +00:00
Eric Andersen
4d449c42f2
I forgot a "/". Oops.
2000-12-01 20:02:10 +00:00
Eric Andersen
e2f6e12213
More pristine source directory updates. It now works
...
for me (including doing install). How about you?
-Erik
2000-12-01 19:55:04 +00:00
Eric Andersen
09a34e5368
More updates for the Makefile to do BB_SRC_DIR. This is
...
primarily a patch from Larry Doolittle, but with updates
from me to handle docs and link creation properly...
2000-12-01 19:40:18 +00:00
Eric Andersen
02f3b2e0c8
Make tar shutup on compile
2000-12-01 19:04:52 +00:00
Eric Andersen
87559829ff
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
...
so no point acting like we do.
2000-12-01 19:02:24 +00:00
Matt Kraai
3e856ce428
Stop using TRUE and FALSE for exit status.
2000-12-01 02:55:13 +00:00
Eric Andersen
b558e76eb1
Apply some patches from Gennady Feldman <gfeldman@mail.com> to
...
. /etc/profile, and to emulate bash prompt. I've cleaned up
his patches a bit and all looks good now...
2000-11-30 22:43:16 +00:00
Matt Kraai
cabafae7b0
Note new dependency.
2000-11-30 04:55:40 +00:00
Matt Kraai
c119ab9e29
Note an error if we are unable to list/extract specified files.
2000-11-30 04:44:54 +00:00
Eric Andersen
8c725e624a
Patch from Larry Doolittle (with minor touchups from me so everything compiles
...
and works) to use the applet definitions in applets.h to autogenerate the applet
function and usage prototypes.
2000-11-30 00:27:06 +00:00
Eric Andersen
8c2d3f46ab
Fix escape char problem.
2000-11-30 00:03:57 +00:00
Eric Andersen
9bd71e8323
Add "\r" to utility.c:process_escape_sequence() (from email about
...
"echo vs. optarg" from Larry Doolittle Tue, 28 Nov 2000 10:36:04 -0800)
-Erik
2000-11-29 23:07:57 +00:00
Eric Andersen
8fff78d66e
Apply the BSD echo version submitted by Jonas Holmberg <jonas.holmberg@axis.com>
2000-11-29 22:40:59 +00:00
Eric Andersen
ddea368dbe
Apply rev #2 of dd fix from Gennady Feldman.
2000-11-29 22:33:02 +00:00
Eric Andersen
618e8ed4c4
Update the changelog a bit
2000-11-29 22:30:31 +00:00
Eric Andersen
0730943b49
Moar Speling fickes frum Larry Doolittle
2000-11-29 22:12:19 +00:00
Eric Andersen
20ea5c3352
Patch form Larry Doolittle <ldoolitt@recycle.lbl.gov> (in collaboration
...
with Matt Kraai <kraai@alumni.carnegiemellon.edu >) to allow for a
pristine source directory -- where all the .o files and such are
not placed into the source tree. Thanks Larry!
2000-11-29 22:08:35 +00:00
Eric Andersen
7b5d59464f
Apply a patch from Larry Doolittle <ldoolitt@recycle.lbl.gov> to close
...
bug 1069. This shaves about 100 bytes from the executable, and about
200 bytes of heap usage. Also document the "-d" option in the usage
message.
2000-11-29 22:01:42 +00:00
Eric Andersen
cf1189f5a7
Patch from Matt Kraai to fix an infinate loop with ls -aR
2000-11-29 21:52:06 +00:00
Eric Andersen
4bfb6b7b67
Finish commit of rpmunpack and add in scripts for undeb and unrpm
2000-11-29 21:39:02 +00:00
Eric Andersen
e500d20835
Apply a patch fromkent robotti:
...
Renamed unrpm to original rpmunpack, so you can use an included shell script
called unrpm as a front end to it.
There's also a shell script called undeb included for debian packages.
Change undeb and unrpm scripts to work with the busybox tar and gunzip.
2000-11-29 21:38:11 +00:00
Mark Whitley
d58ff8731c
Re-organized some sections and added a whole new section on avoiding the
...
preprocessor. Comments welcome.
2000-11-22 19:25:39 +00:00
Matt Kraai
9a71af54f5
Fix behavior when removal fails.
2000-11-22 01:09:38 +00:00
Matt Kraai
ab8f9e286b
Check for archive errors even for files we aren't extracting.
2000-11-18 01:28:57 +00:00
Matt Kraai
768a2340b5
Fixed return status (thanks to David Douthitt for the fix).
2000-11-18 01:16:43 +00:00
Matt Kraai
e93abf9e69
Fixed user and group name listing.
2000-11-18 01:08:24 +00:00
Mark Whitley
5022d0e55f
Added AdTran to the list of products using Busybox.
2000-11-17 22:07:08 +00:00
Mark Whitley
0053087587
Applied patch from Brent Priddy <brent.priddy@adtran.com> to handle the
...
special-case of using newlines as field delimiters.
2000-11-17 22:02:45 +00:00
Mark Whitley
9028e2c96a
Numerous spelling / grammar corrections from Larry Doolittle
...
<ldoolitt@recycle.lbl.gov >, as well as a few additions / clarifications.
2000-11-17 21:28:39 +00:00
Eric Andersen
a683ee81d9
"I will always compile before I commit."
...
"I will always compile before I commit."
"I will always compile before I commit."
-Erik
2000-11-17 18:51:45 +00:00
Eric Andersen
e5aef92e22
Fix up builtin overrides, and hack in the binary search for finding
...
matching applets into the shell.
2000-11-17 18:25:26 +00:00
Mark Whitley
cf32e23796
Modified help string for xargs. Props to Kent Robotti <robotti@metconnect.com>.
2000-11-17 18:13:09 +00:00
Eric Andersen
50b3113dc2
Add in a new FEATURE (off by default) BB_FEATURE_SH_BUILTINS_ALWAYS_WIN.
...
Make the sh default to using external commands when a path is provided.
2000-11-17 18:07:30 +00:00
Eric Andersen
337ec1bb32
Fix typo pointed out by Michael Renzmann <renzmann@gmx.de>
2000-11-17 17:23:16 +00:00
Eric Andersen
e790ddb2e1
Add BB_CMP to xfopen
2000-11-17 06:50:42 +00:00
Eric Andersen
4e573f4729
Remove the BSD advertising clause, and replace it with a link to how
...
the advertising clause has been retroactivly declared null and void.
2000-11-14 23:29:24 +00:00
Eric Andersen
8045c08e1c
Oops. I kant tipe.
2000-11-14 22:57:46 +00:00
Mark Whitley
e2e2c29ea1
Brand new version of xargs. Tested thoroughly by Kent Robotti. (Domo arigato,
...
Mr. Robotti...) Closes bug #1065 .
2000-11-14 22:43:21 +00:00
Eric Andersen
3c5ee9a379
Grammer fix. Changed "longer then" to "longer than". Fix thanks to Jim
...
Gleason <jimg@lineo.com >.
2000-11-14 22:15:48 +00:00
Eric Andersen
46f0beb167
Patch from Gennady Feldman <gfeldman@tradeline.net> to:
...
1. Opens redirections w/ the right access.
2. Doesn't do globbing for every single parameter (so it
doesn't stat every parameter).
2000-11-14 21:59:22 +00:00
Eric Andersen
2aa1091130
Ulp. "expr" listed as a second "echo" (oops) -- thanks to David Douthitt
...
for noticing....
2000-11-14 21:28:09 +00:00
Eric Andersen
6d5b73d183
Add in Zdisk
2000-11-14 21:12:39 +00:00
Eric Andersen
f61caf0411
Remove unneeded junk
2000-11-14 20:31:45 +00:00
Matt Kraai
7918e1fd54
Move flush_outbuf to the file in which it is used, and by doing so fix a
...
nasty error dealing with two different variables with the same name.
2000-11-08 06:52:57 +00:00
Matt Kraai
d8ad76cb31
Fix some bugs reported by Jim Gleason <jimg@lineo.com> and others I
...
introduced.
2000-11-08 02:35:47 +00:00
Eric Andersen
63a862272c
Cleanup of duplicated symbols -- found by compiling with
...
LDFLAGS += -Wl,-warn-common
2000-11-07 06:52:13 +00:00
Mark Whitley
eb69ead091
Removed REG_NEWLINE from regcomp to fix the same bug found in grep where it
...
would not match blank lines (bug #1064 ). Followed Matt Kraii's suit on his
1.42 revision of grep. Tested it, works.
2000-11-03 20:23:49 +00:00
Mark Whitley
e7ff2842dd
Now, what was that logic block doing up there?
2000-11-03 20:02:35 +00:00
Mark Whitley
2dc192fd99
Re-worked the support for s///p, fixed a backref limit buglet, and cleaned up
...
a few other ugly places (do_subst_command got a much-needed overhaul). Also
took out BB_FEATURE_SED_PATTERN_SPACE from Config.h[.Hurd] as the 'p' is now a
standard feature (adds almost no bloat).
2000-11-03 19:47:00 +00:00
Eric Andersen
a75466e981
Warning cleanup from Gennady Feldman
...
-Erik
2000-11-02 17:02:26 +00:00
Eric Andersen
ef936da7c5
Fix uname problem that was breaking poweroff.
2000-10-30 17:22:04 +00:00
Eric Andersen
3e07541e5f
This was redundant
2000-10-29 07:02:47 +00:00
Matt Kraai
269e07cadc
Make fbset compile with the readmode feature by pulling defs from fb.h.
2000-10-28 16:56:32 +00:00
Matt Kraai
a5bd26831f
Make features independent.
2000-10-28 06:40:09 +00:00
Matt Kraai
b273d66518
We also need to declare info if the USERNAMES feature is enabled.
2000-10-28 01:21:22 +00:00
Eric Andersen
c559d30776
Add in -lgcc to add needed symbold when linking vs uclibc.
2000-10-27 18:26:18 +00:00
Eric Andersen
b344c21709
Oops. I never committed this. Update version to 0.48pre...
2000-10-27 18:09:53 +00:00
Eric Andersen
d1ee7e39f7
Silence a warning,
2000-10-26 07:57:27 +00:00
Eric Andersen
84bdc75c7e
This was broken when applets moved to applets.h. Fix it.
2000-10-26 04:17:49 +00:00
Matt Kraai
e8c55f42c1
Fixed error handling and TRUE/FALSE usage.
2000-10-25 19:09:03 +00:00
Matt Kraai
2dab174daa
Restore --help handling I mistakenly removed.
2000-10-25 19:05:38 +00:00
Matt Kraai
a0428eee9e
Avoid reinventing the wheel (and thus save some space).
2000-10-25 19:00:51 +00:00
Matt Kraai
ef5529b278
Added a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSE
...
uses, and other minor fixes.
2000-10-25 17:00:36 +00:00
Matt Kraai
9133c98a9d
Cleaned up error handling, TRUE/FALSE usage, and other minor issues.
2000-10-25 16:48:15 +00:00
Matt Kraai
3180413e76
Clean up error handling and uses of TRUE/FALSE.
2000-10-25 16:40:21 +00:00
Matt Kraai
ac1169b20f
Cleaned up error handling and uses of TRUE/FALSE.
2000-10-25 16:38:00 +00:00
Matt Kraai
97d2612566
Cleaned up error message handling.
2000-10-25 16:25:50 +00:00
Matt Kraai
324a778f31
Added a fatalPerror function to simplify error handling.
2000-10-25 15:10:08 +00:00
Glenn L McGrath
b60208dd8f
Fix for bug #1068 from Kent Robotti
...
Call perror and exit instead of fatalError
2000-10-25 03:31:15 +00:00
Mark Whitley
130005cd89
Applied patch from Gaute B Strokkenes <gs234@cam.ac.uk> to use a binary search
...
to locate applets, rather than a linear search. Also, broke out the listing of
applets into it's own file: applets.h.
2000-10-25 00:28:27 +00:00
Matt Kraai
207061ac0d
Fix error messages.
2000-10-23 18:03:46 +00:00
Matt Kraai
2be4797a06
Fix error message.
2000-10-23 17:55:27 +00:00
Mark Whitley
6050618096
Put getopt_usage where it belongs and added *_usage entries in busybox.[ch]
2000-10-19 22:28:06 +00:00
Matt Kraai
69229a6c92
Piss people off by removing [+-][0-9]+ options from tail.
2000-10-19 21:28:32 +00:00
Matt Kraai
4f94e826cf
Remove broken error test found by Bryan Rittmeyer <bryan@ixiacom.com>.
2000-10-16 16:22:27 +00:00
Matt Kraai
567cdd1d51
Fix handling of ^$ by removing the newline from input lines and by not
...
compiling with REG_NEWLINE.
2000-10-13 18:55:06 +00:00
Matt Kraai
9a6e67c960
Consolidate stat(2) and lstat(2) calls and error handling.
2000-10-13 18:03:21 +00:00
Matt Kraai
33fdae54d1
Exit with failure status if we are unable to list any files or
...
directories. Patch thanks to Kent Robotti <robotti@metconnect.com >.
2000-10-13 17:59:43 +00:00
Eric Andersen
e7e1e2dcad
Apply a patch from Matt Kraai to fix buffer overrun and convert to
...
using synamically allocated storage.
-Erik
2000-10-12 22:40:14 +00:00
Eric Andersen
0d5835a767
Apply patch from "Orion Poplawski" <OPoplawski@cqg.com> to make
...
hostname do "--file"
-Erik
2000-10-12 22:30:31 +00:00
Mark Whitley
872138de50
Added cmp and readlink applets from Matt Kraai.
2000-10-09 18:56:47 +00:00
Eric Andersen
7a86e61a54
Patch from Matt Kraai so wc will return a proper error code
...
when failing to open a file, and will not use file when it
didn't open the file.
-Erik
2000-10-09 18:21:44 +00:00
Eric Andersen
62f987e95f
Fix a thinko. Patch from Justus Pendleton <justus@acm.org>
2000-10-09 17:54:38 +00:00
Eric Andersen
958c78f9a1
Apply a patch from Matt Kraai:
...
"The -L option to ls doesn't behave correctly for files listed explicitly
on the command line, only those in directories that are listed. The
appended patch fixes this problem. Would someone please commit it?"
-Erik
2000-10-09 17:51:25 +00:00
Eric Andersen
13241dfbdd
Patch from Matt Kraai: "When it encounters a problem creating a link, ln
...
shouldn't give up entirely but instead continue processing the rest of its
arguments. The attached patch does this."
2000-10-04 16:02:53 +00:00
Glenn L McGrath
aa3908d1b7
Rewrite to use getopt and return instead of exit, a seperate function (fs_link) does the actual work.
2000-10-04 09:34:35 +00:00
Eric Andersen
b520e083e0
Add a spiffy progress meter.
...
-Erik
2000-10-03 00:21:45 +00:00
Eric Andersen
25b669c144
Try to guess an output filename
2000-10-02 23:19:38 +00:00
Eric Andersen
ba1ff9b4eb
Apply patch from Giulio Orsero <giulioo@pobox.com> to ensure
...
get_last_path_component is defined under all configurations,
-Erik
2000-10-01 17:01:36 +00:00
Glenn L McGrath
c2bf5cad79
General cleanup of comments, defines, includes, and global variables, removed those that arent needed, grouped those remaining at the top.
...
Re-ordered functions to the order they are called.
Removed static crc table, it now generates the table once for itself.
Results in source reduced by 40%, so it should be a lot easier to work on in the future, binary size only reduced by under 2KB though.
2000-09-29 06:46:59 +00:00
Pavel Roskin
43f3e6114c
Fixes to allow compilation on systems with glibc 2.1.92
2000-09-28 20:52:55 +00:00
John Beppu
8d369e98a5
+ shortened main() a little, and a few aesthetic cleanups here & there.
2000-09-28 17:49:59 +00:00
Matt Kraai
c0321f9bc6
Rewrote head to perservere when it can't open a file, and share code
...
with cat.
2000-09-27 04:09:22 +00:00
Matt Kraai
e7c1af1e0d
Continue concatenating files even if we can't open one.
2000-09-27 03:01:40 +00:00
Matt Kraai
bbaef66b3f
Consolidate handling of some fopen failures.
2000-09-27 02:43:35 +00:00
Matt Kraai
e0bcce09ba
Rewrote uniq to be less than a third of the size, and fixed some other
...
minor problems.
2000-09-27 02:29:39 +00:00
Eric Andersen
8ce85ce4e3
Fix up the docs
2000-09-26 22:20:06 +00:00
Eric Andersen
bdcc6fbd95
update the docs
2000-09-26 06:15:12 +00:00
Eric Andersen
f8263516c2
Log the devps patch update
2000-09-26 05:08:04 +00:00
Eric Andersen
db7f2af089
Final touchups for the release...
...
-Erik
2000-09-26 05:02:50 +00:00
Eric Andersen
f6b7139971
Add in busybox.h. I renamed it, and forgot to commit the newky named version.
...
-Erik
2000-09-26 01:09:18 +00:00
Eric Andersen
d266748c76
Yet more polish (thanks again to kent robotti for the bug reports).
...
-Erik
2000-09-26 01:00:15 +00:00
Eric Andersen
53323695c5
Remove all reference to the now obsolete /dev/modules
...
-Erik
2000-09-26 00:52:05 +00:00
Eric Andersen
67fdf5e538
Update my devps patch for the latest 2.2 kernel.
...
-Erik
2000-09-26 00:20:28 +00:00
Eric Andersen
ff1ed7215c
Fix name
2000-09-25 22:53:33 +00:00
Eric Andersen
d89882da16
Some more polish to make xargs act like GNU xargs (thanks to kent robotti
...
<robotti@metconnect.com > for testing and pointing out the differences)
-Erik
2000-09-25 22:53:05 +00:00
Eric Andersen
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Eric Andersen
caffb6eff0
Gratuitously changed the file "busybox.defs.h" to the more
...
sensible and noticable "Config.h".
-Erik
2000-09-25 21:28:07 +00:00
Eric Andersen
c5949f62e5
Fix from Matt Kraai for the to the "busybox --install prints out on STDERR
...
"File already exists" messages for all files (including the ones that DON'T
exist)" problem reported by "Bruno L. F. Cabral" <bruno@openline.com.br >.
Thanks Matt!
-Erik
2000-09-25 20:35:54 +00:00
Eric Andersen
e081eae7a4
Final (I think) version of xargs. Throw away all that tedious string
...
scrubbing, and quit using system. Instead, use fork() and exec(), which
yields and smaller, simpler, and cleaner design.
-Erik
2000-09-25 20:23:21 +00:00
Eric Andersen
bf73909f23
Be ever so pedantic about escaping chars that the shell might not like...
2000-09-25 18:41:18 +00:00
Eric Andersen
944be90b21
Remove a now unneeded check
2000-09-25 16:58:39 +00:00
Eric Andersen
fe4208fe93
modified by Bryan Rittmeyer <bryan@ixiacom.com> to support SH4
2000-09-24 03:44:29 +00:00
Eric Andersen
488aac2e2a
Update newdoc dependancy
2000-09-24 02:42:48 +00:00
Eric Andersen
896fa4ea1d
Update a few entries for 0.47...
2000-09-24 02:42:18 +00:00
Eric Andersen
57f83fffd8
Doc update
2000-09-24 02:41:44 +00:00
Eric Andersen
6f283c2f77
Fix up xargs so that things like 'cat cat.c | xargs echo' will
...
work properly.
-Erik
2000-09-24 02:40:56 +00:00
Eric Andersen
9ae3838657
Fix xargs option parsing
2000-09-24 01:12:54 +00:00
Eric Andersen
1b1cfde1f8
Fix bug#1043 -- hanlde long filenames and links (in this case, by complaining
...
that thay exist and skipping such files when extracting and when archiving.
-Erik
2000-09-24 00:54:37 +00:00
Eric Andersen
0102a9fd48
Fix an obscure option parsing bug.
2000-09-23 22:36:24 +00:00
Eric Andersen
2da90d3b58
Force optind=1 for libc5 when doing cp in cp_mv.c
2000-09-23 20:55:59 +00:00
Eric Andersen
285b446d17
Fix potential memory overrun...
2000-09-23 19:56:46 +00:00
Eric Andersen
32e95f988d
Fix the bandaid.
2000-09-23 19:55:59 +00:00
Eric Andersen
96bdde97fb
Fix memory problems, and make behavior correct.
2000-09-23 19:53:31 +00:00
Eric Andersen
6d66817b6b
update docs for xargs
2000-09-23 06:12:34 +00:00
Eric Andersen
82e0614101
update usage for xargs
2000-09-23 06:11:03 +00:00
Eric Andersen
a37d5b772b
rewrite, so it should be firly clean now
2000-09-23 06:10:14 +00:00
Eric Andersen
5b17693f0a
Use minix xargs instead, and update docs accordingly
...
-Erik
2000-09-22 20:22:28 +00:00
Eric Andersen
ebc0dd7a8a
Comment on xargs choice.
2000-09-22 20:02:34 +00:00
Eric Andersen
92a61c1206
Add in xargs
2000-09-22 20:01:23 +00:00
Matt Kraai
90f580ad5b
Start the great EXIT_{SUCCESS,FAILURE} migration.
2000-09-22 03:45:34 +00:00
Matt Kraai
d995493987
Clean up error messages.
2000-09-22 03:36:27 +00:00
Matt Kraai
a2f2a8f8c0
Add support for the -L option to ls.
2000-09-22 03:11:47 +00:00
Matt Kraai
810d38f850
Fix loop.h dependencies.
2000-09-22 02:33:29 +00:00
Eric Andersen
a1b35c4512
Apply a bandaid suggested by Jon McClintock <jonm@bluemug.com>, since deallocvt
...
has code for handling no arguments, but the usage checking code aborted if
there are any other than two arguments.
-Erik
2000-09-22 00:40:39 +00:00
Eric Andersen
8c185f9600
Fix for bug #1042 -- applied the patch from Larry Doolittle
...
<ldoolitt@recycle.lbl.gov > to fix the bug.
-Erik
2000-09-22 00:38:07 +00:00
Eric Andersen
75610e18b3
Better cross libc compatibility (so Dave Cinege can stop complaining
...
that I broke it).
-Erik
2000-09-22 00:22:10 +00:00
Eric Andersen
2c1faecba7
Decouple DODEBUG and DOSTATIC
2000-09-21 22:26:02 +00:00
Eric Andersen
c873d61008
Remove all the kernel headers so it will compile under libc5
...
-Erik
2000-09-21 04:09:58 +00:00
Eric Andersen
ba35b98444
Fix a potential warning
2000-09-21 04:05:38 +00:00
Eric Andersen
d2f5677762
Add in exec support (patch from Torbj?rn Axelsson <torax@cendio.se>)
...
and disable backticks (since they are still wierdly broken in some
cases.
2000-09-21 02:48:07 +00:00
Eric Andersen
d1de4a16ad
Handle 'cat -'
2000-09-21 02:39:50 +00:00
Eric Andersen
f34aa4c378
Hard code the name of init.
2000-09-21 02:32:11 +00:00
Eric Andersen
8a2e56c5df
Large file >2Gib support.
2000-09-21 02:23:30 +00:00
Eric Andersen
350b3f9236
Typo fix.
2000-09-21 02:06:35 +00:00
Eric Andersen
ae22612792
Ignore loop.h
2000-09-21 02:05:43 +00:00
Eric Andersen
624cc771da
More portable handling of loop header files, as done in util-linux
2000-09-21 02:04:51 +00:00
Eric Andersen
8847b9a03a
Remove a warning. Patch from Bryan Rittmeyer <bryan@ixiacom.com>
2000-09-21 01:33:05 +00:00
Matt Kraai
7c22b77162
Only remove directories when removing recursively.
2000-09-20 23:10:21 +00:00
Eric Andersen
cff3fe3ae9
Added dos2unix, unix2dos, and unrpm.c thanks to robotti@metconnect.com.
...
-Erik
2000-09-20 19:22:26 +00:00
Eric Andersen
0cccdfaf36
When mounting a ro fs rw, print warning and then mount it ro. Patch
...
from Dave Cinege.
-Erik
2000-09-20 06:23:36 +00:00
Matt Kraai
b938e2ff99
Return failure if ping gets no response.
2000-09-20 04:33:30 +00:00
Eric Andersen
46a98dfb13
Reverted my conversion of tar to getopt to ensure tar can
...
handle traditional semantics (i.e. 'tar -xvf -' or 'tar xvf'
now both work).
-Erik
2000-09-19 21:35:14 +00:00
Eric Andersen
56f3e353da
Both of these commands were subtly broken. Fortunately when used together the
...
damage was only ugly fscks. Reverted to the static inline code so they work
correctly again,
-Erik
2000-09-19 21:13:55 +00:00
Eric Andersen
06f64b2370
I think these featires are fairly safe...
...
-Erik
2000-09-19 07:16:39 +00:00
Matt Kraai
0b2da467a8
Avoid segfaults by not using snprintf to copy strings.
2000-09-19 06:46:44 +00:00
Matt Kraai
721119e1db
Clean up output.
2000-09-19 05:25:12 +00:00
Glenn L McGrath
cd26ff4eac
Only defines functions that will compile and are usefull under the
2000-09-19 02:25:36 +00:00
Eric Andersen
252bacc9ea
Apply a patch from Chip Rosenthal <chip@unicom.com> to fix NFS mounting,
...
which had been inadvertantly broken...
-Erik
2000-09-19 01:21:13 +00:00
Glenn L McGrath
fd3741d712
Remove definition of basename.
...
It was defined out so that it would never be seen, and if it was ever seen it wasnt used for anything. It also stops gunzip compiling under the Hurd.
2000-09-18 10:20:16 +00:00
Glenn L McGrath
38c8551cf2
Path count was out by one, fixed it
2000-09-18 09:52:03 +00:00
Glenn L McGrath
63dde9d4ce
Simplify and remove dependence on PATH_MAX
...
buf[PATH_MAX] now defined using strlen to the exact size to be used.
removed output that was displayed if which didnt find the command, this makes itmatch the behaviour of GNU's which.
These modifications result in a slight size decrease.
2000-09-18 09:37:40 +00:00
Matt Kraai
b2f36af157
Updated stdin/stdout treatment to match that of gnu tar.
2000-09-15 22:47:34 +00:00
Matt Kraai
6fc2a7d04d
Reorganize listing code.
2000-09-15 22:23:41 +00:00
Matt Kraai
82cfbad216
Allow non-verbose listing to work.
2000-09-15 21:18:43 +00:00
Pavel Roskin
c9db2e8665
Updated to be in sync with the current sample inittab
2000-09-15 17:24:13 +00:00
Pavel Roskin
d2d3aa39ef
Fixed compliance with the DTD
2000-09-15 17:16:40 +00:00
John Beppu
2aee993118
+ credit markw@lineo.com for his contributions
2000-09-15 08:04:42 +00:00
Pavel Roskin
f5cf8c6c65
Don't suppress output of umount and swapoff - it is both unwise
...
and incompatible with lash that doesn't support >&1 yet.
2000-09-15 01:34:17 +00:00
Pavel Roskin
33bee33af0
Don't suppress output of umount and swapoff - it is both unwise
...
and incompatible with lash that doesn't support >&1 yet.
2000-09-15 01:02:50 +00:00
Pavel Roskin
5f84fd7066
"exit NUMBER" should exit, not return
2000-09-15 00:46:51 +00:00
Pavel Roskin
cbe05e45db
For "askfirst" don't just read one char from stdin,
...
read the whole line using getc(), so that everything before Enter
gets discarded.
2000-09-14 22:47:29 +00:00
Eric Andersen
7e3bf6e339
Add in a patch from robotti@metconnect.com and Chip Rosenthal to make
...
init do login shell stuff.
-Erik
2000-09-14 22:01:31 +00:00
Eric Andersen
ce40fc044b
Note the syslogd bug fix
2000-09-14 21:56:18 +00:00
Eric Andersen
5d63884a8f
Bug fix for wget, and proper attribution of Chip Rosenthal and
...
Covad Communications for the contribution of wget.
-Erik
2000-09-14 21:46:30 +00:00
Eric Andersen
31e6829bd8
Fix the halt/reboot/poweroff segfault when used from within an initrd...
...
-Erik
2000-09-14 21:12:20 +00:00
Matt Kraai
131241f71c
Backslashes shouldn't be treated as backticks.
2000-09-14 00:43:20 +00:00
Matt Kraai
cbbe4d6bc2
Copy the string terminator.
2000-09-14 00:26:50 +00:00
Glenn L McGrath
56a328810b
Fix looping bug, use fullRead
2000-09-13 23:08:07 +00:00
Eric Andersen
b4c3c59a45
Add in BasicLinux by request
2000-09-13 23:06:41 +00:00
Pavel Roskin
f8e04f7113
Added _install
2000-09-13 16:52:32 +00:00
Eric Andersen
fb6a50820c
Ensure forked processes always are on a controlling tty, so the
...
^C can be properly sent to /dev/console.
-Erik
2000-09-13 16:15:29 +00:00
Pavel Roskin
d39d120998
Make syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC.
...
Also ignore SIGCHLD - it must have been meant.
2000-09-13 14:14:29 +00:00
Pavel Roskin
5d513f7256
List of signals updated from util-linux-2.10o
...
Architecture names are no longer used - should now compile on SPARC
2000-09-13 14:03:48 +00:00
Matt Kraai
dd450a0ded
Don't fork for the . (source) command so that environment settings are
...
preserved.
2000-09-13 03:43:36 +00:00
Matt Kraai
322ae93a5e
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
...
segfaulting or handling errors the same way themselves.
2000-09-13 02:46:14 +00:00
Matt Kraai
b89075298e
Fix unchecked calls to {m,c,re}alloc so that they print an error and
...
exit rather than segfaulting (what an improvement).
2000-09-13 02:08:21 +00:00
Pavel Roskin
23ad7f7f06
Typo fix: resolv -> resolve
2000-09-12 22:05:17 +00:00
Eric Andersen
ccb0a9ba88
Formatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.
...
-Erik
2000-09-12 16:20:49 +00:00
Glenn L McGrath
fca8050f0f
Fix .deb unpack and experimental TAR support
...
The previous ar.c fialed to recognise one record in .debs
Experimental tar support, this is currently *very* cheap because ar and
tar are functionally similar. It will need lots of testing so by
default tar support code is defined out.
To test uncomment the line "#define BB_AR_EXPERIMENTAL_UNTAR"
2000-09-11 05:25:39 +00:00
Glenn L McGrath
ac19b7e032
Extra defines for ar
2000-09-11 05:06:13 +00:00
Eric Andersen
49352adf9c
Simplify a few little things, and merge in a patch from
...
robotti@metconnect.com so that 'ar -xv' and 'ar -x -v'
both work.
-Erik
2000-09-11 04:55:31 +00:00
Glenn L McGrath
605a819a17
New dd behaviour
2000-09-11 00:33:09 +00:00
Glenn L McGrath
f0b073f55a
dd now truncates files at the end its write, this can be turned of by
...
specifying conv=notrunc in the command line
This conforms to GNU dd behaviour
2000-09-11 00:32:13 +00:00
Eric Andersen
de34e43755
MAke lsmod act just like modutils lsmod, by printing which modules use
...
other modules, and state info like (deleted) and such.
-Erik
2000-09-10 16:16:00 +00:00
Eric Andersen
cbb61c78ae
Make init handle current 2.4.x sysinfo behavior
...
-Erik
2000-09-10 16:13:41 +00:00
Eric Andersen
73de6561ca
Update free for current 2.4.x behavior...
...
-Erik
2000-09-10 16:10:41 +00:00
Glenn L McGrath
729216cb11
Remove some debugging code
2000-09-10 04:42:20 +00:00
Glenn L McGrath
18310f1ce3
Using seek=? used to cause part of the original file to be zero'ed, i
...
think this was caused by opening the file in truncate mode.
2000-09-10 04:39:37 +00:00
Glenn L McGrath
0ae8e5a645
My previous attempt to make dd use fullRead, fullWrite was very broken,
...
this should actually work.
2000-09-10 01:54:27 +00:00
Glenn L McGrath
bd7c67136a
remove some printf statements i forgot about
2000-09-09 15:04:34 +00:00
Glenn L McGrath
1c6917d2c4
Updated to match new -R ar functionality
2000-09-09 14:57:15 +00:00
Glenn L McGrath
e2b345a6d8
Implemented new ar functionality unique to busybox ar (i think), the -R
...
option enable a Recursive extraction (or listing) to take place.
i.e. if any files being extracted are themselves ar archives then
busybox ar will extract their contents as well.
e.g. take bar.deb and do (with GNU ar) ar -q foo.deb b.ar
then with busybox ar can do ar -x b.ar data.tar.gz
-R isnt used for anything in GNU ar so i think it should be ok, could
have used long options
This functionality will become (more) usufull with tar, gz support.
2000-09-09 14:50:04 +00:00
Glenn L McGrath
437bf72785
Changed getopt so that options can be grouped together, the source
...
archive is now assumed to be the first non parameter.
This is how GNU ar behaves.
2000-09-09 13:38:26 +00:00
Glenn L McGrath
6fb88e73f7
Fix permisions
2000-09-09 12:48:40 +00:00
Glenn L McGrath
8324b9f1aa
Now supports GNU style long filenames.
...
If no filenames are specifed to be (extracted/listed) it will act on
all files in the archive (i dont think the old version did this)
Code is structured to better support upcoming recursive extraction
functionality.
The old code was a bit strange in places, dont know what i was thinking.
2000-09-09 08:35:45 +00:00
Eric Andersen
11c655295c
New ls sorting patch, as written by Sterling Huxley, and then updated
...
by kent robotti. I then updated it to use my_getpwuid and my_getgrgid
(per busybox policy).
-Erik
2000-09-07 17:24:47 +00:00
Matt Kraai
44e3840343
Stop leaking file handles.
2000-09-07 04:34:17 +00:00
Matt Kraai
17c8851813
Fix more typos.
2000-09-06 03:59:49 +00:00
Matt Kraai
6085c72b6e
Reset optind so that getopt works in busybox applets called directly by sh.
...
Change the behavior of -c to correctly handle $1..$9.
2000-09-06 01:46:18 +00:00
Matt Kraai
9dd79791c8
Fixed a grammatical error.
2000-09-06 00:50:51 +00:00
Eric Andersen
ebee301c8b
Fixed for when BB_CP_MV is enabled.
2000-09-05 22:17:22 +00:00
Eric Andersen
d13ebff163
Add BB_SH to get_last_path_component()... Fix thanks to
...
Bj�rn Eriksson.
2000-09-05 21:50:52 +00:00
Eric Andersen
1eec89df4c
Apply segfault on no-args fix from robotti@metconnect.com
2000-09-05 18:21:53 +00:00
Eric Andersen
3639c5d950
Set environment variable to make ash happy. ash is a frequent enough
...
target....
2000-09-05 17:57:52 +00:00
Eric Andersen
1b355ebba6
Added expr, from Edward Betts <edward@debian.org>, with some fixups
...
and docs added by me.
-Erik
2000-09-05 17:37:48 +00:00
Matt Kraai
43c8c38bbf
Allow compilation when not using BB_FEATURE_TAR_EXCLUDE, and fix
...
handling of --exclude option.
2000-09-04 16:51:55 +00:00
Eric Andersen
61a9d8d145
Forgot this part of wget
2000-09-04 15:16:51 +00:00
Eric Andersen
9670083818
Initial implementation of wget, from Chip Rosenthal <chip@laserlink.net>.
...
Very cool. Still lacks "chunked" transfer-coding, so not totally RFC
compliant for HTTP1.1, but very nice nonethe less, and very small.
-Erik
2000-09-04 15:15:55 +00:00
Matt Kraai
b92223b6f5
Allow selective extraction and listing of files. And fix an unchecked
...
return value of realloc (with xrealloc).
2000-09-04 08:25:42 +00:00
Eric Andersen
fd50c3d2f9
Add in byld
2000-09-01 22:24:03 +00:00
Eric Andersen
cb91d69b3f
Fix compile when BB_FEATURE_LINUXRC is defined
...
-Erik
2000-09-01 18:43:02 +00:00
Eric Andersen
73bdf13d35
Fixed a stupid thinko preventing zcat from doing its job, thanks
...
to Torbj�rn Axelsson <torax@cendio.se > for the fix.
-Erik
2000-09-01 16:25:33 +00:00
Eric Andersen
3a957b9d4c
Turned off ls file-sorting till it can be fixed.
2000-09-01 16:15:51 +00:00
Eric Andersen
18a1014c95
updated some usage info from a patch from robotti@metconnect.com
...
-Erik
2000-09-01 16:12:57 +00:00
Matt Kraai
da542f3a0c
Argh. I *will* compile before checking in.
2000-09-01 02:53:01 +00:00
Matt Kraai
f446297afd
Don't unlink files if we are extracting to stdout.
2000-09-01 02:50:48 +00:00
Eric Andersen
e99674a70f
Correct the stdin/stdout behavior when no args are provided.
...
-Erik
2000-09-01 00:41:10 +00:00
Eric Andersen
5eb5912790
Sigh. Seems I screwed up last time. This fixed detecting
...
when on a console or not, and make default behavior compatible
with GNU gzip...
-Erik
2000-09-01 00:33:06 +00:00
Eric Andersen
4e61db2284
Add an extra sanity check in parse_mode
...
-Erik
2000-09-01 00:06:17 +00:00
Eric Andersen
ad3d90f91e
Fix a spelling error
...
-Erik
2000-08-31 23:53:58 +00:00
Eric Andersen
a3de24e85d
Fix spelling error
...
-Erik
2000-08-31 23:52:46 +00:00
Matt Kraai
1638488d26
Rewritten by mistake.
2000-08-28 03:53:27 +00:00
Matt Kraai
ab60f6987a
Removed dead regular expression code.
2000-08-28 03:12:30 +00:00
Matt Kraai
88cc3057fd
Compile xstrdup and xstrndup iff they are needed.
2000-08-26 16:52:28 +00:00
Glenn L McGrath
06aeb6c417
ar.c now uses a linked list to process headers, uses getopt, new internal function extractAr(srcFD, dstFd, filename) to make it easily accessable to other busybox functions.
...
moved copySubFile from ar.c to utilities.c
modified dd.c to use fullWrite
modified copyFile in utilities.c to use copySubFile
2000-08-25 03:50:10 +00:00
Eric Andersen
4d5ac2f346
Fix tab stops for sed usage.
2000-08-25 00:23:36 +00:00
Pavel Roskin
3a0f4baf2f
Fixed a warning about a label not being used
2000-08-22 15:47:57 +00:00
Pavel Roskin
8237add8d0
Fixed misuse of type "char"
2000-08-22 15:38:16 +00:00
Pavel Roskin
32f2769800
From Ken Chalmers <chalmers@norscan.com>:
...
The current CVS mount.c is missing a semicolon, causing building to fail
if NFS is enabled (#define BB_NFSMOUNT).
2000-08-22 15:35:31 +00:00
Eric Andersen
089d12d762
Fix a unterminated string.
...
-Erik
2000-08-22 05:18:30 +00:00
Eric Andersen
aaa94fb8a9
Note the chmod fix.
...
-Erik
2000-08-22 01:02:05 +00:00
Eric Andersen
ce82c8ab77
Fix an option parsing bug where things like
...
chmod -r /tmp/file
wholdn't work (since it thought -r was an option). Doh!
-Erik
2000-08-22 01:00:56 +00:00
Mark Whitley
2368a387ed
Some additional tips and formatting changes.
2000-08-22 00:20:21 +00:00
Eric Andersen
e4c4d69c04
Fix a silly bug so it compiles up properly
...
-Erik
2000-08-21 23:29:45 +00:00
Eric Andersen
6ab22027d0
Oops. Forgot to commit rdate.c.
...
-Erik
2000-08-21 23:04:00 +00:00
Eric Andersen
fba9c00071
Script to do regression test, by combining all possible options.
...
-Erik
2000-08-21 23:01:39 +00:00
Eric Andersen
acf5551099
Script to do regression test, by combining all possible options.
...
Run this to check for combinitorial type build errors.
-Erik
2000-08-21 23:01:20 +00:00
Eric Andersen
918507edda
Added the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.
...
I added the docs, and made behavior identical to the GNU version.
-Erik
2000-08-21 22:46:33 +00:00
Eric Andersen
851ce895bd
Turn off some debug noise.
...
-Erik
2000-08-21 22:34:23 +00:00
Eric Andersen
a1f16bba72
Added getopt(1) from "Alfred M. Szmidt" <ams@trillian.itslinux.org>
...
-Erik
2000-08-21 22:02:34 +00:00
Eric Andersen
e2205f093b
Removed since this patch is now in the current 2.4.x kernel
...
tree.
-Erik
2000-08-21 21:44:52 +00:00
Mark Whitley
0e4cec0be8
Applied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option in
...
substitution expressions.
2000-08-21 21:29:20 +00:00
Eric Andersen
dc746169cf
Oops. Forgot to add in reset.c. Doh!
...
-Erik
2000-08-21 21:26:33 +00:00
Eric Andersen
282c364148
Fix a thinko, thanks to Klaasjan <klaasjan@europe.com>
...
-Erik
2000-08-21 21:23:48 +00:00
Eric Andersen
fa405d0cb2
Add in the "reset" command.
...
-Erik
2000-08-21 21:18:52 +00:00
Eric Andersen
202995c612
Yet another patch to fixup lsmod
...
-Erik
2000-08-21 19:40:42 +00:00
Eric Andersen
c86e5e6145
Some leftover stuff I forgot to commit for the lsmod change.
...
-Erik
2000-08-21 19:38:49 +00:00
Eric Andersen
be0dc0d06a
lsmod now uses the query_module syscall, rather then /proc
...
-Erik
2000-08-21 19:25:16 +00:00
Eric Andersen
b2fc5a0647
syslogd was leaking processes that could forever busyloop. Fixed.
...
-Erik
2000-08-20 06:11:32 +00:00
Eric Andersen
e89267c8b3
Minor fixups.
...
-Erik
2000-08-19 20:16:16 +00:00
Eric Andersen
8cbac440d6
Better 'mt' docs, thanks to Kent Robotti <robotti@metconnect.com>
...
-Erik
2000-08-11 20:14:11 +00:00
Eric Andersen
6ac18a3d83
Fix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>
...
-Erik
2000-08-11 20:11:35 +00:00
Eric Andersen
bb39a31e33
Minor link update
...
-Erik
2000-08-11 18:13:21 +00:00
Eric Andersen
79565b6c91
Add optional ls file sorting, thanks to a patch from
...
Sterling Huxley <sterling@europa.com >
-Erik
2000-08-11 18:10:21 +00:00
Eric Andersen
f9ca653faa
Added fix from David Vrabel <dvrabel@arcom.co.uk> for a
...
buffer overrun in find_real_root_device(), fixing bug #1019
-Erik
2000-08-11 17:45:02 +00:00
Eric Andersen
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +00:00
Mark Whitley
40406e6bad
Applied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where
...
sed was only printing the first line and then exiting.
2000-08-10 00:09:47 +00:00
Matt Kraai
adbf018dc4
We complained if the total number of arguments was greater than 3 and
...
the destination wasn't a directory. We should only complain if the
there are multiple sources and target isn't a directory.
2000-08-06 15:36:50 +00:00
Matt Kraai
deb95f69b6
Exit with the appropriate value when grepping multiple files.
2000-08-06 15:25:53 +00:00
Eric Andersen
46ade97983
Cleaner way to handle -NUM and +NUM, reduces the mem usage as well.
...
-Erik
2000-08-02 19:57:18 +00:00
Eric Andersen
0c8e2a6580
Fixed the "-f" option.
...
-Erik
2000-08-02 18:56:25 +00:00
Eric Andersen
fdd5103348
Merge in two patches from Dave Cinege:
...
the first is a cleanup of tar --exclude
the second changes mount so mtab works more as it should, and
also allows mount to use the traditional short form (i.e.
'mount / -o remount,rw' now works.
While inside tar, I changed it to use getopt...
-Erik
2000-08-02 18:48:26 +00:00
Mark Whitley
5ae166813f
Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg().
2000-08-02 18:34:41 +00:00
Mark Whitley
807f0fd637
Brand, new version of cut. This fixes the bugs in the old cut, is smaller, and
...
is a sight easier to understand than the Minix cut.
2000-08-02 18:30:11 +00:00
Eric Andersen
d5fa3e3e9a
Update to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>
...
-Erik
2000-08-02 16:42:58 +00:00
Eric Andersen
080d51bf45
Minor fix to clean target
...
-Erik
2000-08-01 22:44:32 +00:00
Matt Kraai
0f8f7b8a35
Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
...
exist. Also allow early search termination (per the comments).
2000-08-01 18:16:56 +00:00
Eric Andersen
98bbd688a8
Commit the rewrite of tail by Allen Soard
...
<esp-software@mail.hypermart.net >. Thanks Allen for
you work at getting this into shape,
-Erik
2000-07-31 17:05:58 +00:00
Pavel Roskin
43c17b3d96
New variable WARNINGS to hold all warning options
2000-07-28 19:41:32 +00:00
Pavel Roskin
616d13bcd1
Fixed to pass -Wundef
2000-07-28 19:38:27 +00:00
Pavel Roskin
259972e565
Disabled debugging output
...
Fine-grained checks for possible errors instead of "set -e"
The standard output shows what is being linked to what
2000-07-28 19:34:02 +00:00
Eric Andersen
9cf306d55e
Fix for a potential uninitialized variable, thx to
...
Ken Chalmers <chalmers@norscan.com >
-Erik
2000-07-28 19:05:20 +00:00
Eric Andersen
6a4c33c5c0
Clean up the nasty blunder I'd made of how different behaviors happen.
...
-Erik
2000-07-28 17:08:36 +00:00
Eric Andersen
6150df320a
Some cleanups, based on a patch from Ken Chalmers
...
-Erik
2000-07-28 16:22:51 +00:00
Eric Andersen
d5704686b1
Fix from Robert Kaiser for stdin behavior.
...
-Erik
2000-07-28 15:20:24 +00:00
Eric Andersen
1428c4f136
Oops. Forgot an ifdef
...
-Erik
2000-07-28 15:19:30 +00:00
Eric Andersen
a5716d3029
Fix from Arne Bernin for return code -- now reflects whether the rmmod
...
failed or not.
-Erik
2000-07-28 15:16:37 +00:00
Eric Andersen
501c88b245
More sh updates (with related changes to everything else). Switched
...
to using getopt and cleaned up the resulting mess. if-then-else-fi
is now basically working (given a bunch of constraints).
-Erik
2000-07-28 15:14:45 +00:00
Eric Andersen
6a99aaf020
More shell features.... if-then-else-fi is now basically usable (disable
...
by default pending further debugging). Added in some basic shell environment
support (i.e. $?, $0-$9, $$, $!, $#).
-Erik
2000-07-27 00:15:20 +00:00
Mark Whitley
7ce41ad692
Fixed a syntax error & superfluous param decl that was causing the build to
...
fail.
2000-07-26 18:09:22 +00:00
Eric Andersen
e92108ae6d
Minor style cleanups.
2000-07-26 00:53:56 +00:00
Eric Andersen
0d49dd53cf
Better description
2000-07-26 00:53:34 +00:00
Eric Andersen
cc10a5b42b
Fix some bitrot.
...
-Erik
2000-07-26 00:52:04 +00:00
Mark Whitley
83e85f6a08
Modified print_subst_w_backrefs() so it will print backslash escaped
...
characters properly, just like GNU sed.
2000-07-25 20:48:44 +00:00
Mark Whitley
52681b48dc
Added a note in the "Tips and Pointer" section on the correct way to test for
...
string equivalence with strcmp().
2000-07-25 20:30:00 +00:00
Eric Andersen
fad9c1198a
Finish off fixing up the memleaks (I think). Added the beginnings of
...
some if-then-else-fi support (nonfunctional and turned off)
-Erik
2000-07-25 18:06:52 +00:00
Eric Andersen
b040d4f3da
Use BB_FEATURE_CLEAN_UP where appropriate
...
-Erik
2000-07-25 18:01:20 +00:00
Eric Andersen
b9ea02c04b
Add in BB_FEATURE_CLEAN_UP, which is whether to clean up mem leaks and close
...
files, or not. Usually safe to leave it off and let the OS clean up...
-Erik
2000-07-25 17:59:37 +00:00
Eric Andersen
d34595d857
Remove some noise.
...
-Erik
2000-07-25 17:58:01 +00:00
Eric Andersen
e5db406690
Clean up $1=$prefix
...
-Erik
2000-07-25 16:47:03 +00:00
Mark Whitley
40bfc76385
First revision of the Busybox Style Guide and an accompanying .indent.pro
...
file.
2000-07-24 22:36:06 +00:00
Pavel Roskin
e99f7500e0
chroot can now call the builtin shell
2000-07-24 20:15:30 +00:00
Eric Andersen
ea824fb937
Fixed stdin/stdout paths so things like
...
tar cvf - /etc/* | gzip -c9 >test.tgz
will now work. Fix thanks to Dave Cinege <dcinege@psychosis.com >
with some adjustments by me to be mroe GNU-like.
-Erik
2000-07-21 22:17:39 +00:00
Eric Andersen
bf960f58e2
Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
...
-Erik
2000-07-21 21:32:12 +00:00
Eric Andersen
7df345e149
Bump version number.
...
-Erik
2000-07-21 21:27:11 +00:00
Eric Andersen
ec8d60f0f8
Add in the LinuxMagic VPN Firewall
...
-Erik
2000-07-21 17:22:19 +00:00
Pavel Roskin
0010ee45e3
Fixed usage info for "cut"
2000-07-21 15:10:57 +00:00
Mark Whitley
c768ab490e
Took -V out of the sed_usage string.
2000-07-20 23:54:42 +00:00
Eric Andersen
ced2cefcca
* syslogd can now log messages to a remote host -- patch thanks
...
to Gyepi Sam <gyepi@praxis-sw.com >
-Erik
2000-07-20 23:41:24 +00:00
Mark Whitley
1f45b268cb
As per a discussion on the mailing list between Matt and Pavel. I have removed
...
the -V (version) flag from busybox sed. It is unnecessary because sed is not a
standalone and should therefore be independently reporting a version number.
Moreover, it is extra code that we just don't need.
2000-07-20 23:08:40 +00:00
Mark Whitley
1ac435c15e
Converted option parsing to getopt(). Also added some explanatory comments.
2000-07-20 23:06:27 +00:00
Eric Andersen
51154bacbe
Adjusted install.sh to use relative symlinks, and to optionally
...
create hardlinks. Added a makefile target to create hardlinks.
-Erik
2000-07-20 21:57:11 +00:00
Mark Whitley
3950596e1e
Converted option parsing to using getopt(). Also managed to remove an
...
extraneous logic loop that existed only for the purpose of the special case of
only one file. I replaced it with a variable to keep track of the number of
files read.
2000-07-20 00:08:10 +00:00
Mark Whitley
99e370f0c6
Whoops. Forgot to #include <getopt.h>.
2000-07-20 00:03:38 +00:00
Mark Whitley
aa4f108338
Converted option parsing to getopt() and made some minor formatting changes.
2000-07-19 19:38:13 +00:00
Matt Kraai
27a804246a
Centralize handling of --help.
2000-07-19 19:24:01 +00:00
Matt Kraai
869057238b
Added some missing declarations and fixed some typos. I have to
...
remember to compile *before* committing.
2000-07-19 18:20:02 +00:00
Matt Kraai
2f46b664b7
Add usage messages for applets without them.
2000-07-19 18:01:00 +00:00
Eric Andersen
91a4400fd5
Avoid trying to free NULL ptrs. Comment on malloc usages.
...
-Erik
2000-07-19 17:37:57 +00:00
Eric Andersen
a16c66335e
Use FatalError()
...
-Erik
2000-07-19 17:36:27 +00:00
Eric Andersen
ae6eae02dd
Moved some code and add a coupld #defines to support use of dmalloc.
...
-Erik
2000-07-19 17:35:54 +00:00
Eric Andersen
52d6fa3bb3
Funny. Head was getting installed to the wrong spot.
...
-Erik
2000-07-19 17:34:40 +00:00
Eric Andersen
1d255be78d
Updated to add support for dmalloc, and adjusted for better cross
...
compiler support.
-Erik
2000-07-19 17:33:54 +00:00
Mark Whitley
2ef880b236
Consolodated some common code into print_matched_line to make 'grep_file' a
...
little more terse & clean. Also made a few minor formatting changes.
2000-07-18 21:02:06 +00:00
Eric Andersen
a9d69fb568
Removed now incorrect message about NFS not working with
...
Linux 2.[34].x kernels. It does work now,
-Erik
2000-07-18 18:54:08 +00:00
Mark Whitley
8f122431f5
Added support for the -c (count matches) option. Made it so it works just like
...
GNU grep.
2000-07-18 18:37:01 +00:00
Eric Andersen
6efc48c1ae
Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs.
...
-Erik
2000-07-18 08:16:39 +00:00
Pavel Roskin
9c5fcc3408
New message added to messages.c: full_version
...
Used where possible
2000-07-17 23:45:12 +00:00
Pavel Roskin
cc8a66b113
Moved functions used by "lsmod" from cat.c to utility.c
...
Adjusted to make lsmod and sh compilable as standalone apps.
Comment fixes
2000-07-17 20:18:42 +00:00
Mark Whitley
97562bd9d7
- Added support for backreferences in substitution expressions up to nine
...
(\1, \2...\9). This touched a lot of places in this file and I added a new
function 'print_subst_w_backrefs' in order to keep 'do_subst_command' a
little more tidy.
* I tested this good 'n hard, but will always appreciate more testing from
other, willing folks.
- Noticed that the index_of_next_unescaped_slash was subtly wrong so I
changed both the functionality and behavior (it used to skip over the first
char in the string you passed it, assuming it was a leading '/'--this
assumption is no longer made) this necessitated changing the lines that
call this function just slightly.
2000-07-17 20:06:42 +00:00
Pavel Roskin
21ddb38fcf
Now it's possible to compile Busybox with only one app defined
...
(unless it's lsmod, to be fixed by the next commit)
2000-07-17 19:31:54 +00:00
Eric Andersen
a1d187a8a8
Backtick support to infinite (memory limited) levels of nesting is
...
now implemented... So now busybox shell can do cool stuff like:
/home/andersen/CVS/busybox # echo foo `wc README` bar
foo 71 422 2951 README bar
I love writing cool new features.... Muhahahaha... (I think this is
leaking a little bit of memory every time it expands a backtick process,
so I still needs to do a bit of cleanup...)
-Erik
2000-07-17 19:14:41 +00:00
Pavel Roskin
bc0aed79a8
It is now possible to select in busybox.def.h whether minixfs version 2
...
is to be supported.
2000-07-17 17:52:00 +00:00
Pavel Roskin
47d4926244
The result of getopt() is "int" and should be treated as such
2000-07-17 16:17:19 +00:00
Matt Kraai
bf181b9338
Extract usage information into a separate file.
2000-07-16 20:57:15 +00:00
Matt Kraai
3bd8bd89ee
Don't use strings directly in calls to usage(). This is in preparation
...
for their extraction to a separate file.
2000-07-14 23:28:47 +00:00
Mark Whitley
464c5de00d
Fixed a couple of buglets:
...
- add_cmd_str: segv's were being generated if there was a '# comment' line
(and probably other kinds of lines, too) that was not followed by a
semi-colon or whitespace
- parse_edit_cmd: was returning a wrong number (too low) for the index; it
was not accounting for backslashes eaten, for the fact that we start at the
3rd index in the string, or for the fact that we add an extra newline.
- parse_cmd_str: was returning a wrong number (again, too low) for the index
in the case of single-letter commands (p,d). There was some
over-compensation for this in the 'return' stmt at the end which also
needed some help.
- load_cmd_file: was not eating trailing newlines off the line read from the
command file. This had the deleterious effect of printing an extra newlines
after text displayed from edit (i,a,c) commands.
2000-07-14 23:24:00 +00:00
Mark Whitley
70705d7c96
- Added support for semicolon delimited command lines. (woo-hoo!)
...
- Obsoleted the trim_str function (#if 0'ed out -- maybedelete later) in
favor of strrspn.
- Obsoleted the strrspn function (#if 0'ed out as well) as soon as I
discovered that it wasn't needed either.
- Fixed a subtle bug in parse_subst_cmd where it would choke with an error if
there was any trailing space after the s/match/replace/ expression.
2000-07-14 19:06:30 +00:00
Eric Andersen
add09fd558
Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>
...
-Erik
2000-07-14 18:39:08 +00:00
Eric Andersen
17ad45aace
Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>
...
-Erik
2000-07-14 18:38:26 +00:00
Pavel Roskin
df4532bfa3
More fixes for "signed vs. unsigned" warnings.
2000-07-14 17:24:58 +00:00
Pavel Roskin
ff5a9033f9
Reduced the number of "signed vs. unsigned" warnings.
...
Sometimes such warnings matter (esp. on PPC with char default to unsigned)
2000-07-14 16:23:32 +00:00
Pavel Roskin
f626dcbc84
More fixes for "missing initializers"
2000-07-14 15:55:41 +00:00
Pavel Roskin
9027bcf2f4
Fixed a warning about missing initializer
2000-07-14 15:44:25 +00:00
Pavel Roskin
93c0d9f090
The result of getopt() should not be converted to "char" - it breaks on PPC
2000-07-14 15:18:57 +00:00
Eric Andersen
fad04fdd12
More cleanups.
...
-Erik
2000-07-14 06:49:52 +00:00
Matt Kraai
b870af09ae
Fix argument parsing.
2000-07-14 06:47:33 +00:00
Eric Andersen
d6912c97de
Be more pedantic aboutthe terminating null applet.
...
-Erik
2000-07-14 06:29:10 +00:00
Eric Andersen
58361a44b5
uid and gid were unsigned, but were compared vs signed values (-1)
...
-Erik
2000-07-14 06:27:54 +00:00
Eric Andersen
e7413a9cde
A couple of minor warning cleanups.
...
-Erik
2000-07-14 06:19:41 +00:00
Matt Kraai
d537a95fdb
Use errorMsg rather than fprintf.
2000-07-14 01:51:25 +00:00
Eric Andersen
4ac6cb534d
Fix some stupid memory bugs.
...
-Erik
2000-07-14 01:13:37 +00:00
Eric Andersen
ec10b9d534
Add in redimentary backtick suport (doesn't work properly yet, but is
...
close).
-Erik
2000-07-14 01:13:11 +00:00
Mark Whitley
34623db618
It dawned on me that I would need to grow a char buffer one extra char bigger
...
to accomodate a trailing '\n'ewline that I append to it later one. This is
only necessary for the case of one inserted, appended, or changed line, but
it's still necessary.
2000-07-14 00:49:59 +00:00
Mark Whitley
02008346c0
Added error checking for edit commands; only a beginning address can be
...
specified.
2000-07-14 00:13:52 +00:00
Mark Whitley
94074a980c
Added support for (a)ppend, (i)nsert, and (c)hange commands to sed.
2000-07-14 00:00:15 +00:00
Mark Whitley
496e33feeb
Fixed bug where sed '/foo/p' was printing "invalid command".
2000-07-13 22:52:02 +00:00
Mark Whitley
4f7fe77d07
(Something I should have done in the previous checkin...) Also broke out
...
substitution command execution from do_sed_command() and put it in it's own
do_subst_command() function.
2000-07-13 20:01:58 +00:00
Mark Whitley
06f3529ada
Minor code reorg: Changed the interface to index_of_next_unescaped_slash to an
...
interface that seems a little more sensible to me. Also broke out s///
expression parsing into it's own subroutine.
2000-07-13 19:58:04 +00:00
Eric Andersen
156959ea93
Fix uninitialized variable.
...
-Erik
2000-07-13 19:49:12 +00:00
Eric Andersen
f4c022649b
Patch from Marc Nijdam <marc_nijdam@hp.com>
...
> First (of many more) patch of cp_mv to getopt use. I'm using the most
> simplistic approach, just get getopt used, then worry about a cleaner
> option parsing style using getopt later.
>
> Marc
2000-07-13 18:42:58 +00:00
Mark Whitley
55380700d8
Added a smallish TODO comment.
2000-07-13 17:20:23 +00:00
Eric Andersen
00143ba921
From Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
> Here is a patch so that tr can handle NULL characters as well. Give it
> a shot and let me know what you think. It is against the latest CVS
> version.
>
> In my tests, the following now works as expected.
>
> tr '\0' '\n'
>
> Later,
> Matt
2000-07-13 16:40:41 +00:00
Matt Kraai
ac48461da9
Correct argument parsing and other minor cleanups.
2000-07-13 06:33:12 +00:00
Mark Whitley
37653aaf9c
Added some smallish comments to help folks understand why we have two tables
...
of builtins and the reasoning behind it.
2000-07-12 23:36:17 +00:00
Mark Whitley
c41e8c840f
Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c
...
(maybe I'll remove it later).
2000-07-12 23:35:21 +00:00
Eric Andersen
6f96e674b9
Patch from Jon McClintock <jonm@bluemug.com>
...
>The attached patch adds the ability to parse the actual mode specifier in
>fbset. So now
>
> fbset -n 640x480-72
>
>Will actually work. I don't know if I've reinvented the wheel though...
-Erik
2000-07-12 23:01:04 +00:00
Matt Kraai
be84cd4ef6
Always report the applet name when doing error reporting.
2000-07-12 17:02:35 +00:00
Matt Kraai
e58771e73c
Use global applet_name instead of local versions.
2000-07-12 15:38:49 +00:00
Matt Kraai
e714bce003
Use global applet_name instead of local versions.
2000-07-12 00:53:06 +00:00
Matt Kraai
3ecbe9f4dc
The applet name isn't constant.
2000-07-12 00:43:28 +00:00
Eric Andersen
97426e082a
Changed verbiage.
...
-Erik
2000-07-11 23:06:48 +00:00
Eric Andersen
8fbaeece53
Replaced projects with products/projects.
...
-Erik
2000-07-11 23:05:38 +00:00
Eric Andersen
68fda241d2
Added the Kerbango Internet Radio to projects/products using BusyBox.
...
-Erik
2000-07-11 23:03:40 +00:00
Mark Whitley
858c1adf2b
Applied patch from Matt Kraai to call destroy_cmd_strs in atexit(), rather
...
than peppering it throughout the code.
2000-07-11 21:38:47 +00:00
Matt Kraai
7719008a85
Added applet_name to contain the applet name.
2000-07-11 20:03:24 +00:00
Eric Andersen
aec27bca98
Final updates for release.
...
-Erik
2000-07-11 18:18:40 +00:00
Eric Andersen
960be79964
Final update for the release.
2000-07-11 18:06:01 +00:00
Eric Andersen
be909b1cd5
Forgot to commit these cleanups it seems.
...
-Erik
2000-07-11 17:52:22 +00:00
Eric Andersen
d006c9e630
More changelog updates
...
-Erik
2000-07-11 17:45:42 +00:00
Mark Whitley
9ebccb2891
Added changelog entries for grep/sed/regex changes.
2000-07-11 17:43:42 +00:00
Eric Andersen
f1f6d58598
Some changelog updates.
...
-Erik
2000-07-11 17:42:56 +00:00
Eric Andersen
0c838af50b
Re-enable ln -n in the help.
...
-Erik
2000-07-11 17:38:27 +00:00
Eric Andersen
195fa15caf
Another patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:
...
>
> The following patch allows ln -n to function like GNU. It also fixes a
> typo with my previous patch to add support for ln FILE DIRECTORY. And
> it removes some code that checks the maximum length of the filenames. I
> can't figure out why that code is necessary. Anyone know?
>
> Matt
2000-07-11 17:35:32 +00:00
Eric Andersen
61dc057183
Added 'dumpkmap' to allow people to dump a binary keymap, which can then be
...
loaded in by 'loadkmap' -- submitted by Arne Bernin <arne@matrix.loopback.org >
-Erik
2000-07-11 17:29:36 +00:00
Mark Whitley
df5f6ba115
Applied patch from Matt Kraai which does the following:
...
- adds case-insensitive matching in sed s/// epxressions
- consolodates common regcomp code in grep & sed into bb_regcomp and put in
utility.c
- cleans up a bunch of cruft
2000-07-11 16:53:56 +00:00
Matt Kraai
da9841efc1
Fix dead link.
...
-Matt
2000-07-11 16:09:01 +00:00
Eric Andersen
da1d1e763d
Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009 .
...
-Erik
2000-07-10 23:39:44 +00:00
Mark Whitley
cc54d12ef7
Removed all trace of hand-tooled regexp routines. Bye bye, baby.
2000-07-10 23:07:54 +00:00
Mark Whitley
dd23b8bb43
Added a rule to make tags files for vi(m).
2000-07-10 23:00:47 +00:00
Eric Andersen
c674d70699
Comment on kernel stuff
...
-Erik
2000-07-10 22:57:14 +00:00
Mark Whitley
6315ce603b
Brand, new sed that uses libc regex routines.
...
There is some common code used by both sed & grep that should be put into
utility.c as per Mat Kraai's suggestions/patch on the mailing list.
Specifically, a common regex_compile() and a regex_subst() function need to be
made.
2000-07-10 22:55:51 +00:00
Eric Andersen
85c552035e
More linux kernel header file removal.
...
-Erik
2000-07-10 22:46:55 +00:00
Eric Andersen
9b2297a34e
Remove yet more kernel header dependancies.
...
-Erik
2000-07-10 20:08:44 +00:00
Eric Andersen
a0053735dc
Remove unused variable.
...
-Erik
2000-07-10 20:08:09 +00:00
Eric Andersen
3849f9bfcc
Remove the problematic CTRLCHAR macro.
...
-Erik
2000-07-10 19:56:47 +00:00
Mark Whitley
9a8243aa1e
Put the GROWBY variable inside the get_line_from_file function, as that is the
...
only function where it's used and it's always good to keep the namespace
clean. :-)
2000-07-10 19:31:31 +00:00
Mark Whitley
928faac503
Removed unnecessary #include "regexp.h" line from find.c as per Matt Kraai's
...
suggestion on the mailing list.
2000-07-10 19:29:09 +00:00
Eric Andersen
34e1941c32
Function name cleanup.
...
-Erik
2000-07-10 18:47:24 +00:00
Eric Andersen
0b4551faf5
From Matt Kraai <kraai@alumni.carnegiemellon.edu>:
...
Howdy,
Bug #1006 reports that
ln -s /tmp/foo .
does not work correctly. In fact, it appears that any instantiation of
ln -s FILE... DIRECTORY
does not work. The following patch adds support for this form, which
then fixes the particular instance noted in the bug report.
In the process, I needed the basename function. This appears in the
string.h provided by glibc, but not uC-libc. So I wrote my own to go in
utility.c, called get_last_path_component. I also modified the basename
utility to use this function.
At some point it might be desirous to use the basename from the library
if it exists, and otherwise compile our own. But I don't know how to do
this.
Matt
2000-07-10 16:44:03 +00:00
Eric Andersen
a03d86cf54
Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:
...
GNU tr complains on the following:
$ tr a ''
tr: when not truncating set1, string2 must be non-empty
BusyBox tr does not complain:
$ tr a ''
a
^D
0
It should result in an error, not in some spurious output. The attached
patch generates an error.
Matt
2000-07-10 16:38:50 +00:00
Mark Whitley
44735f8744
Applied patch from Matt Kraai as per his email:
...
However, the case of
grep foo$ file
didn't work, due to a problem with the flags used in regular expression
compilation. The attached patch fixes this problem.
---patch-------
Index: grep.c
===================================================================
RCS file: /var/cvs/busybox/grep.c,v
retrieving revision 1.30
diff -u -r1.30 grep.c
--- grep.c 2000/07/04 22:17:01 1.30
+++ grep.c 2000/07/10 08:57:04
@@ -141,8 +141,10 @@
if (argv[optind] == NULL)
usage(grep_usage);
- /* compile the regular expression */
- reflags = REG_NOSUB; /* we're not going to mess with sub-expressions
*/
+ /* compile the regular expression
+ * we're not going to mess with sub-expressions, and we need to
+ * treat newlines right. */
+ reflags = REG_NOSUB | REG_NEWLINE;
if (ignore_case)
reflags |= REG_ICASE;
if ((ret = regcomp(®ex, argv[optind], reflags)) != 0) {
---patch-------
Thanks, Matt, it works great.
2000-07-10 15:50:26 +00:00
Eric Andersen
999bf72f49
More portability updates. Now compiles cleanly vs glibc, libc5, and uclibc
...
(except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due
to missing stuff in the library).
-Erik
2000-07-09 06:59:58 +00:00
Eric Andersen
e9b527ae48
include getopt.h
...
-Erik
2000-07-09 05:56:14 +00:00
Eric Andersen
161cf93404
Fix a bug in get_line_from_file. If the length of the line is (GROWBY * n) +
...
GROWBY - 1, then it writes the null character just after the buffer. Yipe.
Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu > Thanks Matt!
-Erik
2000-07-09 02:38:01 +00:00
Eric Andersen
f12724c21a
The build depends were too strict. I depended on on debhelper (>= 2.0.80)
...
while debhelper 1.1.24 is available for slink. Just forget the dependancy --
it isn't needed.
-Erik
2000-07-09 01:54:33 +00:00
Eric Andersen
a57ba4db64
Argh. More cross libc cleanup. Should be ok now...
...
-Erik
2000-07-08 19:20:49 +00:00
Eric Andersen
2cd439f7f0
More cleanup on umount
...
-Erik
2000-07-08 19:10:29 +00:00
Eric Andersen
bd22ed8067
Update files to reduce dependance on kernel version...
...
-Erik
2000-07-08 18:55:24 +00:00
Eric Andersen
877a71bbf0
Add in tinynet
...
-Erik
2000-07-08 16:19:10 +00:00
Eric Andersen
9cf44e79aa
Doc updates to remove sfdisk.
...
-Erik
2000-07-08 00:09:30 +00:00
Eric Andersen
8f282f1b02
Better description of the BB_FEATURE_USE_DEVPS_PATCH option.
...
-Erik
2000-07-07 23:51:37 +00:00
Eric Andersen
acecc47261
Add in my fix for 2.4.x kernels so /proc/mounts will not have useless
...
deg entries which break mount, df, and friends. Renamed WillThisGoIntoTheKernel
to avoid any confision.
-Erik
2000-07-07 21:22:19 +00:00
Eric Andersen
e6b9dfa967
Removed sfdisk from BusyBox. It was buggy, fat, and we really couldn't
...
maintain it very well, so including it was not very appropriate. Those wanting
an fdisk are invited to grab a copy from util-linux.
-Erik
2000-07-07 20:54:30 +00:00
Eric Andersen
53a955786d
Added in Matt Kraai.
...
-Erik
2000-07-07 20:53:16 +00:00
Eric Andersen
a2c83d885e
Fix a dependancy bug for the docs.
...
-Erik
2000-07-07 20:52:56 +00:00
Eric Andersen
03f9c81cec
Naming fix
...
-Erik
2000-07-07 20:37:12 +00:00
Eric Andersen
bb374a6935
Recognize Matt's poweroff fix.
...
-Erik
2000-07-07 19:33:35 +00:00
Eric Andersen
4c95a28461
Fix for bug #1003 -- BusyBox should now poweroff when asked to
...
do so... Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu >
-Erik
2000-07-07 19:30:28 +00:00
Eric Andersen
3312b0b626
Web page update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
-Erik
2000-07-07 19:23:10 +00:00
Eric Andersen
2158092344
This patch finishes the cleanup of all the commands. It also cleans up
...
the remaining chapters -- Matt Kraai <kraai@alumni.carnegiemellon.edu >
-Erik
2000-07-07 19:07:47 +00:00
Eric Andersen
b9eb0233a9
Yet another busybox documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
-Erik
2000-07-07 05:04:24 +00:00
Eric Andersen
b0b732bfe4
Update 'make release' to remove all the .#filename files
...
the CVS leaves lying about...
-Erik
2000-07-06 23:17:16 +00:00
Eric Andersen
03f4c27bd6
Turned some stuff into features that really are features, not apps.
...
-Erik
2000-07-06 23:10:29 +00:00
Eric Andersen
67536ffa43
Fix doc building so the dependancies work properly.
...
-Erik
2000-07-06 22:53:22 +00:00
Eric Andersen
8845adc545
* Fixed tar creation support when reading from stdin ('tar -cf - . ')
...
thanks to Daniel Quinlan <quinlan@transmeta.com >
-Erik
2000-07-06 22:51:35 +00:00
Eric Andersen
02bc25be56
Fixed backspace and delete so they work properly again -- broken
...
since 0.44.
-Erik
2000-07-06 21:29:32 +00:00
Eric Andersen
e5cec4e3ac
More doc patches from Matt Kraai <kraai@alumni.carnegiemellon.edu>.
...
Thanks Matt!
-Erik
2000-07-06 19:59:22 +00:00
Eric Andersen
62bb2d02b6
Remove leftovers of block_device, which disapperared around
...
busybox 0.28.
-Erik
2000-07-06 19:46:22 +00:00
Eric Andersen
a5dbb39dac
Change order.
...
-Erik
2000-07-06 19:11:34 +00:00
Eric Andersen
c8c10c5715
Added (fixed) the '-n' option to fbset. Renumbered the command parameters to
...
put a gap between the normal commands and the fancy commands. This makes it
cleaner to add normal commands. Patch from Jon McClintock <jonm@bluemug.com >.
-Erik
2000-07-06 17:23:23 +00:00
Eric Andersen
f86aee74ce
setkeycodes needs get_console_fd(), so if you disable chvt and deallocvt, but
...
leave setkeycodes active, busybox will not link. Also fix a trivial
use-before-initialize warning. Both fixes from Jon McClintock
<jonm@bluemug.com >.
-Erik
2000-07-06 17:20:46 +00:00
Eric Andersen
b1e379f7f3
Remove some warning with glibc.
...
-Erik
2000-07-06 17:08:38 +00:00
Eric Andersen
78eab2f6c6
Comment on kill.c change.
...
-Erik
2000-07-06 17:06:08 +00:00
Eric Andersen
3cfa9ec09c
Reorganized signal names for better architecture support -- patch
...
thanks to simon wood <simon@mungewell.uklinux.net >
-Erik
2000-07-06 17:05:33 +00:00
Eric Andersen
6f5e281479
DocBook documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
...
-Erik
2000-07-06 16:58:45 +00:00
Eric Andersen
b2731b11ef
Had an extra tcsetpgrp.
...
-Erik
2000-07-06 16:56:56 +00:00
Eric Andersen
1e03add675
a few minor cleanups.
...
-Erik
2000-07-06 09:56:35 +00:00
Eric Andersen
5d893b6beb
Remove MAXNAMLEN and use BUFSIZ instead.
...
-Erik
2000-07-06 01:57:20 +00:00
Eric Andersen
89bc256c94
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
...
will be removing this stuff from /proc/mounts real soon now I am assured.
-Erik
2000-07-05 19:29:59 +00:00
Eric Andersen
f7cf2f7ef9
* Fix to tr so it recognizes standard escape sequences. Merged common
...
escape seq. code from tr and echo into utility.c. Fix thanks to
Matt Kraai <kraai@alumni.carnegiemellon.edu >.
* This should close Bug #1015 . Please test.
-Erik
2000-07-05 17:26:35 +00:00
Eric Andersen
57ebebfb01
Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu> to
...
simplify ar.c and make it more readable.
-Erik
2000-07-05 17:21:58 +00:00
Eric Andersen
2086e3d679
Some cosmetic updates. Changed "OPTIONS" to "Options".
...
-Erik
2000-07-04 22:17:01 +00:00
Eric Andersen
028fb625f5
More doc updates
...
-Erik
2000-07-04 20:07:13 +00:00
Eric Andersen
5331025f79
A first pass at integrating the SGML docs into the Makefile.
...
A first pass a cleaning up the current SGML (lots more cleanup
is needed though).
-Erik
2000-07-04 19:42:23 +00:00
Eric Andersen
b02c54ebee
* Fix to init.c from Stuart Menefy <Stuart.Menefy@st.com> so that
...
it always sets the controlling terminal before running any programs
-Erik
2000-07-04 19:41:23 +00:00
Eric Andersen
72965e3454
Fixed a potential infinite loop. First delete any chars after the
...
cursor, then delete everything before it. Before this, we would just
delete everything before the cursor and freak out if there were still
chars left (i.e. stuff after the cursor).
-Erik
2000-07-04 06:22:18 +00:00
Eric Andersen
b54833cde0
sh fixes from Marius Groeger <mag@sysgo.de>
...
-Erik
2000-07-03 23:56:26 +00:00
Eric Andersen
7c31ea4e29
Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
...
<dvrabel@arcom.co.uk >. Seems some ftp clients expect the '-g' option
to exist.
-Erik
2000-07-03 14:55:49 +00:00
Eric Andersen
5d41d60f1e
Added support for being a login shell, so things like '-su' or '-sh' (stuff
...
where argv[0][0]=='-') will now always invoke the shell. Now you can use
BusyBox as a login shell.
-Erik
2000-06-29 20:20:14 +00:00
Mark Whitley
2e1148b239
Fixed comment.
2000-06-28 22:59:30 +00:00
Mark Whitley
8bd891cbec
Added support for reading from stdin with '-' as file name arg.
2000-06-28 22:55:59 +00:00
Mark Whitley
1ca41775bb
Yanked out the cstring_alloc() and cstring_lineFromFile() functions from
...
utility.c and replaced them with get_line_from_file() from the new grep.c.
Also changed declaration in internal.h and replaced instances of
cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested
them and they worked fine.
2000-06-28 22:15:26 +00:00
Mark Whitley
d37218941c
Brand, spankin', new grep that uses libc regex routines instead of the
...
hand-rolled ones. Sed still needs to be replaced and then the regexp stuff can
be axed.
2000-06-28 22:00:26 +00:00
Mark Whitley
268b8c4f38
Moved some function decls, a struct, and a #define from regexp.h into here.
...
Also static-ified said functions so they do not have namespace conflicts with
the libc regex functions.
2000-06-28 21:59:31 +00:00
Mark Whitley
0c96eba3de
Removed some function decls (regex, regcomp, etc.) and put them in regexp.c
2000-06-28 21:58:31 +00:00
Eric Andersen
a44790f539
Better cross libc support.
...
-Erik
2000-06-28 20:11:28 +00:00
Eric Andersen
a2db097d66
Forgot -- targeted the wrong release.
...
-Erik
2000-06-28 17:07:19 +00:00
Eric Andersen
1c314ad655
* Fixed a _horrible_ bug where 'tar -tvf' could unlink
...
local files!!! Fix thanks to Marius Groeger <mgroeger@sysgo.de >
* Added support for "sh -c command args...", also thanks to
Marius Groeger <mgroeger@sysgo.de >
-Erik
2000-06-28 16:56:25 +00:00
Eric Andersen
47cac6779a
Updates for the .deb
...
-Erik
2000-06-28 02:25:18 +00:00
John Beppu
eb0283333b
= minor formatting issues
2000-06-28 00:55:31 +00:00
John Beppu
7cdc76dfbf
+ busybox --install [-s]
...
is functional (but disabled in busybox.def.h by default)
Someone email the guy who originally wanted this.
2000-06-28 00:41:26 +00:00
Eric Andersen
d0edef3cbe
Remove stuff now moved into the bug tracking system.
...
-Erik
2000-06-27 18:12:19 +00:00
John Beppu
495869f59a
+ s/int install_links/static int install_links/
...
? Did you want "busybox --install" or "busybox install" ?
The TODO and mailing-list conflict on this issue.
I would recommend against "busybox install", because
people might confuse it w/ /usr/bin/install that does
something different.
2000-06-27 07:54:33 +00:00
Eric Andersen
cb1d841f09
This kernel patch is no longer needed, with the change I made to init
...
and free...
-Erik
2000-06-27 06:22:09 +00:00
John Beppu
27b5924b96
+ littering my code w/ comments about what troubles me.
2000-06-27 04:56:45 +00:00
John Beppu
8f425dbf9a
+ busybox --install [-s]
...
is almost good to go. Here is my work in progress.
+ Look at the FIXME in busybox.c
to see what I need. The actual (sym)linking is disabled
for now, although I'm sure it works ;)
(Am I going to have to dig through /proc to find
out where the currently running busybox is sitting?)
+ I put an #ifdef BB_FEATURE_INSTALLER around
the new bits of code in busybox.c, and I have a
#define BB_FEATURE_INSTALLER in busybox.def.h
towards the bottom.
2000-06-27 04:50:02 +00:00
Mark Whitley
83a949cb22
Just converted busybox.pod to busybox.sgml using the Pod::DocBook Perl module.
...
The resulting file needs some massaging and once it gets presentable, I'll
edit the Makefile to use the SGML file as the "authoritative" file; the plan
here is to generate other file formats from the SGML.
2000-06-26 13:31:53 +00:00
Eric Andersen
1386e70210
Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.
...
Fix thanks to Arne Bernin <arne@matrix.loopback.org >
-Erik
2000-06-26 12:14:30 +00:00
Eric Andersen
ef40aa81c5
* Fixed insmod module option parsing for options lacking an '='.
...
Fix thanks to Marc Nijdam <marc_nijdam@hp.com >
-Erik
2000-06-26 11:16:22 +00:00
Eric Andersen
3adffb7fc8
readlink(2) does not NULL terminate the buffer it reads in, but tar expected it
...
to do so. This caused symlinks stored in tarballs to likely have trailing
crap in the stored symlink named. Oops.
-Erik
2000-06-26 10:54:06 +00:00
Eric Andersen
10dc9d4d17
Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries in
...
/proc/mounts, added a hack to make sysinfo work with both old and new kernels).
-Erik
2000-06-26 10:45:52 +00:00
Eric Andersen
8a24a6783a
Better error checking in insmod. Remove left over %m's
...
-Erik
2000-06-22 18:19:31 +00:00
Eric Andersen
4a971aef59
Minor web page update.
...
-Erik
2000-06-22 01:27:11 +00:00
Eric Andersen
3c37598dc2
Fix version #
...
-Erik
2000-06-22 00:23:09 +00:00
Eric Andersen
a29dec28cb
More doc updates
...
-Erik
2000-06-22 00:19:33 +00:00
Mark Whitley
ccd32cbb61
Merged two TODO items into one
2000-06-22 00:16:37 +00:00
Eric Andersen
9d9610b8de
Update the list.
...
-Erik
2000-06-22 00:04:12 +00:00
Eric Andersen
6f9985e2f2
Pavel Roskin <proski@gnu.org> just found a nasty memory
...
corruption bug. Disabling 'ln -n' till it is fixed.
-Erik
2000-06-22 00:02:56 +00:00
Eric Andersen
addc9c28ad
Document 'ln --'
...
-Erik
2000-06-21 22:53:24 +00:00
Mark Whitley
4fa84e6b54
Cleaned up some #ifdef spiderwebs.
2000-06-21 22:53:16 +00:00
Eric Andersen
c6cdf58747
Bump version number to 0.45
...
-Erik
2000-06-21 22:50:59 +00:00
Mark Whitley
07edff4ba4
Added an implicit rule for #defining BB_FEATURE_USE_TERMIOS if
...
BB_FEATURE_AUTOWIDTH is #defined.
2000-06-21 22:46:32 +00:00
Eric Andersen
45087b1010
More doc updates.
...
-Erik
2000-06-21 22:44:33 +00:00
Eric Andersen
766c012975
Web site updates.
...
-Erik
2000-06-21 22:43:07 +00:00
Eric Andersen
c5c5e3d144
Add in my little patch for 2.4.x to make sysinfo binary compatable (again)
...
-Erik
2000-06-21 22:06:56 +00:00
Pavel Roskin
afa0662860
Documented "which"
2000-06-21 21:43:24 +00:00
Pavel Roskin
1a804e4b3c
Removed trailing spaces
2000-06-21 21:38:00 +00:00
Eric Andersen
f929641c51
Add in telnet docs.
...
-Erik
2000-06-21 21:04:01 +00:00
Eric Andersen
feb47c024a
Add insmod docs
...
-Erik
2000-06-21 21:03:13 +00:00
Pavel Roskin
f7a01951fb
Updated the list of supported commands
2000-06-21 20:25:07 +00:00
Pavel Roskin
7ac06a3ff1
Removed all vestiges of "math"
2000-06-21 20:17:29 +00:00
John Beppu
0021679b0d
+ added dc (aka the function formerly known as math)
...
+ did all the housekeeping that this change requires.
2000-06-21 19:06:16 +00:00
Eric Andersen
b405dfa54d
'tar --help' wasn't working. Fixed it.
...
-Erik
2000-06-21 18:37:36 +00:00
John Beppu
c03525475e
+ made it so that you can use the mnemonics
...
(add, sub, mul, div) in lieu of (+, -, *, /)
2000-06-21 18:00:46 +00:00
Eric Andersen
e63ad9ba06
Special case the memcopy stuff so it isn't enabled for uclibc
...
-Erik
2000-06-20 21:04:03 +00:00
Eric Andersen
28c88a9430
Some makefile fixes to allow compiling with ucLibc (stuff turned off
...
by default of course).
-Erik
2000-06-20 21:03:24 +00:00
Pavel Roskin
339b892313
Updated e-mail address of Pavel Roskin to proski@gnu.org
2000-06-20 00:11:07 +00:00
Eric Andersen
4eb1b30411
Mention libc support, Pavel's rm fix is already merged.
...
-Erik
2000-06-19 20:19:04 +00:00
Eric Andersen
bd4a75f6c8
Finish off the libc5 porting effort. Everything now works with libc5
...
except for md5sum, which uses the GNU libc addition getline().
-Erik
2000-06-19 20:03:48 +00:00
Eric Andersen
bb245ba0c2
Made insmod work with both libc5 and libc6.
...
-Erik
2000-06-19 19:53:30 +00:00
Eric Andersen
9ca57d377e
Made ping work with libc5 and libc6.
...
-Erik
2000-06-19 18:51:53 +00:00
Eric Andersen
e1e23eecab
Make umount work and compile cleanly under libc5 and libc6.
...
-Erik
2000-06-19 18:38:51 +00:00
Eric Andersen
5e29c6ffce
Make swaponoff compile cleanly under both libc5 and libc6.
...
-Erik
2000-06-19 18:25:49 +00:00
Eric Andersen
a15cd0be34
Make syslogd.c, init.c, and update.c compile error/warning free under both libc5 and libc6.
...
-Erik
2000-06-19 18:14:20 +00:00
Eric Andersen
b7362e36a8
printf now compiles cleanly under both libc5 and libc6.
...
-Erik
2000-06-19 17:52:17 +00:00
Eric Andersen
67e32304b1
Updated to compile and work with libc5.
...
-Erik
2000-06-19 17:48:02 +00:00
Eric Andersen
be5023a84d
Update internal.h to conditionally include asm/string.h
...
-Erik
2000-06-19 17:30:07 +00:00
Eric Andersen
b610615be9
Updates to a number of apps to remove warnings/compile errors under libc5.
...
Tested under both libc5 and libc6 and all seems well with these fixes.
-Erik
2000-06-19 17:25:40 +00:00
Mark Whitley
dbb3019d0d
Added a note to the "maybe by 0.44" list to prune sfdisk and graft fdisk.
2000-06-19 17:03:32 +00:00
Eric Andersen
30f0f2d040
Fix a stupid bug, where I cleaned things as the last makefile target. duh.
...
-Erik
2000-06-19 09:29:32 +00:00
Eric Andersen
b108a5b780
Added support for building debian packages.
...
-Erik
2000-06-19 09:21:34 +00:00
Pavel Roskin
110fc0cacc
Check for 3 and more arguments was incorrect
...
It is only allowed for linking to a directory
But linking to a directory still fails and may be removed
2000-06-18 00:02:24 +00:00
Eric Andersen
74c66ad06e
Fix some spelling errors in the source as well.
...
-Erik
2000-06-16 19:57:44 +00:00
Eric Andersen
98cd53e86d
Ran it through a spell checker and fixed the spelling errors.
...
-Erik
2000-06-16 19:56:44 +00:00
Eric Andersen
852ff13fc4
Update to ar.c from Glenn McGrath. His comments follow:
...
------------------------------
the attached diff applies to the ar.c i originally submitted
Changes
Preserve dates now works.
Extracted files are set to the uid, gid and mode specified in the
archive.
Checks for valid end of header marker.
Correctly unpacks newer debian files. (has a '\n' character between
entries)
Added more comments.
Cleaned up code.
Added a last modified date to help keep track of versions.
TODO
Common functionality in ar.c are in tar.c should be merged, in
particular getOctal and extractSubFile.
Should all functions that are used by multiple file go in utilities.c ?
2000-06-16 04:56:40 +00:00
Mark Whitley
b991395405
Added some comments and changed a variable name to be more meaningful. No
...
fixes yet for the space bug, but should be coming soon.
2000-06-16 00:26:51 +00:00
Pavel Roskin
2e965239ee
ln: fixed command line parser. Added support for "--"
2000-06-15 18:04:40 +00:00
Eric Andersen
3f75503fa0
Remove trailing space char.
...
-Erik
2000-06-14 22:16:59 +00:00
Eric Andersen
28c70b3a16
Integrate Tomi Ollila's telnet. Costs 3k. :)
...
-Erik
2000-06-14 20:42:57 +00:00
Pavel Roskin
e97da40079
Fixed "rm foo" that had been broken while implementing "rm -- foo"
2000-06-14 17:39:41 +00:00
Mark Whitley
1af7ed5573
Modified status of some TODO items, added some others in preparation for the
...
0.44 release.
2000-06-14 17:35:54 +00:00
John Beppu
3c709b45b3
+ minor typo fix
...
s/>/>/
2000-06-14 09:11:05 +00:00
John Beppu
d84990eb1f
+ removed some cruft left over from when lines could be too long.
2000-06-14 00:19:14 +00:00
Eric Andersen
854e11581f
Urgh. revert Makefile. again. Forgot to do the 'cvs update -d now' trick
...
on my home box.
2000-06-13 06:57:56 +00:00
Eric Andersen
2b6ab3cbf8
Add new apps md5sum uudecode uuencode, fix some minor formatting things.
...
-Erik
2000-06-13 06:54:53 +00:00
Eric Andersen
053b1462b7
Fix a bug pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
...
where you used to see:
./grep -q -i B some_file
B: No such file or directory
This is now fixed.
-Erik
2000-06-13 06:24:53 +00:00
Eric Andersen
baf22bff21
Give beppu credit for fixing grep "Line too long" bug.
...
-Erik
2000-06-13 00:49:41 +00:00
John Beppu
c7ccfc99fc
+ utility.c
...
CSTRING_BUFFER_LENGTH = 1024 /* so it recurses less often */
+ grep.c
uses cstring_lineFromFile(), and doesn't ever say
Line is too long, anymore
2000-06-12 23:39:04 +00:00
Eric Andersen
9f16d61408
Added a slightly modified version of Ron Alder's insmod patch.
...
Very cool stuff.
-Erik
2000-06-12 23:11:16 +00:00
John Beppu
44760d058c
+ updated docs to reflect math's filter capabilities.
2000-06-12 23:04:55 +00:00
John Beppu
5db60a7a7a
+ works as a filter, now!
...
- I have a feeling I could have used strtok, but the
2 functions I added are really small, so it shouldn't
be a big deal. (They were just laying around, and I
wanted to use them, again).
2000-06-12 22:59:12 +00:00
Eric Andersen
0c6a970eb2
* Fixed a small bug that could cause tar to emit warning messages
...
and not extract the first file in a directory in some cases
of nested directories. Thanks to Kevin Traas <kevin@netmaster.com >
for helping track this one down.
-Erik
2000-06-09 20:51:50 +00:00
Pavel Roskin
b3d235f63b
Fixed parsing of arguments for cp
2000-06-08 18:06:37 +00:00
Eric Andersen
b3cf9baeb9
Formatting change.
...
-Erik
2000-06-08 15:25:39 +00:00
Pavel Roskin
049b706591
My pod2man (perl-5.00503) complains if there is no newline after "Options:"
2000-06-07 21:19:49 +00:00
Pavel Roskin
da10ec0eaa
Syslogd will not go to background if "-n" is given. Better help
...
and argument checking
2000-06-07 21:08:25 +00:00
Pavel Roskin
0024abcbbc
Implemented "ping -s", fixed error messages and argument parsing
2000-06-07 20:38:15 +00:00
Eric Andersen
0b66577368
Debug should be off in the Makefile. I will now do (per Pavel's
...
suggestion) a "cvs up -D now Makefile" so I stop updating the
Makefile by accident.
-Erik
2000-06-07 17:33:30 +00:00
Eric Andersen
a42982e8f5
* Fixed 'swapon -a' and 'swapoff -a', which were broken.
...
* Fixed 'mount -a' so it works as expected.
* Implemented 'ls -R' (enabled by enabling BB_FEATURE_LS_RECURSIVE)
-Erik
2000-06-07 17:28:53 +00:00
Eric Andersen
1f6262b8e2
Fix 'date -u'
...
-Erik
2000-06-06 22:17:43 +00:00
Eric Andersen
fb8ba506bb
Oops. Remove the debugging noise.
...
-Erik
2000-06-06 22:13:39 +00:00
Eric Andersen
3232203226
mkfs.minix rev 1.7 completely broke the option parser. This fixes it.
...
-Erik
2000-06-06 22:12:35 +00:00
Mark Whitley
d05e3ce5c2
Removed chmod,chown,chgrp from the "Bugs that need fixing" list.
2000-06-06 18:12:47 +00:00
Mark Whitley
eec2f63b3f
Fixed segfaults for "chown -R" and "chgrp -R". Also added a message for "too
...
few arguments".
2000-06-06 18:11:46 +00:00
Pavel Roskin
700a5aed75
Fixed exit status for killall
2000-06-06 18:10:17 +00:00
Mark Whitley
517cab761f
Added considering making a unified option parser someday.
2000-06-06 18:05:47 +00:00
Mark Whitley
6ca28ba65c
Fixed segfault when you type "chmod -R". "chown -R" and "chgrp -R" are still
...
having problems...
2000-06-06 17:40:32 +00:00
Pavel Roskin
680d65a646
"mount" now reports errors from nfsmount() and assumes NFS mount
...
if ':' is present in the device name - Pavel Roskin
2000-06-06 17:03:55 +00:00
Mark Whitley
68480dc30f
Updated TODO item re: 'cp -a /tmp/*' not producing the right error message
...
(it's been fixed).
2000-06-06 17:03:54 +00:00
Eric Andersen
815e904470
Fixed a bunch of stuff:
...
* Fixed segfault caused by "touch -c"
* Fixed segfault caused by "rm -f"
* Fixed segfault caused by "ln -s -s" and similar abuses.
* Fixed segfault caused by "cp -a -a" and similar abuses.
* Implemented "rm -- <foo>"
updated docs accordingly.
-Erik
2000-06-06 16:15:23 +00:00
Pavel Roskin
c389d91181
"which" rewritten to use stat(). Fixes to improve its compatability
...
with traditional implementations
2000-06-05 23:41:27 +00:00
Pavel Roskin
82c0ac7e4f
Fix more spelling errors.
2000-06-05 20:19:47 +00:00
Eric Andersen
f2fffefe49
Fix spelling error
...
-Erik
2000-06-05 17:23:06 +00:00
Eric Andersen
36fe1a30b1
Fix spelling errors.
...
-Erik
2000-06-05 17:22:37 +00:00
Eric Andersen
926e0e3465
More TODO items. Fix a dependancy bug on busybox.def.h
...
-Erik
2000-06-05 05:33:00 +00:00
Eric Andersen
afeb683459
"nc" exits silently on errors. This patch makes it print something before
...
exit().
Note that calling perror() after gethostbyname() will most likely return
"No such file or directory" which is quite confusing, so I decided to use
fatalError instead.
Regards,
Pavel Roskin
2000-06-04 05:21:49 +00:00
Eric Andersen
46a38dbb9b
Don't allow mkfifo to create files such as "--help"
...
This patch checks if the name of FIFO to be created begins with "-" and
calls usage() if it does.
Regards,
Pavel Roskin
2000-06-04 05:17:35 +00:00
Eric Andersen
ef4268efa7
This patch
...
- eliminates the need to have a buffer and strcpy to it
- makes freeramdisk complain if it's given more than one argument
Regards,
Pavel Roskin
2000-06-04 05:08:29 +00:00
Eric Andersen
832000f7f3
Turn off debugging in the Makefile.
...
-Erik
2000-06-03 05:22:31 +00:00
Eric Andersen
f0c30b71be
Note that I broke mkfs_minix's parser in rev 1.7.
...
-Erik
2000-06-03 00:27:00 +00:00
Eric Andersen
5a0a2aa00b
Fix touch so it behaves itself (it could segfault in some cases).
...
Fix uname help info formatting.
-Erik
2000-06-02 23:26:44 +00:00
Eric Andersen
808d03ec19
This is a fix for chroot
...
- Fixed error message when the command is not specified (possibly crash on
libc5 systems!)
- Debugging output removed
- Using fatalError() whenever appropriate
Regards,
Pavel Roskin
2000-06-02 17:56:45 +00:00
Eric Andersen
9c8ffa02f4
Pavel fixed a segfault in yes.
...
-Erik
2000-06-02 17:51:39 +00:00
Eric Andersen
3199bda52e
Fix /etc/passwd misspelling.
...
-Erik
2000-06-02 17:38:18 +00:00
Eric Andersen
6082917e34
Some Makefile fixes for the docs.
...
-Erik
2000-06-02 03:35:22 +00:00
Eric Andersen
380e58a05f
Note the addition of ar.
...
-Erik
2000-06-02 03:25:00 +00:00
Eric Andersen
ec480c49c2
oops. Don't commit autogenerated stuff.
...
-Erik
2000-06-02 03:23:28 +00:00
Eric Andersen
86ab8a32bd
A number of additional fixed from Pavel Roskin, note some more bugs in the
...
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox,
which is now included.
-Erik
2000-06-02 03:21:42 +00:00
Eric Andersen
4062268bc7
Acknowledge contributions of Pavel Roskin, and fix doc building
...
so the html goes into the website directory.
-Erik
2000-06-02 03:21:41 +00:00
Eric Andersen
08e9289ab3
Acknowledge contributions of Pavel Roskin, and fix doc building
...
so the html goes into the website directory.
-Erik
2000-06-02 03:21:36 +00:00
Eric Andersen
b6c6d87a99
More stuff to do...
...
-Erik
2000-06-02 03:21:32 +00:00
Eric Andersen
77bd2db325
Acknowledge contributions of Pavel Roskin, and fix doc building
...
so the html goes into the website directory.
-Erik
2000-06-02 03:21:32 +00:00
Eric Andersen
1624813459
Point to the local BusyBox.html docs.
...
-Erik
2000-06-02 03:20:22 +00:00
Eric Andersen
b83e0ed3a1
Forgot to checkin the busybox website graphics. Here they are...
...
-Erik
2000-06-02 02:33:24 +00:00
Eric Andersen
89960b8af2
More stuff.
...
-Erik
2000-05-31 20:08:30 +00:00
Eric Andersen
b5966368d7
Minor doc fix. Added several bugs to the todo list. Fixed the way init
...
scans /etc/inittab entries so that commands can contain ":"s.
-Erik
2000-05-31 20:04:38 +00:00
Eric Andersen
deb0331eb6
Remove the now-fixed tar segfault from the TODO list.
...
-Erik
2000-05-30 19:11:50 +00:00
Eric Andersen
108a44345c
Fixed tar option parsing segfault, and make "tar xv" and "tar -xv"
...
both work (i.e. it works with or w/o the "-").
-Erik
2000-05-30 19:05:57 +00:00
Eric Andersen
e511e7c116
Minor update to web page.
...
-Erik
2000-05-25 00:18:59 +00:00
Erik Andersen
8ea7d8cdaf
First pass at fixing tar segfault, and more portability updates.
...
-Erik
2000-05-20 00:40:08 +00:00
Erik Andersen
330fd2b576
More libc portability updates, add in the website (which has not been
...
archived previously). Wrote 'which' during the meeting today.
-Erik
2000-05-19 05:35:19 +00:00
Erik Andersen
d356c6e9d1
Another bug to fix...
...
-Erik
2000-05-17 05:28:05 +00:00
Erik Andersen
5b46d792f1
Some more portability updates
...
-Erik
2000-05-17 05:24:24 +00:00
Erik Andersen
499f65fb98
Some updates for better portability.
...
-Erik
2000-05-16 20:07:38 +00:00
Erik Andersen
969f9b0486
TODO update
...
-Erik
2000-05-13 19:08:58 +00:00
Erik Andersen
67a0dd8f3c
Change a description
...
-Erik
2000-05-13 19:08:42 +00:00
Erik Andersen
c3f5c9c2ee
Minor fixes to being a standalone shell.
...
-Erik
2000-05-13 19:00:07 +00:00
Erik Andersen
bcd6177853
BusyBox shell (lash) can now be used as a standalone shell when
...
BB_FEATURE_STANDALONE_SHELL is defined (i.e. BusyBox can now completely replace
sash). Also fixed it so shell builtins now respect pipes and redirects.
-Erik
2000-05-13 06:33:19 +00:00
Erik Andersen
73c8c9cf9a
More doc updates
...
-Erik
2000-05-13 05:36:13 +00:00
Erik Andersen
23dea9b712
So much for my evil optimization. Doesn't seem to work. Will test
...
more on it later.
-Erik
2000-05-13 00:28:25 +00:00
Erik Andersen
7ab9c7ee52
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
...
which lets you compile out most of the "--help" output, saving
up to 17k.
Renamed mnc to nc.
-Erik
2000-05-12 19:41:47 +00:00
Erik Andersen
3d427ac5ef
Some experimental stuff (work in progress). heheh.
...
-Erik
2000-05-12 19:38:40 +00:00
Erik Andersen
59b9e87024
* cp -fa now works as expected for symlinks (it didn't before)
...
* zcat works again (wasn't working since option parsing was broken)
* more doc updates/more support for BB_FEATURE_SIMPLE_HELP
-Erik
2000-05-10 05:05:45 +00:00
Erik Andersen
ac130e1dca
Add suffix stripping support to basename
...
-Erik
2000-05-10 05:00:31 +00:00
Mark Whitley
0a027e6880
Added some bugs / TODOs.
2000-05-08 23:25:59 +00:00
Erik Andersen
691f49d3c1
Fix umount dependency on find_real_root_device_name
...
-Erik
2000-05-08 17:56:25 +00:00
Erik Andersen
0e713cef9d
Doc updates
...
-Erik
2000-05-05 19:50:32 +00:00
Erik Andersen
6c5f2c6021
Add support for "noatime" and "nodiratime" mount flags to mount.
...
Change umount "-f" to mean force, and actually use umount2.
Change umount "-l" to mean "Do not free loop device".
Updates docs accordingly.
-Erik
2000-05-05 19:49:33 +00:00
Erik Andersen
9b15e50835
Tell cvs to never checkin the resultant docs.
...
-Erik
2000-05-03 03:25:43 +00:00
Erik Andersen
a59d7094a6
Sensibly put the docs under the docs directory.
...
-Erik
2000-05-03 03:24:21 +00:00
Erik Andersen
0a704e8ff6
Remove BB_FEATURE_REMOUNT (small, and should always be present)
...
and fix documentation dependancy checks, so it is only built when
it should be built.
-Erik
2000-05-03 03:19:06 +00:00
Erik Andersen
a19bc64653
More formatting bugs fixed
...
-Erik
2000-05-02 06:40:02 +00:00
Erik Andersen
e31c06608e
Bug fixes in the docs
...
-Erik
2000-05-02 05:32:07 +00:00
Erik Andersen
03ccce6e30
Make the dependancies on the docs work properly
...
-Erik
2000-05-02 05:31:00 +00:00
Erik Andersen
5afc864422
More stuff
...
-Erik
2000-05-02 00:07:56 +00:00
Erik Andersen
3c1217cfad
Document tr change
...
-Erik
2000-05-01 22:34:24 +00:00
Erik Andersen
8f8d6d5f2d
Due to the license change I can now use Minix code. Minix tr
...
(adapted) now replaces BSD tr. Goes from 5k to 1k, and eliminates
bsearch from the list of libc symbols.
-Erik
2000-05-01 22:30:37 +00:00
Mark Whitley
d16665810d
Minor source modifications to improve readability.
2000-05-01 22:08:54 +00:00
Erik Andersen
12d1b378be
Minor doc change
2000-05-01 19:50:37 +00:00
Erik Andersen
9b7d964581
My little adventure of analyzing lib usage has already rooted out
...
a big "P" Policy violator -- logname was using getlogin(3), which uses
utmp under the hood. We don't need no stinkin' utmp (and if we
are using tinylogin, it is unlikely to be useful trying).
-Erik
2000-05-01 19:49:20 +00:00
Erik Andersen
f378fced43
Note how to find list of BusyBox libc dependancies, the ide being to
...
limit them much more.
-Erik
2000-05-01 19:27:17 +00:00
Erik Andersen
4625240674
Oops.
...
-Erik
2000-05-01 19:11:16 +00:00
Erik Andersen
94f5e0ba7c
Some accrued fixes/updates.
...
* cp/mv now accepts (and ignores) the -f flag, since it always
does force anyway
* tail can now accept -<num> commands (e.g. -10) for better
compatibility with the standard tail command
* added a simple id implementation; doesn't support supp. groups yet
2000-05-01 19:10:52 +00:00
Erik Andersen
28c49b6c9c
Foo
2000-04-28 22:51:49 +00:00
Erik Andersen
25c44c623d
Fix changelog
...
-Erik
2000-04-28 22:49:08 +00:00
Erik Andersen
923ef599f3
Fix tarball creation. In an attempt to accomodate the whiners
...
that wanted "tar cf foo.tar foo" (i.e. no "-" before options)
I broke creation of tarballs. Now fixed.
-Erik
2000-04-28 22:32:13 +00:00
Erik Andersen
6ed02a0ee0
Fix stupid bugs. update was segfaulting. mknod minor # was always 0
...
due to a parsing bug. Oops.
-Erik
2000-04-28 22:10:34 +00:00
Erik Andersen
abc199eb0c
Forgot this file...
...
-Erik
2000-04-28 01:26:31 +00:00
Erik Andersen
4f3f757d56
Latest and greatest. Some effort at libc5 (aiming towards newlib)
...
compatability.
-Erik
2000-04-28 00:18:56 +00:00
Erik Andersen
227a59b05d
Several more updates
...
-Erik
2000-04-25 23:24:55 +00:00
John Beppu
f93a95de69
+ grep -v # yay!
2000-04-24 18:07:30 +00:00
Erik Andersen
e90f4045af
Some more updates and such...
...
-Erik
2000-04-21 21:53:58 +00:00
Erik Andersen
1d1d95051a
More Doc updates. cmdedit and more termio fixes.
2000-04-21 01:26:49 +00:00
Erik Andersen
cf8d38a3eb
Doc updates
...
-Erik
2000-04-21 01:23:36 +00:00
Erik Andersen
7d6ba57bba
Add #include <sys/param.h> to syslogd.
...
-Erik
2000-04-19 20:02:50 +00:00
Erik Andersen
e3ed156eeb
Make the sys logger for so that concurrent logging will work
...
properly (see tests/syslog_test.c for example).
-Erik
2000-04-19 18:52:56 +00:00
Erik Andersen
1101d23604
Fix email address
...
-Erik
2000-04-19 05:15:12 +00:00
Erik Andersen
eef658068b
Minor doc change
...
-Erik
2000-04-19 05:12:02 +00:00
Erik Andersen
2e397341d9
Some emails I exchanged with Alan Cox and Linus re my /dev/ps
...
kernel patch. To summarize, it won't be going into the kernel.
-Erik
2000-04-19 04:34:06 +00:00
Erik Andersen
262dd039eb
Fix the makefile so docs get built
...
-Erik
2000-04-19 04:26:30 +00:00
Erik Andersen
3fe7f9f20b
More minor updates to docs (and making apps behave as the docs
...
suggest they should)
-Erik
2000-04-19 03:59:10 +00:00
Erik Andersen
a3e57ca700
make ps accept (and ignore) all options (--help works of course).
...
tar now works with or without the leading "-" on the options.
-Erik
2000-04-19 03:38:01 +00:00
Erik Andersen
f13df3752c
More stuff
...
-Erik
2000-04-18 23:51:51 +00:00
Erik Andersen
9a8195cc03
Fix creation of /linuxrc
...
-Erik
2000-04-18 23:32:10 +00:00
Erik Andersen
b9167cb67f
Really fix the killall segfault this time.
...
-Erik
2000-04-18 22:41:30 +00:00
Erik Andersen
632bb57135
Fix symlink following bug in chmod -R and friends. Allow SYSV style
...
'chown foo:bar' in addition to 'chown foo.bar', and fix a bug in the
busybox globbing routine such that 'find /dir -name [i]' no longer
segfaults.
-Erik
2000-04-18 22:09:06 +00:00
Erik Andersen
c366050a23
Fix stupid bug (wrong variable)
...
-Erik
2000-04-18 21:18:57 +00:00
Jim Gleason
f29f797f54
Reset DODEBUG to false
2000-04-18 20:40:38 +00:00
Erik Andersen
0a64de9b4f
More little stuff.
...
-Erik
2000-04-18 20:00:03 +00:00
Erik Andersen
229dd2b905
Fix killall
...
-Erik
2000-04-18 18:38:29 +00:00
Erik Andersen
5d68857b9c
Remove debug noise
...
-Erik
2000-04-18 01:09:29 +00:00
Erik Andersen
a6c752201e
Updates
...
-Erik
2000-04-18 00:00:52 +00:00
John Beppu
91e581fa04
- grep -v ^\.PHONY < Makefile
...
+ busybox.def.h
BB_FEATURE_TRIVIAL_HELP
+ uname.c has an example of how BB_FEATURE_TRIVIAL_HELP
is to be applied.
2000-04-17 17:49:44 +00:00
John Beppu
5a50def0f4
- removal of (stray|stealth) spaces
2000-04-17 17:46:46 +00:00
John Beppu
6e703034f4
+ no need for comments.
2000-04-17 16:53:45 +00:00
Erik Andersen
26702fe191
Bugfixes.
...
-Erik
2000-04-17 16:44:46 +00:00
Erik Andersen
e5b6c7dd9c
More updates to the docs, and fixes to sync things with the docs.
...
-Erik
2000-04-17 16:16:10 +00:00
John Beppu
4fd10fc73b
+ added John Lombardo to AUTHORS section
2000-04-17 05:13:59 +00:00
John Beppu
200be97e36
- got rid of the .PHONY: docs, because I didn't want it to
...
generate the qw(man html txt) documentation every time I
ran make.
Unfortunately, "make docs" never amounts to anything, because
make sees the docs/ directory and thinks, "oh, I don't have
to do any work". Maybe the target should be "doc" to make it
different from "docs"?
2000-04-17 04:41:15 +00:00
John Beppu
5a728cfdfe
+ in the interest of robustness, I added
...
utility.c :: cstring_alloc()
utility.c :: cstring_lineFromFile() /* they're at the bottom */
so that I could read in lines of arbitrary length from FILE*s
(instead of using fgets(huge_ass_buffer,...)).
+ I tested it out on sort, and it seems to be fine.
2000-04-17 04:22:09 +00:00
John Beppu
3becdfc316
+ added a .PHONY: docs
...
target
2000-04-17 03:37:52 +00:00
John Beppu
53642b066c
+ fixed segfault when no parameters are given to math
2000-04-16 10:55:27 +00:00
John Beppu
9057b6a918
+ wrap things in B<> to make pod2man happy
2000-04-16 10:22:28 +00:00
Erik Andersen
ab01ed12bd
Turn off debugging
...
-Erik
2000-04-15 16:37:45 +00:00
Erik Andersen
5e1189e187
More documentation updates, and minor fixes to make things sync
...
up with the docs.
-Erik
2000-04-15 16:34:54 +00:00
Erik Andersen
95c1c1e05f
Fix a tar bug: tar removed leading '/'s for symlink targets.
...
Fix a syslogd bug: Only the first sizeof(buffer) was read from the
/dev/log socket, causing (for most cases) only every other log item to be logged.
-Erik
2000-04-14 21:45:29 +00:00
Erik Andersen
d5ba77d03e
Latest and greatest. Seems there is a bug.
...
-Erik
2000-04-14 00:40:31 +00:00
John Beppu
50ed0676ad
+ minor whitespace oddities removed
...
+ re-alphabetized AUTHORS section
+ added Id tag at bottom
2000-04-13 23:44:04 +00:00
John Beppu
cbd6628c8c
+ VERSION wasn't being propagated to the sub-make happening in docs/
...
so I exported VERSION and invoked make with a -C docs
2000-04-13 22:57:45 +00:00
Erik Andersen
9cf3bfa7c1
More doc updates for BusyBox, with fixes to apps for bugs revealed
...
while trying to write docs . :-)
-Erik
2000-04-13 18:49:43 +00:00
John Beppu
b4f8606c05
- the message that comes up when busybox is invoked
...
w/o parameters was extending beyond the 80th column
2000-04-13 03:36:01 +00:00
John Beppu
08e7f75ba2
+ a comment on line 1 w/ suggested pod2man invocation:
...
pod2man --center=Lineo --release="version 0.43" busybox.pod > busybox.1
2000-04-13 03:22:20 +00:00
John Beppu
f17792ca9b
+ formatting modifications to make pod2man(1p) happy.
2000-04-13 03:16:01 +00:00
Erik Andersen
61677feff7
Upates to include copyright 2000 to everything
...
-Erik
2000-04-13 01:18:56 +00:00
Erik Andersen
62dc17a3b1
Some docs
...
-Erik
2000-04-13 01:18:23 +00:00
Erik Andersen
f0657d3229
Some enhancements I've been working on over the weekend,
...
-Erik
2000-04-12 17:49:52 +00:00
Erik Andersen
a2685735b1
Make tab completion an option
...
-Erik
2000-04-09 18:27:46 +00:00
Erik Andersen
f3b3d17060
More minor patches
...
-Erik
2000-04-09 18:24:05 +00:00
Erik Andersen
0817d1372c
This makes tar work perfectly, and adds in "--exclude" as an option
...
-Erik
2000-04-09 15:17:40 +00:00
Erik Andersen
84e09e4437
Fix tar checksum calculation bug.
...
-Erik
2000-04-08 20:58:35 +00:00
Erik Andersen
ecd512453c
Latest and greatest
...
-Erik
2000-04-08 03:08:21 +00:00
Erik Andersen
5dd853ad2a
Oops. Left in some debug noise.
...
-Erik
2000-04-07 16:19:30 +00:00
Erik Andersen
6a34b539db
Slightly better fringe case handling and GNU tar like error messages.
...
-Erik
2000-04-07 06:55:38 +00:00
Erik Andersen
825aead68b
Patch to make killall actually kill all PIDs with the specified name,
...
rather then busylooping trying to kill the first one until it dies.
Should be more efficient now, and will only send one signal to each
specified process.
-Erik
2000-04-07 06:00:07 +00:00
Erik Andersen
93d6513d93
Some more minor updates to better use some gcc attributes.
...
-Erik
2000-04-06 08:06:36 +00:00
Erik Andersen
7a4b719486
Fix sed regexp replacement, which I had hosed (thanks to
...
Jim Gleason for finding and fixing the problem)
-Erik
2000-04-06 07:37:35 +00:00
Erik Andersen
6bd3602988
Fix time stamp style
...
-Erik
2000-04-06 07:25:44 +00:00
Erik Andersen
c0dac18d6d
Turn off static linking. Duh.
...
-Erik
2000-04-06 07:24:45 +00:00
Erik Andersen
e9fee653dc
Use gcc -E instead of cpp to enhance portability for brain
...
damaged platforms (i.e. OpenLinux) that do not have cpp in
the default path but instead hide it under /usr/lib/...
-Erik
2000-04-06 00:10:39 +00:00
Erik Andersen
d4bc1fcad8
Minor noise removal
...
-Erik
2000-04-05 05:19:03 +00:00
Erik Andersen
5661fe078e
Tar now works perfectly. It behaves much better now then it
...
used to. Only thing left to do is add in exclude (-X) option.
-Erik
2000-04-05 01:00:52 +00:00
Erik Andersen
cbb0a4b40d
Oops. Forgot the usleep.c file.
...
/me dons a paper bag.
-Erik
2000-04-04 18:52:02 +00:00
Erik Andersen
b99ca13261
usleep contributed by Nicolas Pitre <nico@cam.org>
...
-Erik
2000-04-04 18:49:18 +00:00
Erik Andersen
68a9ea4208
Update tar so creation of tarballs is much closer to working...
...
-Erik
2000-04-04 18:39:50 +00:00
Erik Andersen
183da4ade1
Minor structural change to allow core dumping(or not) from init
...
-Erik
2000-04-04 18:36:37 +00:00
Erik Andersen
983b51b17b
minor changes to mount/umount to support-by-ignoring the "-v" flag.
...
Added optional core dumping as a feature for init, and include a rewrite
of syslogd so that it now supports multiple concurrent connections.
-Erik
2000-04-04 18:14:25 +00:00
Erik Andersen
3364d78b18
Yet another installment in the ongoing tar saga
...
-Erik
2000-03-28 00:58:14 +00:00
Erik Andersen
6acaa40f27
First stages of (re-)writing busybox's tar creation support.
...
-Erik
2000-03-26 14:03:20 +00:00
Erik Andersen
deea048bec
Latest and greatest
...
-Erik
2000-03-25 23:09:29 +00:00
Erik Andersen
1ad302ac90
The new tar for busybox is now done, and works just fine
...
for extracting files. Creation of tarballs is next...
-Erik
2000-03-24 00:54:46 +00:00
Erik Andersen
e454fb68a3
More changes that are broken. It doesn't compile
...
yet, but is closer.
-Erik
2000-03-23 04:27:58 +00:00
Erik Andersen
298854f029
My latest ramblings.
...
-Erik
2000-03-23 01:09:18 +00:00
Erik Andersen
ec5bd90916
Use the nice new find_real_root_device function to find the
...
name of the root device, instead of having libc read whatever
lies happen to be in /etc/mtab.
-Erik
2000-03-22 07:12:05 +00:00
Erik Andersen
016ffe9307
Add in a nifty function for mount to use.
...
-Erik
2000-03-22 00:58:54 +00:00
Erik Andersen
0d068a2067
* all mallocs now use xmalloc (and so are OOM error safe), and
...
the common error handling saves a few bytes. Thanks to
Bob Tinsley <bob@earthrise.demon.co.uk > for the patch.
-Erik
2000-03-21 22:32:57 +00:00
Erik Andersen
c053e41fa0
Hmm. Missed this change
2000-03-21 01:31:24 +00:00
Erik Andersen
42094cdad5
Fix bug in memory total checking.
...
-Erik
2000-03-20 21:34:52 +00:00
Erik Andersen
1dbe340eba
more minor fixes
...
-Erik
2000-03-19 10:46:06 +00:00
Erik Andersen
c7c634bd88
Some more stuff.
...
-Erik
2000-03-19 05:28:55 +00:00
Erik Andersen
6c41c44898
Adjust the termio settings, and don't use octal since it
...
is impossible to read by mere mortals.
-Erik
2000-03-19 05:13:49 +00:00
Erik Andersen
531bcb6826
Minor update
2000-03-17 20:49:55 +00:00
Erik Andersen
6273f655c8
Several fixes.
...
-Erik
2000-03-17 01:12:41 +00:00
Erik Andersen
161220c498
Fix fg bug
...
-Erik
2000-03-16 08:12:48 +00:00
Erik Andersen
13456d1fcd
Forgot these files...
...
-Erik
2000-03-16 08:09:57 +00:00
Erik Andersen
d75af99529
Major build system updates...
...
-Erik
2000-03-16 08:09:09 +00:00
Erik Andersen
a967e3c8f0
Bug fix
...
-Erik
2000-03-14 16:34:49 +00:00
Erik Andersen
ce91732416
Some bug fixes I forgot to check-in the other day.
...
Mounting loop devices w/o specifying the filesystem
type choked if it didn't guess right the first time.
-Erik
2000-03-13 04:07:02 +00:00
Erik Andersen
3522eb1ab3
First pass at writing a shell for busybox.
...
Works fine, full job control support, etc.
No syntax yet (if, then, while, etc). Handles
pipes and & processes fine.
TODO: add command editing, add syntax suport.
-Erik
2000-03-12 23:49:18 +00:00
Erik Andersen
269bba2514
Change BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simpler
...
BB_FEATURE_USE_DEVPS_PATCH.
-Erik
2000-03-08 14:50:47 +00:00
Erik Andersen
47d3bb3b6d
First edition of my Busybox kernel patch. implements devps, devmtab, and
...
devmodules. With this patch, you can enable BB_FEATURE_USE_DEVPS_N_DEVMTAB and
have a completely full featured busybox without having to even compile /proc
into the kernel. I'm pretty proud of this patch. It has a few loose ends that
should be filled in sometime, but arn't used by busybox (so they arn't very
important).
-Erik
2000-03-08 06:52:04 +00:00
Erik Andersen
54969a1f64
Fixed up lsmod so it works with my devmodules kernel driver,
...
and with /proc.
-Erik
2000-03-08 06:42:34 +00:00
John Beppu
692a4502b0
+ changed a static array (FileList) into a dynamically allocated one
...
in an attempt to make the .bss section smaller.
2000-03-08 00:14:35 +00:00
Erik Andersen
2ac2fae728
Fix bugs related to finding PIDs.
...
-Erik
2000-03-07 23:32:17 +00:00
Erik Andersen
cbd0d625c7
Fix up some #define stuff to ensure the Right Thing(tm)
...
happens with all combinations of BB_KILL and BB_KILLALL
being defined.
-Erik
2000-03-07 07:58:57 +00:00
Erik Andersen
06249f24f3
Add some description
...
-Erik
2000-03-07 07:48:53 +00:00
Erik Andersen
ea6b67de65
Add a #define to make init extra quiet on boot.
...
-Erik
2000-03-07 07:47:10 +00:00
Erik Andersen
246cc6dddd
Wrote killall.
...
Adjusted mount, ps, utility.c, etc to handle my nifty new kernel
patches the allow busybox to run perfectly without /proc.
-Erik
2000-03-07 07:41:42 +00:00
Erik Andersen
e916d24805
Fixed a bug where "sed 's/foo/bar/g'" (i.e. a script w/o a -e)
...
would go into an infinite loop.
-Erik
2000-03-06 19:20:35 +00:00
Erik Andersen
9c5c29d442
Oops. I left debugging turned on...
...
-Erik
2000-03-06 18:34:48 +00:00
Erik Andersen
65fc1c70f7
Oops. Forgot to add in uptime when I added uptime.
...
Here it is in all its /proc free glory.
-Erik
2000-03-05 08:16:03 +00:00
Erik Andersen
fb002d0df0
Add in tr and dirname
...
-Erik
2000-03-05 08:07:00 +00:00
Erik Andersen
66be5e7e29
Wrote uptime. Doesn't use /proc. :)
...
-Erik
2000-03-05 07:52:05 +00:00
Erik Andersen
6437170cb3
Add in freeramdisk.c, which (duh) frees ramdisks. If you have any
...
ramdisks lying about and want to free up the memory they have used,
this baby is the answar you have been waiting for.
-Erik
2000-03-04 22:23:27 +00:00
Erik Andersen
029011b9ee
A few updates (including the cp fix the Craig has been looking for)
...
-Erik
2000-03-04 21:19:32 +00:00
Erik Andersen
7c4b2f3fe5
Minor makefile and todo updates
...
-Erik
2000-02-29 21:49:22 +00:00
Erik Andersen
a51ecdd9e4
Minor tweak to argv[0] handling for linuxrc
...
-Erik
2000-02-24 18:09:58 +00:00
Erik Andersen
5b911ddd57
Fixed rebooting when init runs as /linuxrc
...
-Erik
2000-02-23 22:49:58 +00:00
John Beppu
dc75a739ac
+ this is a small script for helping TargetWizard auto-generate
...
busybox.defs.h
2000-02-23 18:17:35 +00:00
Erik Andersen
f7c49ef2d1
Sync up a few things. Add in a new telnet implementation (still
...
not perfect though).
-Erik
2000-02-22 17:17:45 +00:00
Erik Andersen
3b9522f2af
Add in a TODO item,
...
-Erik
2000-02-22 17:12:00 +00:00
Erik Andersen
6e769df47d
Update the changelog
...
-Erik
2000-02-21 21:35:11 +00:00
Erik Andersen
d07ee46919
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
2000-02-21 21:26:32 +00:00
Erik Andersen
fa4718efcf
Minor update for handling TERM with serial consoles.
...
-Erik
2000-02-21 19:25:12 +00:00
Erik Andersen
42387e4964
Forgot to add basename. More fixes to du from
...
Friedrich Vedder <fwv@myrtle.lahn.de >.
-Erik
2000-02-21 17:27:17 +00:00
Erik Andersen
27fdd081ef
Fixed du. Now behaves just like GNU du (only less so).
...
-Erik
2000-02-19 18:16:49 +00:00
Erik Andersen
e272915e1f
Some updates for the day,
...
-Erik
2000-02-18 21:34:17 +00:00
Erik Andersen
bf5f009862
Formatting fix
...
-Erik
2000-02-14 18:44:33 +00:00
John Beppu
08c965a0a1
- 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.
2000-02-13 04:10:57 +00:00
Erik Andersen
5e2b96345c
Add this in
...
-Erik
2000-02-11 21:55:41 +00:00
Erik Andersen
9ffdaa647e
Updates
...
-Erik
2000-02-11 21:55:04 +00:00
John Beppu
5e1b2ca116
+ memory allocation/deallocation is less tolerant of evil.
2000-02-11 12:52:55 +00:00
John Beppu
fa376f8034
fsck_minix.c lost fat.
2000-02-11 12:44:07 +00:00
John Beppu
c1dc5d9473
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";'
2000-02-11 12:43:20 +00:00
Erik Andersen
91f3df3c45
Fixed a bug,
...
-Erik
2000-02-10 22:58:40 +00:00
Erik Andersen
4d0543138e
More minor touchups.
...
-Erik
2000-02-10 07:31:15 +00:00
Erik Andersen
fb1793f03c
Fix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
...
for noticing these bugs.
-Erik
2000-02-09 16:37:08 +00:00
Erik Andersen
07f5604046
Fix a possible /linuxrc crash.
...
-Erik
2000-02-09 06:05:01 +00:00
Erik Andersen
d7ce5e7802
Update the sample inittab to add the "ctrlaltdel" action.
...
Note a bug in busybox init that I need to fix.
-Erik
2000-02-09 04:40:25 +00:00
Erik Andersen
e132f4b09e
Fixed the init problem where it wouldn't unmount filesystems
...
on reboot. Also fixed swapoff -a so it works.
-Erik
2000-02-09 04:16:43 +00:00
Erik Andersen
e49d5ecbbe
Some formatting updates (ran the code through indent)
...
-Erik
2000-02-08 19:58:47 +00:00
Erik Andersen
c0bf817bbc
mkdir -p had gotten broken. Fixed now.
...
-Erik
2000-02-08 06:19:29 +00:00
Erik Andersen
d0480c26ab
Forgot a semicolon.
...
-Erik
2000-02-07 20:35:14 +00:00
Erik Andersen
31cf8e0056
device_open is common code -- moved into utility.c
...
-Erik
2000-02-07 20:31:19 +00:00
Erik Andersen
79ac30da83
Forgot cp and mv are now cp_mv
...
-Erik
2000-02-07 05:53:48 +00:00
Erik Andersen
d7cd21aed5
Remove the now obsolete test. Tests now
...
live in the tests directory.
-Erik
2000-02-07 05:30:41 +00:00
Erik Andersen
fac10d7c59
A few minor updates. ;-)
...
Seriously though, read the Changelog for busybox 0.42,
which this is about to become...
-Erik
2000-02-07 05:29:42 +00:00
John Beppu
50bc101b7d
made more robust and commented my code.
2000-01-30 09:47:16 +00:00
John Beppu
b332e779e6
nslookup -- a work in progress...
2000-01-29 12:59:01 +00:00
Erik Andersen
04e97024e7
Clear up some ambiguity with old style assignments.
...
-Erik
2000-01-29 07:06:24 +00:00
Erik Andersen
a6d0dbc86f
Minor change. init now uses dup2.
...
-Erik
2000-01-29 06:29:32 +00:00
Erik Andersen
8e759aa31f
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
2000-01-29 05:52:40 +00:00
Erik Andersen
d7a44c76fe
Forgot some debugging noise.
...
-Erik
2000-01-27 23:00:01 +00:00
Erik Andersen
ce5b466bcc
copyFile could call chmod on a symlink, changing the perms
...
of the pointed to file. Minor fix to tar for directory handling.
-Erik
2000-01-27 19:50:47 +00:00
Erik Andersen
ccc7488615
Fixed ls formatting for 8 char user names.
...
-Erik
2000-01-27 02:40:21 +00:00
Erik Andersen
de7965ca7e
Shuffle location of generic code into utility.c
...
-Erik
2000-01-26 23:49:21 +00:00
Erik Andersen
5cbdd712f5
mount and umount could leak loop device allocations causing the system to
...
quickly run out. Also disable init's SIGHUP handler during shutdown.
-Erik
2000-01-26 20:06:48 +00:00
Erik Andersen
3fe39dce5d
Some busybox updates. See the changelog for details if you care.
...
-Erik
2000-01-25 18:13:53 +00:00
John Beppu
bf3a838aac
put #if's around the lchown, because
...
older glibc versions don't have it.
2000-01-24 12:06:22 +00:00
Erik Andersen
5509af7073
* 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
2000-01-23 18:19:02 +00:00
John Beppu
9bc7e89fc1
Making note of my changes
2000-01-23 13:54:15 +00:00
John Beppu
a4a8fd05f4
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
2000-01-23 13:38:32 +00:00
Erik Andersen
06936df164
Fix a bug where tar could change perms and ownership of dirs pointed
...
to by symlink within a tarball.
-Erik
2000-01-23 02:14:20 +00:00
Erik Andersen
de552874d2
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
2000-01-23 01:34:05 +00:00
Erik Andersen
f4acea8cf5
Better way to check for namespace aliasing.
...
-Erik
2000-01-22 04:55:32 +00:00
Erik Andersen
b2660c703d
Tell what I did
...
-Erik
2000-01-20 19:51:48 +00:00
Erik Andersen
8ad12e32c8
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
2000-01-20 19:32:32 +00:00
John Beppu
4581b4cdd9
foreach (@busybox_command) {
...
put_help_message_in_busybox_pod($_);
}
2000-01-19 15:04:41 +00:00
John Beppu
08fe43d3f9
added a little more content.
2000-01-19 12:39:16 +00:00
Erik Andersen
a2f69e5485
Bug fix. grep wasn't printing file names they way it was supposed to.
...
-Erik
2000-01-19 04:30:37 +00:00
John Beppu
46a4e76243
fleshed out a bit more... just wanted to put the current
...
changes under version control.
2000-01-18 22:33:11 +00:00
John Beppu
3a1b6be7d8
the beginnings of a proper man page for busybox.
2000-01-18 15:45:59 +00:00
Erik Andersen
05100cd477
tar creation support is now optional.
...
-Erik
2000-01-16 01:30:52 +00:00
Erik Andersen
83865e3e90
Ready for release
2000-01-15 22:33:09 +00:00
Erik Andersen
3163821967
Sync up busybox with the latest and greatest. This is not stuff for
...
the Embedix release.
-Erik
2000-01-15 22:28:50 +00:00
Erik Andersen
b7cc49d992
* 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
2000-01-13 06:38:14 +00:00
Erik Andersen
05df239ed9
Bug fixes.
...
-Erik
2000-01-13 04:43:48 +00:00
Erik Andersen
9a9a261569
Fix a logger bug.
...
-Erik
2000-01-09 06:49:08 +00:00
Erik Andersen
ac6e71f0c4
Possible fixes...
...
-Erik
2000-01-08 22:04:33 +00:00
Erik Andersen
766f9c7a19
Oops. left debug on.
...
-Erik
2000-01-08 21:20:49 +00:00
Erik Andersen
1dbc17f630
Fix cp and mv so 'cp foo/README bar' where foo and bar are directories,
...
and README is a file.
-Erik
2000-01-08 21:16:29 +00:00
Erik Andersen
5338ce19c8
foo
2000-01-07 23:30:07 +00:00
Erik Andersen
5f2df6ccb4
Remove some leftover debug noise.
...
-Erik
2000-01-07 23:11:00 +00:00
Erik Andersen
9b5c0b7611
More adjustments
...
-Erik
2000-01-07 18:33:06 +00:00
Erik Andersen
812d46667d
More minor fixes.
...
-Erik
2000-01-07 18:30:40 +00:00
Erik Andersen
96e2abd084
Init is now even more perfect then before.
...
-Erik
2000-01-07 11:40:44 +00:00
Erik Andersen
286b0de74d
Trivial type fix.
...
-Erik
2000-01-07 09:43:38 +00:00
Erik Andersen
d38eaef70b
foo
2000-01-07 02:55:55 +00:00
Erik Andersen
0e3782f7c3
Init is now _more_ perfect then before.
...
-Erik
2000-01-07 02:54:55 +00:00
John Beppu
9324b400ab
making note of my changes.
2000-01-07 02:04:58 +00:00
John Beppu
9d83165d9e
added uniq_usage message
2000-01-07 01:57:32 +00:00
John Beppu
96f1f33e56
did tedious stuff
2000-01-06 23:49:21 +00:00
Erik Andersen
3695052813
Add in sample inittab file
...
-Erik
2000-01-06 01:16:59 +00:00
Erik Andersen
9e7372584f
inittab is now perfect. The universe will now submit to my
...
will. muhahahaha!!! Phear!
-Erik
2000-01-06 01:16:13 +00:00
Erik Andersen
0b874ed41f
Cool. Beppu is doing uniq.
...
-Erik
2000-01-06 01:14:56 +00:00
John Beppu
abb4772b28
i am busybox of borg. unix will be assimilated.
2000-01-06 00:48:21 +00:00
Erik Andersen
0881de706e
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
2000-01-05 09:34:26 +00:00
Erik Andersen
f4a99cc02c
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
2000-01-05 05:49:51 +00:00
Erik Andersen
fb62e3225f
* Grep -i previously failed on UPPER CASE patterns due to a silly
...
regexp implementation bug that is now fixed.
-Erik
2000-01-05 05:47:11 +00:00
Erik Andersen
7dc160721e
Bunches of fixes. Typos, bugs, etc.
...
Added 'gunzip -t'. inittab support _almost_ works (but it isn't
ready for prime time useage yet).
-Erik
2000-01-04 01:10:25 +00:00
Erik Andersen
9c88cac5cb
First pass inittab parser written
...
-Erik
1999-12-30 09:25:17 +00:00
Erik Andersen
1266a13e1f
* 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
1999-12-29 22:19:46 +00:00
Erik Andersen
a89910829c
Add the beginings of some regression testing. Add in the recently
...
contributed loadacm utility (for dealing with unicode fonts)
-Erik
1999-12-29 03:34:00 +00:00
Erik Andersen
f664c004db
Fixed mv so it now does the right thing (same method used in cp). Removed
...
some cruft from cp.
-Erik
1999-12-29 02:36:29 +00:00
Erik Andersen
2fe08c7afb
Fixed cp so it works as God intended it to.
...
-Erik
1999-12-29 02:10:35 +00:00
Erik Andersen
00266d3df6
Fixed a bug where tar would not set the user and group on device
...
special files.
-Erik
1999-12-28 00:17:46 +00:00
Erik Andersen
69ba6b2956
Added changelog
...
-Erik
1999-12-27 23:56:17 +00:00
Erik Andersen
98f67e35d8
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
1999-12-27 23:48:33 +00:00
John Beppu
00417a38c1
sort is good to go.
1999-12-23 22:46:10 +00:00
John Beppu
ee512a3f86
implemented numeric sort (sort -g)
1999-12-23 00:02:49 +00:00
John Beppu
568cb7b45f
oops.. qsort(2) misunderstanding on my part.
...
it's ok, now.
1999-12-22 23:02:12 +00:00
John Beppu
d19385e160
playing w/ $Log$
1999-12-22 22:27:01 +00:00
John Beppu
f3e59041b5
the base is nearly done.
...
need to implement various comparison functions, now.
1999-12-22 22:24:52 +00:00
John Beppu
019513a59f
added hooks for sort
1999-12-22 17:57:31 +00:00
John Beppu
38efa7902e
work in progress...
1999-12-22 00:30:29 +00:00
John Beppu
c0ca473af9
this is my work in progress.
1999-12-21 20:00:35 +00:00
Erik Andersen
3fe2ecf0d9
Added grep -q, thanks to a patch from "Konstantin Boldyshev" <konst@voshod.com>
...
-Erik
1999-12-21 08:52:04 +00:00
Erik Andersen
d387d01f11
Sync to my local tree
1999-12-21 02:55:11 +00:00
Erik Andersen
f294a0288d
Fix double quoting bug preventing ininit scripts from running
1999-12-21 02:54:37 +00:00
Erik Andersen
021043205c
Add in first draft of insmod. Not yet working (but will Real Soon Now(tm))
...
-Erik
1999-12-17 18:57:34 +00:00
Erik Andersen
10c341af35
Make head --version do the right thing. Update TODO list
...
-Erik
1999-12-17 18:52:06 +00:00
Erik Andersen
4d1d0113fd
Reworked the source so it will compile and run under glibc 2.0.7
...
and linux kernel 2.0.36 (though the dubious reasons why someone
would want to do that defy imagination ;)
-Erik
1999-12-17 18:44:15 +00:00
Erik Andersen
6da0ae8183
Minor fixes to rmmod. First pass at insmod (not yet working).
...
-Erik
1999-12-17 01:08:27 +00:00
Mark Whitley
c144e330c0
Fixed correctness of comment in rmmod.c - MKW
1999-12-17 00:01:46 +00:00
Erik Andersen
2129b146db
Added an AUTHORS file to acknowledge the folks that have
...
done stuff.
-Erik
1999-12-16 23:26:57 +00:00
Erik Andersen
3d7e3414da
Wrote rmmod for busybox.
...
-Erik
1999-12-16 23:04:20 +00:00
John Beppu
0aa6118167
killed an elusive bug in du -s.
1999-12-16 21:16:47 +00:00
Erik Andersen
1c5b2589d1
Fix bugs in logger and syslogd. Add fbset.
...
-Erik
1999-12-16 20:59:36 +00:00
Erik Andersen
6f23cec5d0
Added lsmod
...
-Erik
1999-12-15 22:14:12 +00:00
John Beppu
935fb3886f
made note of my recent changes
1999-12-15 19:35:02 +00:00
John Beppu
25ab653457
fixed an embarrasing segfault (head w/ no args
...
used to die (but now it lives))
1999-12-15 19:29:09 +00:00
John Beppu
e1618e42a8
Implemented du -s
1999-12-15 18:52:17 +00:00
Erik Andersen
3cd5d2541f
Turn off loadkmap and loadfont. We won't be needing those.
...
-Erik
1999-12-15 08:20:08 +00:00
Eric Andersen
0f0fcecf7f
Added the list of available commands.
...
-Erik
1999-12-12 05:32:52 +00:00
Eric Andersen
664584b50e
Fixed spelling of my name. Geez.
...
Ah kant evun spel mi nam.
-Erik
1999-12-11 23:25:59 +00:00
Eric Andersen
19db07b3d4
Ok, so this is reallt 0.38...
...
-Erik
1999-12-11 08:41:28 +00:00
Eric Andersen
59248bad97
Set version to 0.39
...
-Erik
1999-12-11 04:21:50 +00:00
Eric Andersen
84b009256f
Minor updates
1999-12-11 04:16:51 +00:00
John Beppu
b52a218c95
Removed a redundant call du(); Save cpu cycles.
1999-12-10 15:23:47 +00:00
John Beppu
59017e80da
damnit.
...
removed mkfifo from the TODO list.
I didn't implement it, because I realized (too late) that
mknod already existed, and it can do anything that mkfifo
would have done.
1999-12-10 08:44:54 +00:00
Eric Andersen
cf53687376
Fixed John's email address again.
...
John. Your email address is "john@lineo.com " not @line.com. :)
-Erik
1999-12-10 08:29:20 +00:00
Eric Andersen
2cb55077e2
Added poweroff (and adjusted init to use it). Inlined function
...
calls to code only called once in tee. Made BB_KLOGD and option.
-Erik
1999-12-10 08:25:07 +00:00
John Beppu
c5ff0165ad
less TODO
1999-12-10 07:48:34 +00:00
John Beppu
3157b1fba9
Implemented head(1).
...
tried to mimic GNU behaviour.
1999-12-10 07:42:50 +00:00
John Beppu
a3e0d7928b
changed tee_usage from being a function to a char[]
...
that gets used be usage();
1999-12-10 07:41:03 +00:00
John Beppu
9835541c54
Fixed bug when dealing with files specified
...
on the command line that didn't exist.
1999-12-10 07:40:08 +00:00
Eric Andersen
21818c8a80
Make sure the world knows who "beppu" is.
...
-Erik
1999-12-10 06:48:10 +00:00
Eric Andersen
70e2f0b111
Fix beppu's email address.
...
BTW, John, go to sleep. It is late. :)
-Erik
1999-12-10 06:45:42 +00:00
John Beppu
14c82b64c9
Fleshed out du_main().
...
I'm not sure which options to support.
1999-12-10 06:15:27 +00:00
John Beppu
2ad2afd05c
less TODO
1999-12-10 06:14:28 +00:00
John Beppu
059f152a7a
Implemented tee(1).
1999-12-10 05:27:16 +00:00
John Beppu
29fcc90f3e
minor changelog update
1999-12-09 23:33:04 +00:00
Eric Andersen
6805d5d69e
Adjustments for Johns init stuff,
...
-Erik
1999-12-09 22:39:55 +00:00
John Beppu
f95ca97d1b
findInitPid() has been implemented and it seems to work.
...
reboot has been changed to take advantage of findInitPid();
1999-12-09 22:10:18 +00:00
John Beppu
395b216a2e
du is done
1999-12-09 18:37:56 +00:00
John Beppu
7a98606d85
Modified to include du
1999-12-09 18:29:29 +00:00
John Beppu
0f5e1ab949
This is my preliminary
...
du implementation. It
was written from scratch
(doesn't use recursiveAction).
I still need to flesh out
du_main().
1999-12-09 18:23:54 +00:00
Eric Andersen
f0758dd6ba
* Fixed rebooting from init. I'd left some debugging code in
...
which blocked reboots. Oops.
-Erik
1999-12-09 07:57:58 +00:00
Eric Andersen
1792f8c489
Tail now works (costs 6k). Several other updates.
...
-Erik
1999-12-09 06:11:36 +00:00
Eric Andersen
c24db7b591
Added an empty line for no reason.
...
-Erik
1999-12-09 01:29:12 +00:00
Eric Andersen
8cd6a1f9a2
Fixed spelling error
...
-Erik
1999-12-09 01:26:38 +00:00
Eric Andersen
48091fb3d3
* my_getid was leaking file descriptors, causing 'ls -l' on long
...
directories to fail
-Erik
1999-12-09 01:15:52 +00:00
Eric Andersen
abc0f4f8f9
Latest and greatest
1999-12-08 23:19:36 +00:00
Eric Andersen
2285f367e2
Stuf
1999-12-08 04:23:30 +00:00
Eric Andersen
fcdb57a0fc
Fixes
1999-12-08 04:13:59 +00:00
Eric Andersen
d29edf34d6
Stuf
1999-12-08 04:13:44 +00:00
Eric Andersen
485b9550fd
Stuf
1999-12-07 23:14:59 +00:00
Eric Andersen
d00c262847
Stuf
1999-12-07 08:37:31 +00:00
Eric Andersen
0ecb54a0f3
Stuf
1999-12-05 23:24:55 +00:00
Eric Andersen
14ec6cf3c2
syslogd and klogd work now.
...
-Erik
1999-12-05 22:17:02 +00:00
Eric Andersen
de1d61268e
Fixes
1999-12-03 15:14:25 +00:00
Eric Andersen
b186d980d6
Stuf
1999-12-03 09:19:54 +00:00
Eric Andersen
77619b9dda
Sqtuf
1999-11-29 04:31:50 +00:00
Eric Andersen
bb58702833
Fix up changelog
1999-11-29 04:30:12 +00:00
Eric Andersen
03018f7551
Fixed tar so uid/gud/permissions on extracted tarballs will be correct.
...
-Erik
1999-11-29 04:29:13 +00:00
Eric Andersen
1667fb4b63
Fixes
1999-11-27 20:34:28 +00:00
Eric Andersen
c054b21f7d
Stuf
1999-11-27 17:41:29 +00:00
Eric Andersen
4c78147755
Changes
1999-11-26 08:12:56 +00:00
Eric Andersen
ec33d45e89
Stuf
1999-11-26 01:51:02 +00:00
Eric Andersen
befda6e4ed
Stuf
1999-11-25 08:06:22 +00:00
Eric Andersen
3843e96252
Stuf
1999-11-25 07:30:46 +00:00
Eric Andersen
b99df0fd65
First draft
1999-11-24 09:04:33 +00:00
Eric Andersen
394f764e7d
Stuf
1999-11-23 21:38:12 +00:00
Eric Andersen
cb41c2e83b
Bug fixes
1999-11-22 07:41:00 +00:00
Eric Andersen
5d44d1fda5
Stuf
1999-11-22 06:01:01 +00:00
Eric Andersen
0f4c0848c7
Fix bugs
1999-11-22 05:57:09 +00:00
Eric Andersen
0727458a97
Stuf
1999-11-21 21:50:07 +00:00
Eric Andersen
fa213cd71e
Latest n greatest
1999-11-19 06:24:35 +00:00
Eric Andersen
e1850ddde4
Stuf
1999-11-19 05:42:32 +00:00
Eric Andersen
6a76e652aa
Stuf
1999-11-19 05:31:45 +00:00
Eric Andersen
08b1034f4f
Stuf
1999-11-19 02:38:58 +00:00
Eric Andersen
ab746abfc0
Stuf
1999-11-18 20:33:45 +00:00
Eric Andersen
1c43d0c5af
Stuff
1999-11-18 07:58:07 +00:00
Eric Andersen
b052b47722
Forgot this.
1999-11-18 00:21:59 +00:00
Eric Andersen
ded6259f62
Latest and greatest
1999-11-18 00:19:26 +00:00
Eric Andersen
d80e851dc0
Stuf
1999-11-16 00:46:00 +00:00
Eric Andersen
a9c95ea655
Updates
1999-11-15 17:33:30 +00:00
Eric Andersen
80974fad03
Fix makefile
1999-11-13 04:51:47 +00:00
Eric Andersen
b6a44b8d39
updates for the day
1999-11-13 04:47:09 +00:00
Eric Andersen
eded54bd96
Adjust install a bit...
1999-11-12 08:03:23 +00:00
Eric Andersen
96bcfd346b
Latest and greatest
...
-Erik
1999-11-12 01:30:18 +00:00
Eric Andersen
0dfac6b9ce
Stuff
1999-11-11 05:46:32 +00:00
Eric Andersen
c296b54827
Stuf
1999-11-11 01:36:55 +00:00
Eric Andersen
d73dc5b073
Updates to usage, and made tar work.
...
-Erik
1999-11-10 23:13:02 +00:00
Eric Andersen
84d8568071
spelling fixes
1999-11-10 20:17:47 +00:00
Eric Andersen
5556c1874b
Maybe works now...
...
-Erik
1999-11-10 19:27:58 +00:00
Eric Andersen
3e2bb288da
Stuf
1999-11-09 03:12:29 +00:00
Eric Andersen
add0158554
LAtest and greatest
1999-11-09 03:10:26 +00:00
Eric Andersen
3d8dbe1ca0
Stuf
1999-11-09 01:51:02 +00:00
Eric Andersen
50d6360771
Stuff
1999-11-09 01:47:36 +00:00
Eric Andersen
fbb39c83b6
Stuff
...
-Erik
1999-11-08 17:00:52 +00:00
Eric Andersen
07e5297ca7
init and ls -l fixes
1999-11-07 07:38:08 +00:00
Eric Andersen
dc6301e7ca
Stuf
1999-11-06 07:34:50 +00:00
Eric Andersen
350577c5a0
Minor stuf
1999-11-06 06:34:20 +00:00
Eric Andersen
29d2e362de
Fixed ln, df, and removed redundant stuff from mtab.
1999-11-06 06:07:27 +00:00
Eric Andersen
bc34190694
Forgot this file...
1999-11-06 04:56:00 +00:00
Eric Andersen
f14937d177
Update
1999-11-06 03:02:42 +00:00
Eric Andersen
e18c75a563
Fixed init so it won't hang on reboot...
1999-11-05 04:23:05 +00:00
Eric Andersen
9997685953
Changelog fix
1999-11-05 01:21:49 +00:00
Eric Andersen
cf8c9cf7b9
More stuff -- ready for release.
...
-Erik
1999-11-05 00:31:46 +00:00
Eric Andersen
d0246fb72b
More stuff.
1999-11-04 21:18:07 +00:00
Eric Andersen
3ae0c78962
Stuf
1999-11-04 01:13:21 +00:00
Eric Andersen
be971d6b69
More init fixes. Fixed sync segfault.
...
-Erik
1999-11-03 16:52:50 +00:00
Eric Andersen
219d6f5e0c
Stuf
1999-11-02 19:43:01 +00:00
Eric Andersen
2f6c04f63c
Ha! Got init working.
...
-Erik
1999-11-01 23:59:44 +00:00
Eric Andersen
ff719d663e
Stuf
1999-10-29 23:36:31 +00:00
Eric Andersen
04579780b7
Fixed it.
1999-10-29 23:12:50 +00:00
Eric Andersen
7f1acfdb89
More stuf. sed works.
1999-10-29 23:09:13 +00:00
Eric Andersen
24d8e7d787
Stuf
1999-10-29 06:50:17 +00:00
Eric Andersen
c1525e84dd
Stuff
1999-10-29 00:07:31 +00:00
Eric Andersen
6b6b3f6ef2
Stuf
1999-10-28 16:06:25 +00:00
Eric Andersen
c7c41d306b
Cleanup of init
1999-10-28 00:24:35 +00:00
Eric Andersen
a745606df3
Stuf
1999-10-27 02:31:32 +00:00
Eric Andersen
c8fdb56389
Stuf
1999-10-26 05:21:02 +00:00
Eric Andersen
8a8fbb87f7
Foo
1999-10-26 00:18:56 +00:00
Eric Andersen
0460ff2e5d
Stuf
1999-10-25 23:32:44 +00:00
Eric Andersen
d143e8f2bd
Stuf
1999-10-23 07:09:58 +00:00
Eric Andersen
a709317cea
More stuff
1999-10-23 05:42:08 +00:00
Eric Andersen
a07f0b0408
More stuff.
1999-10-22 19:49:09 +00:00
Eric Andersen
9922c833ca
Removed cruft
1999-10-22 18:22:02 +00:00
Eric Andersen
fa0540fb09
Make mkdir -m work
1999-10-22 18:18:31 +00:00
Eric Andersen
8eefd021ca
Fixed version number
1999-10-22 05:18:28 +00:00
Eric Andersen
51f8c89040
Stuf
1999-10-22 05:14:44 +00:00
Eric Andersen
63a0e530bd
Cosmetic adjustments.
1999-10-22 05:12:14 +00:00
Eric Andersen
aa0765e11b
Added regexp support, fixed Changelog.
1999-10-22 04:30:20 +00:00
Eric Andersen
c49960189a
Fixed up copyright notices and such
1999-10-20 22:08:37 +00:00
Eric Andersen
887991c78a
Fixed
1999-10-20 20:09:47 +00:00
Eric Andersen
d23f9ba0f6
Made ps work. Fixed some stuff.
1999-10-20 19:18:15 +00:00
Eric Andersen
ef8b6c757d
Add a trivial ps command.
1999-10-20 08:05:35 +00:00
Eric Andersen
ce8f3b9933
Fixed chmod and friends.
1999-10-20 07:03:36 +00:00
Eric Andersen
b9b421c186
Stuf
1999-10-19 23:41:03 +00:00
Eric Andersen
b7a1a75261
*** empty log message ***
1999-10-19 23:37:14 +00:00
Eric Andersen
f8d650c4e5
More stuff
1999-10-19 23:27:54 +00:00
Eric Andersen
f5a3838e2f
More stuff
1999-10-19 22:26:25 +00:00
Eric Andersen
e674eb78e4
Made em work.
1999-10-19 20:52:57 +00:00
Eric Andersen
e494fdd2c7
More stuff
1999-10-19 20:23:03 +00:00
Eric Andersen
e77ae3a2c0
Added sfdisk. Ststic-ified a bunch of stuff.
1999-10-19 20:03:34 +00:00
Eric Andersen
a3f09076ef
More stuff
1999-10-19 16:39:10 +00:00
Eric Andersen
3e0fbae15e
fixes grep, added loadfont from debian bootfloppies.
...
-Erik
1999-10-19 06:02:44 +00:00
Eric Andersen
abc7d597cb
More stuff
1999-10-19 00:27:50 +00:00
Eric Andersen
b0e9a709ba
More stuff.
...
-Erik
1999-10-18 22:28:26 +00:00
Eric Andersen
703c62da63
More stuff
1999-10-18 21:31:00 +00:00
Eric Andersen
8759006b55
More fixes
1999-10-18 21:22:59 +00:00
Eric Andersen
7f04b5e320
Fixed include
1999-10-18 20:41:33 +00:00
Eric Andersen
bed30e9700
More fixes
1999-10-18 19:02:32 +00:00
Eric Andersen
9b58718889
Some fixes and such
1999-10-17 05:43:39 +00:00
Eric Andersen
cb6e25655f
More stuff
1999-10-16 15:48:40 +00:00
Eric Andersen
3c163822d8
Fixed cp -[aR] and some other stuf.
1999-10-14 22:16:57 +00:00
Eric Andersen
2c1030177e
More stuff
1999-10-13 22:56:11 +00:00
Eric Andersen
f6be944a6a
More stuff
1999-10-13 21:12:06 +00:00
Eric Andersen
305a73f5ea
Combined stuff
1999-10-13 19:03:24 +00:00
Eric Andersen
1b61f41f57
More stuff
1999-10-13 18:56:42 +00:00
Eric Andersen
21943ce641
More fixes
1999-10-13 18:04:51 +00:00
Eric Andersen
c6cb79dedf
More stuff
1999-10-13 18:01:10 +00:00
Eric Andersen
5de3065f58
Fixed dd
1999-10-13 00:53:55 +00:00
Eric Andersen
3cf52d1958
More stuff...
1999-10-12 22:26:06 +00:00
Eric Andersen
2ce1edcf54
Latest and greatest.
...
-Erik
1999-10-12 15:42:48 +00:00
Eric Andersen
f811e07b07
More stuff.
1999-10-09 00:25:00 +00:00
Eric Andersen
8341a15653
Finally mount works properly. Made debugging work (no more -s ld flag
...
when debugging is on).
1999-10-08 17:14:14 +00:00
Eric Andersen
596e5469d0
more stuff
1999-10-07 08:30:23 +00:00
Eric Andersen
5c3199e0a5
Made df work
1999-10-06 22:06:29 +00:00
Eric Andersen
17d49efd8c
More stuff.
1999-10-06 20:25:32 +00:00
Eric Andersen
9d3aba7b37
more stuff
1999-10-06 09:04:55 +00:00
Eric Andersen
b09c6b5d4a
Forgot this file.
1999-10-06 05:21:54 +00:00
Eric Andersen
4bea32abb5
latest and greatest.
1999-10-06 00:30:51 +00:00
Eric Andersen
2b69c40e80
More stuff works.
...
-Erik
1999-10-05 22:58:32 +00:00