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
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
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
Matt Kraai
cabafae7b0
Note new dependency.
2000-11-30 04:55:40 +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
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
Eric Andersen
e790ddb2e1
Add BB_CMP to xfopen
2000-11-17 06:50:42 +00:00
Eric Andersen
ef936da7c5
Fix uname problem that was breaking poweroff.
2000-10-30 17:22:04 +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
324a778f31
Added a fatalPerror function to simplify error handling.
2000-10-25 15:10:08 +00:00
Matt Kraai
4f94e826cf
Remove broken error test found by Bryan Rittmeyer <bryan@ixiacom.com>.
2000-10-16 16:22:27 +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
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
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
Eric Andersen
944be90b21
Remove a now unneeded check
2000-09-25 16:58:39 +00:00
Eric Andersen
285b446d17
Fix potential memory overrun...
2000-09-23 19:56:46 +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
31e6829bd8
Fix the halt/reboot/poweroff segfault when used from within an initrd...
...
-Erik
2000-09-14 21:12:20 +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
ac19b7e032
Extra defines for ar
2000-09-11 05:06:13 +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
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
4e61db2284
Add an extra sanity check in parse_mode
...
-Erik
2000-09-01 00:06:17 +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
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
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
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
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
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
ae6eae02dd
Moved some code and add a coupld #defines to support use of dmalloc.
...
-Erik
2000-07-19 17:35:54 +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
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
fad04fdd12
More cleanups.
...
-Erik
2000-07-14 06:49:52 +00:00
Matt Kraai
d537a95fdb
Use errorMsg rather than fprintf.
2000-07-14 01:51:25 +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
Matt Kraai
be84cd4ef6
Always report the applet name when doing error reporting.
2000-07-12 17:02:35 +00:00
Eric Andersen
be909b1cd5
Forgot to commit these cleanups it seems.
...
-Erik
2000-07-11 17:52:22 +00:00