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