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