Robert Griebl
6bb80870b8
Some corrections from vodz:
...
- Make -u/-l mutually exclusive
- Minor size reduction
2004-03-22 21:27:39 +00:00
Robert Griebl
c8685ead57
The utc variable was not modified according to the -u/-l command line
...
parameters.
2004-03-21 18:01:46 +00:00
Eric Andersen
c7bda1ce65
Remove trailing whitespace. Update copyright to include 2004.
2004-03-15 08:29:22 +00:00
Glenn L McGrath
b7b3bda3ba
Patch from Thomas Frohlich to fix an option ordering bug of mine.
2004-03-10 10:47:37 +00:00
Glenn L McGrath
15a4f1ee50
Patch from Chris Larson (kergoth), to allow multiple directores to be
...
unmounted at once.
2004-02-22 11:35:13 +00:00
Glenn L McGrath
689e4b9531
Use bb_getopt_ulflags, marginal saving, better argument checking.
2004-02-22 09:11:33 +00:00
Glenn L McGrath
f461e0123d
Use /var/lib/hwclock for adjtime, its really a state file rather than a
...
config file, so it should be in /etc, FHS mentions it also.
2004-02-22 08:33:37 +00:00
Eric Andersen
7495b0d4b1
Eliminate use of a kernel scsi header file.
...
Prevent potentially misaligned accesses while indexing a pointer
to the partition table, which would be a bad thing on i.e. arm.
2004-02-06 05:26:58 +00:00
Eric Andersen
d242079387
Fixup use of 'u_int' to instead use 'unsigned int'
2004-01-30 22:56:20 +00:00
Eric Andersen
dfcb5b0412
s/u_int/uint/g
2004-01-30 22:54:20 +00:00
Eric Andersen
39cdf4e2ab
Use proper C99 types
2004-01-30 22:40:05 +00:00
Glenn L McGrath
348672d46d
Patch from Tito, reduce size, merge functions that are only used once.
2004-01-20 12:57:18 +00:00
Eric Andersen
15eb39c25a
Stephane Billiart writes:
...
bb_lookup_port now takes 3 parameters but rdate has not been modified
accordingly and fails to compile in the current CVS version.
The modification below fixes the problem.
Now, RFC868 allows both UDP and TCP implementations of the time protocol
so this may not work if someone defines a udp time service other than 37
but who would do that?
2004-01-18 18:18:33 +00:00
Eric Andersen
5089534be0
match changes made to cmdedit
2003-12-23 20:47:22 +00:00
Glenn L McGrath
ffccf6eb5d
Change interface to bb_lookup_host, dont try and set port inside this
...
function as there is no gracefull way of handling failures.
Rename bb_getport to bb_lookup_port, allow a default port to be
specified so it always returns a correct value.
Modify ftpgetput/rdate/wget to use the new interface.
wget/rdate now use etc/services with a falback default value.
2003-12-20 01:47:18 +00:00
Eric Andersen
89f10bcf37
Patch from Fillod Stephane:
...
* The "rdate.patch" file makes rdate to NOT settimeofday if the date to be
set equals current date. This prevents the system from experiencing nasty time
discontinuities caused by sub-second changes, with a protocol that has only
over second resolution. Depending on your taste, the "fprintf(stderr..." may be
removed.
2003-12-19 11:29:29 +00:00
Eric Andersen
07d2f4052f
vodz noticed we need to cast things back to an unsigned long
...
or the syscall will not get the proper arguments.
2003-12-19 10:34:36 +00:00
Eric Andersen
d4f7a5edad
Be certain we use a correct entity when performing the
...
BLKGETSIZE64 ioctl -- don't just assume 8,
2003-12-12 19:05:15 +00:00
Eric Andersen
c1893c5801
Doh! I broke automatic filesystem type guessing. Fix mount so
...
it will properly fall back to /proc/mounts when /etc/filesystems
is missing, allowing mount to guess the correct fs type when a
fs type is not explicitly specified.
-Erik
2003-12-12 07:01:14 +00:00
Eric Andersen
d5c746f3a8
Fix indenting.
...
Fix a bug noticed by Pete Flugstad. Make certain we close what we open, and
don't try to close invalid files when /etc/filesystems exists and is used.
2003-12-09 23:50:24 +00:00
Eric Andersen
50547c0745
Do not use the _syscall5 macro -- use syscall(2) instead
2003-12-04 07:07:14 +00:00
Eric Andersen
5f28455c6e
Oskar Liljeblad writes:
...
Here's a fix for the hard-coded device name in fbset.
2003-11-14 03:11:29 +00:00
Eric Andersen
e0c83af4ce
Marc Kleine-Budde noticed a missing semicolon
2003-11-14 02:40:08 +00:00
Eric Andersen
04d055f4e1
Fix rdate and ftpget/ftpput so they compile with the new xconnect.
...
I have checked rdate. Someone should also check ftpget/ftpput to
be sure they still work.
2003-11-03 21:20:18 +00:00
Eric Andersen
f6067beaa9
Avoid conflicts with the 2.6 kernel headers, which define
...
_IOR rather differently, thereby breaking the BLKGETSIZE64
ioctl.
-Erik
2003-11-03 08:59:51 +00:00
Eric Andersen
e6dc439b3a
Rework wget, the xconnect interface, and its various clients
...
in order to fix the problems with round robin DNS reported
by Andrew Flegg:
http://busybox.net/lists/busybox/2003-October/009579.html
This removes the ipv6 specific xconnect dns lookups. I do
not see why that would need to be special cased for ipv6 as
was done, but that will just have to be tested.
So IPV6 people -- please test this change!
-Erik
2003-10-31 09:31:46 +00:00
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