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
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
Eric Andersen
544891dd26
Add in kent robotti's updated dos2unix.c
2001-02-22 23:37:30 +00:00
Eric Andersen
7aa1f5c42a
Make md5sum not display filename when reading stdin
...
-Erik
2001-02-22 04:59:16 +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
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
963791a9e9
Another patch from Vladimir to eliminate obsolete junk.
2001-02-18 20:13:18 +00:00
Eric Andersen
b50da53e0c
Get rid of long stale usage message code.
...
-Erik
2001-02-17 16:52:35 +00:00
Glenn L McGrath
a9c69762ba
Fix compile error, sync() always returns 0 anyway.
2001-02-16 10:21:35 +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
81bcc92c32
Fixed 'ls -s' so it actually displays block sizes again.
...
-Erik
2001-02-15 18:59:02 +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
98e599ca06
Commit Vladimir's latest version of stty.c. Nice work.
...
-Erik
2001-02-14 18:47:33 +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
9b300d0b1f
Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.
2001-02-01 19:39:43 +00:00
Matt Kraai
dd19c69904
Removed trailing \n from error_msg{,_and_die} messages.
2001-01-31 19:00:21 +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
30f64c3aa2
Fix a stupid typo -- bug found by Larry Doolittle.
2001-01-30 19:23:46 +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
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
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
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
5307eca7de
Make ls understand termios.
...
-Erik
2001-01-26 01:52:43 +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
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
f5d5e77321
more bugs fixed -- found doing regression testing
...
-Erik
2001-01-24 23:34:48 +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
59ab025363
#define -> static const int. Also got rid of some big static buffers.
2001-01-23 22:30:04 +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
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
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
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
Matt Kraai
e6e818309e
Improvements from Vladimir N. Oleynik.
2000-12-30 07:46:23 +00:00
Matt Kraai
a9819b2908
Use busybox error handling functions wherever possible.
2000-12-22 01:48:07 +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
Matt Kraai
5e8c0ffb75
Rewrote.
2000-12-20 20:49:56 +00:00
Matt Kraai
24ac017961
Rewrote dd.
2000-12-18 21:38:57 +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
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
483262f633
Patch from Matt Kraai to fix 'dirname /'
2000-12-12 23:27:48 +00:00
Eric Andersen
b12e506d8d
du.c error msg cleanup from Kent Robotti
2000-12-12 23:17:26 +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
9df3833370
Fix problem where 'du file_that_exists' doesn't work.
2000-12-09 17:07:12 +00:00
Eric Andersen
5b5db38a7d
Patch from Matt Kraai to implement uniq -[cdu]
2000-12-09 16:37:53 +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
87afb526b5
Get rid of redundant TRUE and FALSE definitions.
2000-12-07 16:11:50 +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
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
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
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
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
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
Matt Kraai
9a71af54f5
Fix behavior when removal fails.
2000-11-22 01:09:38 +00:00
Matt Kraai
e93abf9e69
Fixed user and group name listing.
2000-11-18 01:08:24 +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
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
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
3e07541e5f
This was redundant
2000-10-29 07:02:47 +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
Matt Kraai
e8c55f42c1
Fixed error handling and TRUE/FALSE usage.
2000-10-25 19:09:03 +00:00
Matt Kraai
ac1169b20f
Cleaned up error handling and uses of TRUE/FALSE.
2000-10-25 16:38:00 +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
Matt Kraai
207061ac0d
Fix error messages.
2000-10-23 18:03:46 +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
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
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
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
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
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Matt Kraai
90f580ad5b
Start the great EXIT_{SUCCESS,FAILURE} migration.
2000-09-22 03:45:34 +00:00
Matt Kraai
a2f2a8f8c0
Add support for the -L option to ls.
2000-09-22 03:11:47 +00:00
Eric Andersen
d1de4a16ad
Handle 'cat -'
2000-09-21 02:39:50 +00:00
Eric Andersen
8a2e56c5df
Large file >2Gib support.
2000-09-21 02:23:30 +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
Glenn L McGrath
56a328810b
Fix looping bug, use fullRead
2000-09-13 23:08:07 +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
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
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
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
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
1638488d26
Rewritten by mistake.
2000-08-28 03:53:27 +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
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
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
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +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
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
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
616d13bcd1
Fixed to pass -Wundef
2000-07-28 19:38:27 +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
6150df320a
Some cleanups, based on a patch from Ken Chalmers
...
-Erik
2000-07-28 16:22:51 +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
cc10a5b42b
Fix some bitrot.
...
-Erik
2000-07-26 00:52:04 +00:00
Eric Andersen
b040d4f3da
Use BB_FEATURE_CLEAN_UP where appropriate
...
-Erik
2000-07-25 18:01:20 +00:00
Pavel Roskin
e99f7500e0
chroot can now call the builtin shell
2000-07-24 20:15:30 +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
2f46b664b7
Add usage messages for applets without them.
2000-07-19 18:01:00 +00:00
Eric Andersen
a16c66335e
Use FatalError()
...
-Erik
2000-07-19 17:36:27 +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
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
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
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
Matt Kraai
d537a95fdb
Use errorMsg rather than fprintf.
2000-07-14 01:51:25 +00:00
Eric Andersen
156959ea93
Fix uninitialized variable.
...
-Erik
2000-07-13 19:49:12 +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
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
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
c674d70699
Comment on kernel stuff
...
-Erik
2000-07-10 22:57:14 +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
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
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
bd22ed8067
Update files to reduce dependance on kernel version...
...
-Erik
2000-07-08 18:55:24 +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
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
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
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
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
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
Eric Andersen
b7362e36a8
printf now compiles cleanly under both libc5 and libc6.
...
-Erik
2000-06-19 17:52:17 +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
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
Pavel Roskin
2e965239ee
ln: fixed command line parser. Added support for "--"
2000-06-15 18:04:40 +00:00
Pavel Roskin
e97da40079
Fixed "rm foo" that had been broken while implementing "rm -- foo"
2000-06-14 17:39:41 +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
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
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
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
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
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
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
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
73c8c9cf9a
More doc updates
...
-Erik
2000-05-13 05:36:13 +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
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
Erik Andersen
5afc864422
More stuff
...
-Erik
2000-05-02 00:07:56 +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
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
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
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
4f3f757d56
Latest and greatest. Some effort at libc5 (aiming towards newlib)
...
compatability.
-Erik
2000-04-28 00:18:56 +00:00
Erik Andersen
1d1d95051a
More Doc updates. cmdedit and more termio fixes.
2000-04-21 01:26:49 +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
Erik Andersen
26702fe191
Bugfixes.
...
-Erik
2000-04-17 16:44:46 +00:00