Glenn L McGrath
e64bf409dd
Patch from David Meggy to make the swap default to the new version if no
...
version is specified and the kernel is relatively new.
2003-10-31 02:04:18 +00:00
Eric Andersen
88c916bdec
Andreas Mohr writes:
...
the busybox menuconfig triggered my "inacceptable number of spelling mistakes"
upper level, so I decided to make a patch ;-)
I also improved some wording to describe some things in a better way.
Many thanks for an incredible piece of software!
Andreas Mohr, random OSS developer
2003-10-22 09:58:56 +00:00
Glenn L McGrath
a55d72bbb4
Patch from Steven Scholz, fix some warnings
2003-10-09 11:38:45 +00:00
Eric Andersen
8efe967018
Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)
...
to ensure proper fallback behavior on, i.e. serial consoles.
-Erik
2003-09-15 08:33:45 +00:00
Eric Andersen
c4f72d1426
fix function prototype
2003-09-15 08:13:43 +00:00
Eric Andersen
45638df230
Needs prototype for close()
2003-09-15 08:12:53 +00:00
Eric Andersen
7f2935ba0e
Remove final \n
2003-09-12 08:32:24 +00:00
Eric Andersen
e15138a870
Teach rdate to timeout in 10 seconds to avoid blocking forever
...
with odd or broken networking setups
2003-09-12 05:50:51 +00:00
Glenn L McGrath
21aacba2b7
Logic error, patch by Matteo Croce
2003-08-29 15:39:07 +00:00
Robert Griebl
444566837c
Removed some debug printfs
2003-08-26 11:06:39 +00:00
Eric Andersen
99a75d1376
Patch from Kent Robotti to being fdisk in sync with v2.12 final.
2003-08-08 20:04:56 +00:00
Eric Andersen
d3652bf334
Patch from vodz:
...
I wrote:
>>I think, fdisk have special ext2lseek special for:
>>disk can have size > 4Gb, but all any partitions have < 4Gb and lseek64
>>not require.
>>May be best create new configure option for set DOLFS for fdisk applet
>>if global DOLFS unset?
>
Erik Andersen wrote:
>Agreed. Using an extra configure option when ! DOLFS
>would be a good idea.
Ok. Patch attached.
2003-08-06 09:07:37 +00:00
Eric Andersen
c774efe317
extern inline is a bad bad thing. kill it (so mkfs_minix.c will
...
actually compile)
2003-08-06 07:34:19 +00:00
Eric Andersen
25f95dee2d
Lars Ekman writes:
...
When using "losetup" the device is always setup as Read-Only.
(I have only tested with the -o flag, but looking at the code the
problem seems general)
The problem is the "opt" variable in "losetup.c" that is reused in
the "set_loop()" call. Clear it before the call and everything is OK;
opt = 0; /* <-------- added line */
if (delete)
return del_loop (argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE;
else
return set_loop (argv[optind], argv[optind + 1], offset, &opt)
? EXIT_FAILURE : EXIT_SUCCESS;
}
Best Regards,
Lars Ekman
2003-07-30 08:55:59 +00:00
Eric Andersen
040f440262
last_patch100 from vidz updating fdisk to 2.12pre
2003-07-30 08:40:37 +00:00
Eric Andersen
eef2317b9f
Ronny L Nilsson writes:
...
If BusyBox was compiled with -DCONFIG_FEATURE_CLEAN_UP dmesg command
segfaults if invoked with the "-n" option. (Due to a free() of an
uninitialized pointer).
2003-07-30 06:52:33 +00:00
Eric Andersen
727f529211
There should be only one instance of CONFIG_FEATURE_AUTOWIDTH
2003-07-26 09:33:16 +00:00
Eric Andersen
f231c72630
Don't depend on CONFIG_LFS. It is really a suggestion, not a requirement,
...
since fdisk will work just fine on smaller disks w/o it.
2003-07-26 00:45:52 +00:00
Eric Andersen
85e5e72bc1
Remove remaining libc5 support code
2003-07-22 08:56:55 +00:00
Eric Andersen
725db196c3
Very minor rdate updates
2003-07-22 08:26:05 +00:00
Eric Andersen
d9fe958921
Error out early if people try to build mount with nfs support
...
using uClibc, but have not enabled UCLIBC_HAS_RPC...
-Erik
2003-07-22 08:25:37 +00:00
Eric Andersen
cb81e6484d
Update a bunch of docs. Run a script to update my email addr.
2003-07-14 21:21:08 +00:00
Eric Andersen
1eceb127bd
Use standard types
2003-07-14 19:32:40 +00:00
Eric Andersen
96916b7f41
Require that LFS is enabled to get fdisk
2003-07-14 19:08:04 +00:00
Eric Andersen
341170b012
Remove all the llseek junk and just use regular old lseek. When DOLFS is
...
enabled, regular lseek is transparently promoted to lseek64 anyways, rendering
the llseek stuff pointless.
-Erik
2003-07-14 19:03:14 +00:00
Eric Andersen
01c3d40f3c
Add the fdformat utility, based on a patch from Kent Robotti,
...
but I then completely reworked the fdformat utility to comply
with the current busybox way of doing things.
2003-07-05 07:51:31 +00:00
Eric Andersen
c48d49ad98
Patch from Kent Robotti updating fdisk to version v2.11z
2003-07-03 10:02:32 +00:00
Eric Andersen
e5920a2dc0
Patch from Kent Robotti adding a bunch of menuconfig help
2003-07-03 10:00:15 +00:00
Eric Andersen
9d7f0f0fe8
Somewhere in the 2.4.x kernel series, /proc/mounts was changed to display a
...
"rootfs" entry as well as the traditional "/dev/root" entry. This caused
applets such as mount and df to display two root filesystem entries....
This teaches the relevant utilities to ignore the "rootfs" entry.
-Erik
2003-06-20 09:36:49 +00:00
Glenn L McGrath
8c6887c855
Use xopen instead of xfopen
2003-05-08 13:09:28 +00:00
Manuel Novoa III
cad5364599
Major coreutils update.
2003-03-19 09:13:01 +00:00
Eric Andersen
77831c11d1
be more careful about cleaning up
2003-03-07 18:09:06 +00:00
Eric Andersen
3719e9e790
Scrub things a bit, shave off a few bytes.
...
-Erik
2003-03-07 18:03:02 +00:00
Eric Andersen
1bc5fa8c0c
Save a few bytes and remove a redundant string
2003-03-07 17:59:32 +00:00
Eric Andersen
2afcbe436f
audit for proper error handling, apply a few size optimizations
...
-Erik
2003-03-07 17:33:40 +00:00
Eric Andersen
5ef448285b
There is no good reason to prevent nfs mounts from being mounted
...
during 'mount -a'. If the user wants to do that, hey, its their
lifs. If the nfs server is down and they don't want to wait for
nfs to time out, that is their problem.
-Erik
2003-02-28 06:29:27 +00:00
Eric Andersen
a0ac4523b1
Write all the help text for the util-linux utilities. Allow
...
people to locate the mtab file somewhere other that /etc to
accomodate read only root filesystems.
-Erik
2003-02-27 03:14:04 +00:00
Glenn L McGrath
b4a1baa312
Correct some init issues, update email address, last_patch78 by Vladimir
...
N. Oleynik
2003-01-13 22:09:50 +00:00
Glenn L McGrath
4dcc2ddfcc
fdisk writable feature, allows compilation of a small fdisk that can
...
only read partition table, by Vladimir N. Oleynik
2003-01-04 11:56:06 +00:00
Robert Griebl
7ce75f44ae
> Eliminate dependancy on kernel header files. Naughty naughty.
...
> Using linux kernel headers is a Bad Thing(tm) and should be
> punished.
> -Erik
Doing this wrong should be punished even harder :)
- Robert
2003-01-02 07:16:53 +00:00
Eric Andersen
80ff9449bf
Eliminate dependancy on kernel header files. Naughty naughty.
...
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
-Erik
2002-12-11 04:04:26 +00:00
Eric Andersen
acd244af1c
Eliminate dependancy on kernel header files. Naughty naughty.
...
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
2002-12-11 03:49:33 +00:00
Eric Andersen
8882ea53d5
Eliminate dependancy on kernel header files. Naughty naughty.
...
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
-Erik
2002-12-11 03:41:28 +00:00
Glenn L McGrath
35631a6e00
Fix compile warning with OSF
2002-12-08 11:51:05 +00:00
Eric Andersen
c9f20d9fb9
Yet another major rework of the BusyBox config system, using the considerably
...
modified Kbuild system I put into uClibc. With this, there should be no more
need to modify Rules.mak since I've moved all the interesting options into the
config system. I think I've got everything updated, but you never know, I may
have made some mistakes, so watch closely.
-Erik
2002-12-05 08:41:41 +00:00
Eric Andersen
deca106b6d
Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm not
...
maintaining it anymore, and it is now terribly out of date.
-Erik
2002-12-05 07:24:08 +00:00
Aaron Lehmann
a170e1c858
Change if(x)free(x); to free(x);
2002-11-28 11:27:31 +00:00
Glenn L McGrath
062c74f710
last_patch_68 from Vladimir N. Oleynik
2002-11-27 09:29:49 +00:00
Glenn L McGrath
441e7efc72
fdisk applet by Vladimir N. Oleynik
2002-11-26 22:00:21 +00:00
Eric Andersen
97b141ac69
Test for holes in swapfiles
...
-Erik
2002-11-03 00:25:23 +00:00
Eric Andersen
db1df5ebeb
last_patch64 from vodz:
...
The following usage from original user:
$ ./busybox swapon -a
Have typo problem:
swapon: swapon: Operation not permitted
But regular version:
swapon: /dev/hda5: Operation not permitted
Patch attached, reduced 9 bytes and advanced
exit code also.
2002-10-26 10:27:42 +00:00
Eric Andersen
927c3bdc18
Support setting depth
2002-09-17 08:44:56 +00:00
Eric Andersen
2bec97c076
Some CML1 grammar fixes
...
-Erik
2002-09-01 06:45:55 +00:00
Glenn L McGrath
8042f65398
Run through indent, style
2002-08-23 06:17:46 +00:00
Glenn L McGrath
9fef17dec3
Run through indent, fix comments
2002-08-22 18:41:20 +00:00
Aaron Lehmann
5f8f32a41c
Inline functions with only one reference in mkfs_minix. I don't know
...
why these efforts aren't making the binary smaller.
2002-08-21 13:21:20 +00:00
Aaron Lehmann
6069441bd2
minor fixes for fbset bloat
...
<mjn3> printf("\tgeometry %u %u %u %u %u\n", v->xres, v->yres,
<mjn3> v->xres_virtual, v->yres_virtual, v->bits_per_pixel);
<mjn3> printf("\ttimings %u %u %u %u %u %u %u\n", v->pixclock, v->left_margin,
<mjn3> v->right_margin, v->upper_margin, v->lower_margin, v->hsync_l
<mjn3> en,
<mjn3> v->vsync_len);
<mjn3> printf("\taccel %s\n", (v->accel_flags > 0 ? "true" : "false"));
<mjn3> printf("\trgba %u/%u,%u/%u,%u/%u,%u/%u\n", v->red.length,
<mjn3> v->red.offset, v->green.length, v->green.offset, v->blue.leng
<mjn3> th,
<mjn3> v->blue.offset, v->transp.length, v->transp.offset);
<mjn3> printf("endmode\n\n");
<mjn3> whay have multiple printf calls when one would do?
<mjn3> and this:
<mjn3> static struct cmdoptions_t {
<mjn3> char *name;
<mjn3> unsigned char param_count;
<mjn3> unsigned char code;
<mjn3> } g_cmdoptions[] = {
<mjn3> {
<mjn3> "-fb", 1, CMD_FB}, {
<mjn3> (repeated entries)
<mjn3> why isn't this constant? what about struct packing?
inline the helper functions that are only referenced once.
2002-08-13 04:19:23 +00:00
Robert Griebl
6859d761d3
- updated a few copyright/left file headers
...
- documented most of my 0.61 changes in the ChangeLog
2002-08-05 02:57:12 +00:00
Robert Griebl
d0dd3d31e2
Fix for bug #1255 -- support for mount -t <type>
2002-07-25 14:17:19 +00:00
Robert Griebl
2a4a8d8ffb
Add support for /etc/filesystem when searching for an "auto" filesystem
...
This is bug #1246
2002-07-24 01:41:30 +00:00
Robert Griebl
1cd0445495
Initial checkin of a very primitive hwclock replacement
2002-07-21 16:50:49 +00:00
Robert Griebl
d378c3149c
Applied vodz' patches #49 and #50 (with a small correction in runshell.c)
...
#49 : I found one memory overflow and memory leak in "ln" applet.
Last patch reduced also 54 bytes. ;)
#50 : I found bug in loginutils/Makefile.in.
New patch have also new function to libbb and
aplied this to applets and other cosmetic changes.
2002-07-19 00:05:54 +00:00
Eric Andersen
0b31586c71
A patch from Bart Visscher <magick@linux-fan.com> to add an
...
xconnect helper routine which does:
-address and port resolving
-tries to connect to all resolved addresses until connected
-uses getaddrinfo, so works for IPv6 too
This patch also ports rdate, telnet, and wget to use the new
xconnect function. Thanks Bart!
2002-07-03 11:51:44 +00:00
Aaron Lehmann
69d4178708
Remove advertising clauses in accordance with
...
ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
2002-06-23 22:25:24 +00:00
Eric Andersen
3ece93ba0f
Kill dead email address
...
-Erik
2002-06-22 17:23:45 +00:00
Eric Andersen
8b1aa4d749
Apply last_patch46 from vodz, to fix buffer overflows noted by
...
Gerardo Puga, and to optimize for size a little bit. Thanks vodz
2002-06-22 17:20:50 +00:00
Robert Griebl
aa385d4015
Entries with "noauto" options are ignored correctly when mounting all
...
("mount -a"), but mount fails when these entries are specified explicitly
In these cases the "noauto" option has to be simply ignored.
2002-05-14 22:56:29 +00:00
Eric Andersen
defd998c42
Patch from Kevin Hilman <khilman@equator.com> to fix potential
...
memory corruption from long pathnames in /etc/fstab.
2002-04-13 13:47:39 +00:00
Eric Andersen
1d1d2f9b18
Update some missing copyright notices
2002-04-13 08:31:59 +00:00
Eric Andersen
85208e2ab9
Completely rework the config system so that it no longer annoys me to work on
...
the busybox development tree. This eliminates the use of recursive make, and
once again allows us to run 'make' in a subdirectory with the expected result.
And things are now much faster too. Greatly improved IMHO...
-Erik
2002-04-12 12:05:57 +00:00
Eric Andersen
fcffa2cc1a
Apply lash_patch35 from vodz, which brings several nice size_optimizations.
2002-04-06 05:17:57 +00:00
Matt Kraai
83788da250
* include/applets.h (CONFIG_LOSETUP): New.
...
* include/usage.h (losetup_trivial_usage, losetup_full_usage): New.
* util-linux/Makefile: Add losetup.o.
* util-linux/config.in: Add losetup prompt.
* util-linux/losetup.c: New.
2002-03-20 17:38:37 +00:00
Matt Kraai
1f0c43668a
Remove == TRUE' tests and convert
!= TRUE' and `== FALSE' tests to use !.
2001-12-20 23:13:26 +00:00
Eric Andersen
6834ee941a
Avoid NULL pointer problems. Patch from "Frank P. MacLachlan"
...
<fpm-plutus@tgs.indyme.com>
2001-12-06 21:33:55 +00:00
Eric Andersen
0ee0a8d539
Fix running more on files in the (broken) procfs that claim 0 length
...
when that isn't actually true.
-Erik
2001-12-06 07:24:29 +00:00
Matt Kraai
c8227639db
Change strdup calls to xstrdup (patch from Steve Merrifield).
2001-11-12 16:57:27 +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
94f19a8385
oops
2001-11-10 11:17:17 +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
Glenn L McGrath
60281118d0
Introduce od and hexdump applets
2001-11-02 11:39:46 +00:00
Eric Andersen
eaecbf33f7
Fixup some silly prototype warnings
2001-10-31 10:41:31 +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
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
Glenn L McGrath
bf265daa47
Use xfopen, saves 32 bytes !
2001-10-05 05:03:14 +00:00
Matt Kraai
c9fc633f9e
Use port 37 by default.
2001-10-01 17:52:14 +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
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
a7cecbc917
Commit Vladimir's simplify_path.
2001-08-10 15:05:27 +00:00
Eric Andersen
8a915880e7
Teach libc5 about realpath
...
-Erik
2001-08-02 09:55:58 +00:00
Matt Kraai
13cb842773
Rework option handling to save space.
2001-07-30 14:43:20 +00:00
Matt Kraai
f9d6aa0a86
Rename dirname variable to pathname to eliminate namespace conflict.
2001-07-26 14:26:53 +00:00
Matt Kraai
439e3df653
Add support for devfs device names.
2001-07-23 14:52:08 +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
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
Glenn L McGrath
78b0e379d7
Vladimir's last_patch_15
2001-06-26 02:06:08 +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
2f6e1f880b
Patch from Gernot Poerner <gp@it-netservice.de>. Adds in
...
mount bind support.
2001-05-21 15:59:34 +00:00
Eric Andersen
2439a59828
Remove/replace the "div" call.
2001-05-16 18:53:34 +00:00
Matt Kraai
c55b8d41c1
Add xgethostbyname and herror_msg* functions.
2001-05-16 15:40:51 +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
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
e6bf66eada
Fix two bugs reported by Ralph Jones.
2001-05-04 14:49:58 +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
Mark Whitley
4b541a8817
Moved some #ifdefs down below #include "busybox.h" where they belong.
2001-04-25 17:10:30 +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
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
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
Matt Kraai
d6cde0bcf4
Fix return code and don't output spurious newlines.
2001-04-12 20:51:01 +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
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
c4cef5ab06
Move the mtab support stuff into libbb
...
-Erik
2001-04-01 16:01:11 +00:00
Glenn L McGrath
1e117b4752
Dont try and automount devfs, rename some variables
2001-03-30 01:28:13 +00:00
Eric Andersen
21af752b04
Patch to use xfopen from Jeff Garzik
2001-03-23 17:09:15 +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
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
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
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
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
Eric Andersen
4aaf89f49f
Silence a silly warning
2001-03-09 22:17:59 +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
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
Glenn L McGrath
323434be42
Dont try to automount some specific filesystem types
2001-03-02 22:21:34 +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
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
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
0ed9923887
Stub out pivot_root so it won't fail to compile.
...
-Erik
2001-02-23 02:31:03 +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
ffc40bf3de
Account for remainder, and reset page_height for each and every page.
2001-02-22 21:49:32 +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
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
f57a832063
Remove leftover junk
2001-02-18 20:11:38 +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
Glenn L McGrath
3f5bcbfa3c
Fix warning for implicit declaration of time()
2001-02-16 10:33: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
6fd8c664c1
Apply a patch from Evin Robertson -- new pivot_root applet.
...
-Erik
2001-02-13 20:04:30 +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
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
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
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
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
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
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
5c9c8b4b26
Make cin be static
2001-01-26 06:50:46 +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
6f65a3a7e8
More printf cleanups
2001-01-20 01:10:07 +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
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
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
a9819b2908
Use busybox error handling functions wherever possible.
2000-12-22 01:48:07 +00:00
Eric Andersen
16fdbe8b27
Make more things be static (like they are supposed to be).
2000-12-20 23:40: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
Eric Andersen
77508b29fa
Fix from Gennady Feldman for error msg
2000-12-12 23:51:43 +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
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
afdde3e356
Some little cleanups from Larry Doolittle
2000-12-09 16:41:42 +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
92ed8a3519
Fix exit status on failure.
2000-12-06 15:55:23 +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
63a862272c
Cleanup of duplicated symbols -- found by compiling with
...
LDFLAGS += -Wl,-warn-common
2000-11-07 06:52:13 +00:00
Eric Andersen
ef936da7c5
Fix uname problem that was breaking poweroff.
2000-10-30 17:22:04 +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
Eric Andersen
d1ee7e39f7
Silence a warning,
2000-10-26 07:57: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
bbaef66b3f
Consolidate handling of some fopen failures.
2000-09-27 02:43:35 +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
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
8a2e56c5df
Large file >2Gib support.
2000-09-21 02:23:30 +00:00
Eric Andersen
8847b9a03a
Remove a warning. Patch from Bryan Rittmeyer <bryan@ixiacom.com>
2000-09-21 01:33:05 +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
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
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
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
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
6ab22027d0
Oops. Forgot to commit rdate.c.
...
-Erik
2000-08-21 23:04:00 +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
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +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
Eric Andersen
b040d4f3da
Use BB_FEATURE_CLEAN_UP where appropriate
...
-Erik
2000-07-25 18:01:20 +00:00
Matt Kraai
27a804246a
Centralize handling of --help.
2000-07-19 19:24:01 +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
Eric Andersen
add09fd558
Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>
...
-Erik
2000-07-14 18:39:08 +00:00
Pavel Roskin
f626dcbc84
More fixes for "missing initializers"
2000-07-14 15:55:41 +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
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
Eric Andersen
be909b1cd5
Forgot to commit these cleanups it seems.
...
-Erik
2000-07-11 17:52:22 +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
Eric Andersen
c674d70699
Comment on kernel stuff
...
-Erik
2000-07-10 22:57:14 +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
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
03f4c27bd6
Turned some stuff into features that really are features, not apps.
...
-Erik
2000-07-06 23:10:29 +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
b1e379f7f3
Remove some warning with glibc.
...
-Erik
2000-07-06 17:08:38 +00:00
Eric Andersen
1e03add675
a few minor cleanups.
...
-Erik
2000-07-06 09:56:35 +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
2086e3d679
Some cosmetic updates. Changed "OPTIONS" to "Options".
...
-Erik
2000-07-04 22:17:01 +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
Mark Whitley
4fa84e6b54
Cleaned up some #ifdef spiderwebs.
2000-06-21 22:53:16 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
4f3f757d56
Latest and greatest. Some effort at libc5 (aiming towards newlib)
...
compatability.
-Erik
2000-04-28 00:18:56 +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
a6c752201e
Updates
...
-Erik
2000-04-18 00:00:52 +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
Erik Andersen
61677feff7
Upates to include copyright 2000 to everything
...
-Erik
2000-04-13 01:18:56 +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