Eric Andersen
7a6a77362b
Update webpage and changelog for release
2003-07-30 09:33:54 +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
08804ceaf1
Do not require that the signal number be specified
2003-07-30 08:29:56 +00:00
Eric Andersen
76097edc0e
Eric Spakman writes:
...
The recent changes in ifupdown where all calls to 'ip link set' and
'ip addr set' are swapped give some problems with v4tunnels.
For plain ipv4 and ipv6 interfaces it works correct, other methods
not tried. The patch below change the behaviour back for v4tunnels
only.
Without the patch the following errors are shown:
RTNETLINK answers: Network is down
RTNETLINK answers: No route to host
and the tunnel is not fully brought up
With this patch all works as expected.
2003-07-30 08:22:53 +00:00
Eric Andersen
3124a9ecee
Vladimir N. Oleynik writes:
...
This moment have algoritmicaly problem, not overflow:
strcat(wrapped, wrapped) - may be looped.
Hand patch:
- else if (strstr(strcat(wrapped, wrapped), newmono))
+ else {
+ safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
+ if (strstr(wrapped, newmono))
+}
--w
vodz
2003-07-30 07:57:06 +00:00
Eric Andersen
b99aec0ba5
Christian Meyer provided this patch to fix more bugs with the tftp client
2003-07-30 07:16:39 +00:00
Eric Andersen
d8ceba959a
Ronny L Nilsson writes:
...
The login process should always timeout if user don't login sucessfully within
reasonable time. Otherwise we're sensetive to a DOS attack by simply doing a
bunch of simultaneous telnet connections (deploys all availible TTY's).
This patch make login.c terminate the connection after "TIMEOUT" seconds.
2003-07-30 06:56:07 +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
eac20451d2
Set libbb dead last in the link order
2003-07-29 07:45:05 +00:00
Eric Andersen
c663ab0c6b
Match up interfaces
2003-07-29 07:37:39 +00:00
Eric Andersen
ca16204c31
Fixup typo noticed by Nick Fedchik
2003-07-29 07:15:17 +00:00
Eric Andersen
2a186890ee
Bruno Randolf writes:
...
this patch fixes run_parts when it's called by ifupdown. 1) argv has to be a
NULL terminated char* array, not just a string. 2) run_parts now explicitly
sets the environment. this environment is populated from the
/etc/network/interfaces config file and is needed by the scripts in
/etc/network/if-pre-up.d/. when run-parts is called from the command line the
environment is taken from the current process.
Vladimir Oleynik then wrote:
You can simplify this if use:
+ bb_xasprintf(&buf[0], "/etc/network/if-%s.d", opt);
+ buf[1] = NULL;
+
+ run_parts(&buf, 2, environ);
+ free(buf[0]);
--w
vodz
2003-07-29 07:05:40 +00:00
Eric Andersen
81fe123040
Vladimir N. Oleynik writes:
...
Last patch have synced form Manuel Nova III xxreadtoken() function,
corrected (C) form dash debian/copyright, removed my small mistake
with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from
current CVS (removed libc5 support, your email correction, my (C) year
corertion).
2003-07-29 06:38:40 +00:00
Eric Andersen
9cdef5d928
Yang Xiaopeng writes:
...
>I'm sure that no user process use old root now, but when run "umount
>/old_root", it says:
> umount: /old_root: Device or resource busy
>
>I have tried to remount /proc within the new root *after* chroot, but
>get the same result.
>
>
I found the problem, I said that no user process use old root when run
my scripts, but
I'm wrong, actually there is a '3' fd open the file
"/old_root/dev/console". By adding
debug message in init/init.c, I found the problem: when init restart(in
exec_signal()),
before open the new terminal device, there is still a file opened(I
don't know which file it is), so the
terminal device(stdin) get fd '1', and the first dup(0)(stdout) return
'2', the second(stderr) return '3'.
I attach a simple patch to solve this problem.
2003-07-29 06:33:12 +00:00
Eric Andersen
930c59675a
bump version to 1.0.0-pre2
2003-07-28 10:34:38 +00:00
Eric Andersen
cad4c5b0f3
A small update to the new docs. Plenty more is needed...
2003-07-28 10:13:03 +00:00
Eric Andersen
4052051864
Patch from vodz to update httpd usage
2003-07-28 09:59:05 +00:00
Eric Andersen
c470f4477a
This is synced from dash-0.4.17 and full ready for insert to new busybox
...
version:
ftp://ftp.simtreas.ru/pub/my/bb/new
News:
- code is smalest!
- support ${var...} expr
- used new very strongly steal controlling terminal
2003-07-28 09:56:35 +00:00
Eric Andersen
9b47661165
Avoid shadowing built-in function `log'
2003-07-28 09:37:56 +00:00
Eric Andersen
68d4a85f12
Fixup bugs in last patch
2003-07-28 09:31:28 +00:00
Eric Andersen
f3a02bbf41
Update docs a bit
2003-07-28 08:31:56 +00:00
Eric Andersen
05df91a3ac
last_patch98 from vodz:
...
Denis,
># ./busybox env - echo zzz
>zzz
># ./busybox echo -n zzz
>zzz
># ./busybox env - echo -n zzz
>env: invalid option -- n
>
> obviously, env tried to understand -n as env's option
> instead of blindly passing it to echo...
>
>BusyBox v1.00-pre1 (2003.07.16-07:53+0000) multi-call binary
>
>Usage: env [-iu] [-] [name=value]... [command]
Ah, you found very old problem.
Last patch also have:
- multiple "-u unsetenv" support
- GNU long option support
- save errno after exec failed before bb_perror_msg()
--w
vodz
2003-07-28 07:42:19 +00:00
Eric Andersen
35e643b39f
last_patch95 from vodz:
...
Hi.
Last patch have new libbb function
vfork_rexec() for can use daemon() to uClinux system.
This patched daemons: syslog, klogd, inetd, crond.
This not tested! I havn`t this systems.
Also. Previous patch for feature request MD5 crypt password for
httpd don`t sended to this mailist on 07/15/03
(mailist have Pytom module problem?).
The previous patch included, and have testing.
--w
vodz
2003-07-28 07:40:39 +00:00
Eric Andersen
4f4631732c
Add a "search google" button
2003-07-28 06:42:59 +00:00
Eric Andersen
f96675bc50
James Petterson writes:
...
I've found a possible bug in libbb/interface.c, in function
if_readlist_proc(). This function calls get_name(), and passes
as an argument 'name', a buffer of 16 bytes (IFNAMSIZ). The
function get_name(), however, may use more than 16 bytes,
when it is searching for aliases. Even if you don't have an
alias interface, you can run into trouble if the interface
has received more than 99999999 bytes, in which case the
space between the interface name and the rx stats
disappears, as in the /proc/net/dev example below:
wan0.200:264573315 462080 ...
In this case get_name() correctly identifies the interface name
as "wan0.200", but to do that it uses 18 bytes of the 'name'
buffer, which could lead to an unpredictable error.
A simple solution would be to increase the size of the buffer:
2003-07-28 06:37:04 +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
342aea967f
Allow people to use the full blown iproute2 programs with busybox ifupdown.
2003-07-26 09:27:02 +00:00
Eric Andersen
a1ed06b047
Move start_stop_daemon to debianutils.
...
Cleanup run_parts a bit and add long opts
2003-07-26 09:16:00 +00:00
Eric Andersen
aa820dbc00
cleanup and add long options
2003-07-26 09:10:35 +00:00
Eric Andersen
480f1533f3
The logger utility does not really depend on CONFIG_SYSLOGD,
...
since it can also be used with other syslog daemons
-Erik
2003-07-26 08:20:46 +00:00
Eric Andersen
05e662ab4d
Patch from Christian Meyer:
...
The client gives up way too soon because timeout is set to 0 ...
There's a solution for that problem.
2003-07-26 08:16:10 +00:00
Eric Andersen
ac00aa7599
Some additional description based on a patch from Terje Kvernes
2003-07-26 08:07:56 +00:00
Eric Andersen
ef73d3b5d9
Patch from Nick Fedchik to fixup paths in busybox/libpwdgrp
...
which were not properly using the bb_path_*_file strings.
2003-07-26 07:48:13 +00:00
Eric Andersen
7d72e796d6
Rework kill / killall so it behaves itself, even when subjected
...
to abuse.
-Erik
2003-07-26 07:41:56 +00:00
Eric Andersen
d5868c1692
Patch from Thomas Gleixner to reap any zombie processes that are
...
reparented to init...
2003-07-26 06:25:12 +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
Manuel Novoa III
b511f9cea9
Set the tm_isdst flag to -1 before calling mktime(). Otherwise, the current
...
timezone setting is used for the new date.
2003-07-23 23:24:31 +00:00
Eric Andersen
e5272074c9
eliminate DOSTATIC, DODEBUG, etc and name them sensibly
2003-07-22 22:15:21 +00:00
Eric Andersen
20c9f1e5e7
Several simplifications and indenting changes, per
...
last_patch97 from vodz
2003-07-22 17:14:10 +00:00
Eric Andersen
4c6c236781
As vodz noticed, I screwed up reboot
2003-07-22 17:04:54 +00:00
Eric Andersen
340aa1cb3f
the word "only" is repeated for CONFIG_FEATURE_SHADOWPASSWDS
2003-07-22 17:03:24 +00:00
Eric Andersen
fe55b260e2
There is no need to expose CONFIG_FEATURE_TRACEROUTE_SO_DEBUG
2003-07-22 10:18:17 +00:00
Eric Andersen
b24da33a06
Document CONFIG_FEATURE_INSMOD_LOADINKMEM
2003-07-22 10:16:58 +00:00
Eric Andersen
3857a184c7
Document CONFIG_ASH_CMDCMD
2003-07-22 10:14:32 +00:00
Eric Andersen
795c4bac91
Write some more docs
2003-07-22 10:11:48 +00:00
Eric Andersen
a501d0f01f
Remove the update utility, that is only relevant to older 2.0.x kernels
...
that are no longer supported.
2003-07-22 10:11:27 +00:00
Eric Andersen
9c3c38da55
Patch from Terje Kvernes adding quite a lot of missing documentation
2003-07-22 09:59:34 +00:00
Eric Andersen
6fd0e31e87
Patch from Andrew Flegg:
...
Here's a pretty crude patch to reload /etc/inittab when init receives a
SIGHUP. The mailing list archives weren't entirely clear on whether or
not it should already happen, but didn't appear to be.
The patch:
* Adds a new function, reload_signal() which just calls
parse_inittab() and run_actions(RESPAWN)
* Before entering the while (1) loop set up SIGHUP to call
reload_signal()
* Modify new_init_action to skip the action if the same command
already exists on the same terminal
This last bit means that changing already running entries is a bit
hairy as you can end up with, for example, two shells running on the
same virtual console. However, for solely adding/removing entries this patch
seems to work quite well.
2003-07-22 09:48:56 +00:00
Eric Andersen
0246222351
Support reboot, halt, and poweroff independent of busybox init.
...
Simplify and fixup some logic.
-Erik
2003-07-22 09:41:39 +00:00
Eric Andersen
85e5e72bc1
Remove remaining libc5 support code
2003-07-22 08:56:55 +00:00
Eric Andersen
0a14c9f924
A minor update for handling older gcc versions
2003-07-22 08:56:01 +00:00
Eric Andersen
d14d2a1f61
Update TODO list
2003-07-22 08:55:12 +00:00
Eric Andersen
e199220d48
Add a default clean target
2003-07-22 08:54:02 +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
680ec6eeae
mention stresslinux
2003-07-22 07:50:18 +00:00
Eric Andersen
cde8f53c60
Paul Mundt <lethal@linux-sh.org> writes:
...
Here's a bunch of fixes for the watchdog app in busybox. This does a
couple of things:
- configurable timer duration (userspace timer duration is
usually configurable within the device drivers themselves).
- run as a daemon
- shutdown the device properly on SIGINT or SIGHUP
- clear the counter immediately instead of sleeping first
as well as updating the usage information. This has also been switched
over to getopt to deal with the optional timer duration specifier.
The changes themselves are harmless and isolated, and I've veried that
this works on sh and x86 without any problems.
2003-07-22 07:39:18 +00:00
Eric Andersen
592ebd507a
Patch from Paul Mundt:
...
The current SC_x references automatically assume that everyone uses ttyS/tts
as their naming scheme for their serial ports. This isn't the case for quite
a few architectures, including sh, sh64, h8, arm, etc.
2003-07-22 07:33:14 +00:00
Eric Andersen
3443bd7286
Matteo Croce submitted a hdparm applet.
2003-07-22 07:30:36 +00:00
Eric Andersen
1ebcff191a
Patch from Jeff Angielski <jeff@theptrgroup.com> recognizing
...
his work on ftpput and ftpget.
2003-07-22 05:57:29 +00:00
Eric Andersen
8212aa5a37
Fixup some little error in the webpage. Mention the Dell TrueMobile 1184.
2003-07-19 08:19:21 +00:00
Eric Andersen
85c3c3f091
Update required kernel version and note that libc5 is no longer
...
supported (it is unmaintained and lacks support for simple things
such as stdint.h) and uClibc is a better choice these days anyways.
2003-07-16 07:31:14 +00:00
Eric Andersen
1b0075d243
Fixup problem unconditionally converting all hard links to symlinks.
2003-07-16 06:29:51 +00:00
Eric Andersen
c989724316
Update changelog and docs
2003-07-15 07:52:41 +00:00
Eric Andersen
db210ae02c
Document CONFIG_USE_BB_PWD_GRP
2003-07-15 07:15:03 +00:00
Eric Andersen
bb9dc93477
Update the default set of applets that are listed
2003-07-15 00:31:25 +00:00
Eric Andersen
d4fcb80609
Yet more preparation to make a release...
2003-07-15 00:28:26 +00:00
Eric Andersen
335816bc4c
Fix a silly typo
2003-07-14 22:14:49 +00:00
Eric Andersen
43da9d19ef
Looks like I forgot one little tiny detail...
2003-07-14 21:50:51 +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
74f270a317
decouple delgroup and deluser
2003-07-14 20:20:45 +00:00
Eric Andersen
e5642119ee
Patch from Thomas Cameron:
...
Hello all,
This patch adds more "Help" text to the config system. Almost
all applets now have a help entry. Also, I cleaned up the spacing of
the existing text so that things are consistent. This patch is against
this morning's CVS.
Thomas Cameron
CEI Systems, Inc.
2003-07-14 19:37:08 +00:00
Eric Andersen
1eceb127bd
Use standard types
2003-07-14 19:32:40 +00:00
Eric Andersen
b7ebc61b54
Michael Sternberg writes:
...
Latest BusyBox from CVS (Jul 7 2003).
File coreutils/ls.c
"if" at line 970 should be enclosed in #ifdef CONFIG_FEATURE_LS_SORTFILES
"if" at line 976 should be enclosed in #ifdef CONFIG_FEATURE_LS_TIMESTAMPS
2003-07-14 19:20:46 +00:00
Eric Andersen
fb0c6af286
Patch from Lars Kellogg-Stedman:
...
The attached two patches add config documentation to init/Config.in and
fileutils/Config.in.
2003-07-14 19:18:43 +00:00
Eric Andersen
9edcabdc34
Patch from Lars Kellogg-Stedman:
...
Busybox vi is installed in /bin/vi, but crontab was looking for
/usr/bin/vi. This patch makes crontab look for /bin/vi instead.
2003-07-14 19:14:26 +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
feb283a437
On second thought, this is a better way to fix things
2003-07-14 08:49:43 +00:00
Eric Andersen
9059e3a37b
Don't use Linux kernel headers
...
-Erik
2003-07-14 08:46:30 +00:00
Eric Andersen
f890f9dd16
This declaration no longer needs to hide when using dmalloc
2003-07-07 06:10:31 +00:00
Eric Andersen
e3393513c5
Be certain to not abort prematurely when reading stuff from pipes.
2003-07-05 23:10:27 +00:00
Eric Andersen
9f894f4062
Fixup compile problem with dmalloc
2003-07-05 22:15:43 +00:00
Eric Andersen
3c5a83c567
As noted by Thomas Eckert:
...
bb-tar "cjf" does not create a valid tbz2-archive -- if fact the result is a
plain tar-file (no compression) -- but does not warn about the unrecognized
parameter combination "cj" (bb does not have bzip2-compression yet, right?).
to fix this I have added an error message stating this does not work.
He also reported
cosmetic: versose "-v" does not show any output when used with "create"
which I have now fixed as well.
-Erik
2003-07-05 21:56:55 +00:00
Eric Andersen
d5a2780aa2
oops
2003-07-05 08:39:47 +00:00
Eric Andersen
3c8064ff69
Daniel writes:
...
I've found a problem with job control when the init process is restarted.
If the system boots for the first time, I get job control on a serial terminal -
no problems. However, when I restart init by issuing "init -q", then the shell
no longer has job control.
I traced this a problem in console_init in the file init.c. What was happening
after the restart is that the first compare
if (ioctl(0, TIOCGSERIAL, &sr) == 0) {
...
} else if (ioctl(0, VT_GETSTATE, &vt) == 0) {
...
} else {
... // assume /dev/console
}
returned error and subsequently the code assumes /dev/console as the console,
which does not support job control.
Checking the errno after the first call showed that the system was complaining
about the file descriptor. This is probably because the previous init process
had closed all its file descriptors which the new init process had inherited.
2003-07-05 08:29:01 +00:00
Eric Andersen
40ea66cd9d
Patch from Lars Kellogg-Stedman:
...
Glibc 2.1.3 (used by the Hardhat Linux SDK distributed by Cyclades)
does not define IF_NAMESIZE in net/if.h.
2003-07-05 08:00:17 +00:00
Eric Andersen
7207b88d06
Patch from Lars Kellogg-Stedman:
...
This patch fixes endian problems with get_netmask(). I don't know if
this is the cleanest solution, but it makes 'ipcalc -n' work on both
an i386 system and a ppc system.
2003-07-05 07:59:30 +00:00
Eric Andersen
65e20a33c2
Patch from Kent Robotti adding a bunch of needed docs!
...
-Erik
2003-07-05 07:52:35 +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
a21f4e018a
Glenn McGrath (bug1) isaway from my email till the 17th, but caught me on IRC.
...
He took a look into the recent reports of tar problems, and found an obvious
typo in last_patch91 from vodz which converted tar to use bb_getopt_ulflags.
2003-07-05 06:38:41 +00:00
Eric Andersen
e968ee3f70
Patch from Vladimir N. Oleynik (vodz):
...
Last patch have changed for "ipcalc" applet with usage new get_ulflags()
function.
2003-07-03 10:28:07 +00:00
Eric Andersen
8a93179c14
Patch from Lars Kellogg-Stedman:
...
Erik, et al.
The attached patch makes the following changes to networking/ifupdown.c:
(1) It swaps all calls to 'ip link set' and 'ip addr set'. This solves
two problems:
(a) Calling 'ip link set <dev> up' before assigning an address
generates an error message, and
(b) Under User Mode Linux, running in with ethernet interfaces
in daemon mode, the MAC address for an interface is selected
based on the IP address assigned to that interface. If the
interface is brought up before being assigned an IP address,
it gets a null MAC.
(2) It further cleans up run_mapping().
This patch is against ifupdown.c revision 1.25.
-- Lars
2003-07-03 10:20:29 +00:00
Eric Andersen
bccb31533e
Fix stupid unterminated parenthesis
2003-07-03 10:19:20 +00:00
Eric Andersen
9e48045e45
Patch from Russell Coker:
...
I've attached my latest SE Linux patch for busybox against the latest CVS
version of busybox.
2003-07-03 10:07:04 +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
a5c488449e
Using safe_read seems, well, safer...
2003-07-03 09:48:07 +00:00
Eric Andersen
61f6db130e
As implemented, sha1sum would sometimes give the wrong answer.
...
This fixes it and uses faster sha1 code from Dr. Gladman.
-Erik
2003-07-03 09:41:41 +00:00
Eric Andersen
a63d09a517
Patch from Pavel Roskin to fixup toplevel help text
2003-06-30 18:14:36 +00:00
Eric Andersen
b01ed65ad2
Apply last_patch93 from vodz:
...
andersen@busybox.net wrote:
>Message: 4
>Modified Files:
> init.c
>Log Message:
>Remove code for unsupported kernel versions
Hmm. Current init.c have check >= 2.2.0 kernel one time too.
Ok. Last patch removed this point and move common init code to new file for
/init dir
2003-06-27 17:08:15 +00:00
Eric Andersen
0b0d393347
Remove bdflush garbage, which is only relevant to unsupported
...
kernel versions
2003-06-27 05:46:29 +00:00
Eric Andersen
4a2dcd904c
oops. make this actually work as intended....
2003-06-26 23:55:55 +00:00
Eric Andersen
7c512439b2
Make sure we end up with a unix2dos link to busybox
2003-06-26 21:53:51 +00:00
Eric Andersen
f60d4b491a
Oops.
2003-06-26 18:01:43 +00:00
Eric Andersen
27cb6846d7
last_patch91 from vodz to convert tar to use bb_getopt_ulflags
2003-06-26 09:07:59 +00:00
Eric Andersen
a3bb3e6e0b
Geir Thomassen wrote, regarding networking/httpd.c line 1358
...
Hello, I think the test for an unconfigured httpd is wrong in
the CVS (busybox-unstable-20030620.tar.bz2)
flg_deny_all is default 0
vodz then wrote:
Oops. You are right.
Also, this mistake haved from two place.
Last patch rewroted to my new get_ularg() function for overcompensate size
from this error found ;-)
2003-06-26 09:05:32 +00:00
Eric Andersen
fd10c70521
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
...
Change fopen to bb_xfopen
2003-06-26 08:53:49 +00:00
Eric Andersen
1c25ba9de1
Oops. As Andrew Dennison just noticed, I left a stray
...
space in the Makefile, thereby totally breaking it.
2003-06-25 05:18:48 +00:00
Eric Andersen
b6071ea5cb
Regenerate the busybox.links file when the .config changes
2003-06-25 03:26:04 +00:00
Glenn L McGrath
655d814d75
New applet: patch, applies a unified diff
2003-06-22 15:32:41 +00:00
Glenn L McGrath
a0b3705fa1
Save a few bytes by using bb_getopt_ulflags and a few other minor
...
improvments
2003-06-22 06:59:34 +00:00
Eric Andersen
f0f754aeaf
Based on a tinylogin patch from Philip Blundell, add several
...
additional options to adduser.
-Erik
2003-06-21 20:03:07 +00:00
Eric Andersen
9d9cecfd63
Fix a silly bug I introduced yesterday
2003-06-21 09:05:49 +00:00
Eric Andersen
3c8bca364d
Fixup whitespace handing, fixing some annoying behavior and
...
a couple of segfaults
2003-06-20 10:02:29 +00:00
Eric Andersen
25ea42de9b
Fall back to looking in /lib/modules/modules.dep if
...
/lib/modules/<kernel version>/modules.dep is missing
2003-06-20 09:57:30 +00:00
Eric Andersen
908e362133
Patch from Andrew Dennison:
...
I've had some issues with modprobe which I reported a few months ago. This
is still an issue so I decided to sort it out.
The attached diff includes the changes against the unstable cvs tree that
work for me.
Changes are:
mod_process() will report success if the module at the head of the list
loads successfully. It will also report success if any module unloads
successfully.
The net result being that modprobe will succeed in the cases outlined below.
I've also added error reporting to modprobe -r. Previously it would silently
fail (but report success) if the module could not be unloaded.
Andrew
2003-06-20 09:56:37 +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
Eric Andersen
dd92c77bb0
Don't shadow a paramater
2003-06-20 09:25:34 +00:00
Eric Andersen
0cc7e6236a
Fix a couple vars that could be used uninitialized
2003-06-20 09:23:34 +00:00
Eric Andersen
2a41ec6c63
use an explicit cast on some types that change size when
...
large file support is enabled.
2003-06-20 09:22:12 +00:00
Eric Andersen
1b2e7c3b2a
Make gcc not whine about "deprecated use of label at end of compound statement"
2003-06-20 09:20:28 +00:00
Eric Andersen
c9e7024924
Add prototype update missing from last_patch89. Fix screwy
...
formatting in cut.
2003-06-20 09:16:00 +00:00
Eric Andersen
0f08e53535
Patch from Lars Kellogg-Stedman:
...
I'm building BusyBox using a development kit for MontaVista Hardhat Linux
(PPC) -- which, at least in this instance, is based around kernel 2.2.14.
I've had to massage a few files in networking/libiproute/ to make it
compile. Specifically:
(1) Added a #include <sys/uio.h> for the iovec structure in
libnetlink.c,
(2) Put ifdefs in ll_types.c and ll_proto.c around various
constants (ETH_P_xxx and ARPHRD_xxx) that weren't defined,
(3) Make do_changename() in iplink.c require a kernel >=
2.4.0 -- the ifr structure in my environment doesn't
have the ifr_name attribute. I've assumed this is
a kernel dependency -- let me know if I ought to be
checking something else.
In the absence of the correct kernel, do_changename()
always returns 0.
Attached is a patch against the current CVS that will make these changes.
-- Lars
2003-06-20 09:05:00 +00:00
Eric Andersen
8876fb2f59
last_patch89 from vodz:
...
Manuel,
I rewrite bb_getopt_ulflags() function for more universal usage.
My version support now:
- options with arguments (optional arg as GNU extension also)
- complementaly and/or incomplementaly and/or incongruously and/or list
options
- long_opt (all applets may have long option, add supporting is trivial)
This realisation full compatibile from your version.
Code size grow 480 bytes, but only coreutils/* over compensate this size
after using new function. Last patch reduced over 800 bytes and not full
applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate
trivial addition support long_opt with usage new bb_getopt_ulflags().
Complementaly and/or incomplementaly and/or incongruously and/or list options
logic is not trivial, but new "cut" and "grep" applets using this logic
for examples with full demostrating. New "grep" applet reduced over 300
bytes.
Mark,
Also. I removed bug from "grep" applet.
$ echo a b | busybox grep -e a b
a b
a b
But right is printing one only.
--w
vodz
2003-06-20 09:01:58 +00:00
Eric Andersen
dfce3536ac
Fix rpm usage msg
2003-06-15 07:00:54 +00:00
Eric Andersen
a8da17acef
Add missing pieces from vodz' last_patch88
2003-06-14 02:57:53 +00:00
Eric Andersen
fa7532b91a
Fix the location for the default config so 'make defconfig'
...
actually works
2003-06-12 22:09:08 +00:00
Glenn L McGrath
b838420fd5
Handle hard links by converting them to symlinks
2003-06-12 13:47:16 +00:00
Glenn L McGrath
24833430bc
Vodz, last_patch_88
2003-06-10 17:22:49 +00:00
Glenn L McGrath
6c43f743a3
sha1sum option to compare checksums
2003-06-08 13:32:12 +00:00
Glenn L McGrath
a721204ec5
Better error handling
2003-06-07 17:38:33 +00:00
Glenn L McGrath
a9e4617494
Minor correction
2003-06-07 17:11:00 +00:00
Glenn L McGrath
138d71bc35
Fix bug (wrong value computed) when reading file from stdin, implement
...
-s option
2003-06-07 17:06:28 +00:00
Glenn L McGrath
7aa62cf173
Run through indent
2003-06-07 14:54:24 +00:00
Eric Andersen
233b170a85
Patch from Lars Kellogg-Stedman, lars at larsshack.org, to
...
make ifupdown's mapping function work as documented.
2003-06-05 19:37:01 +00:00
Eric Andersen
d130973f34
Put this back the way it was. I misunderstood what vodz was doing.
2003-05-27 20:45:59 +00:00
Eric Andersen
82ab3d7c3e
Make all syscall declarations use the syscall() function
2003-05-26 18:48:56 +00:00
Eric Andersen
b0cfca7544
This was doing some silly stuff that is not necessary when using
...
vfork(), so I have simplified it.
2003-05-26 18:12:00 +00:00
Eric Andersen
a2d1982841
cleanup a bit to remove needless verify() function
2003-05-26 18:09:14 +00:00
Eric Andersen
fab3e12cec
Skip printing "/proc/%d/cmdline" stuff when it is not relevant
2003-05-26 18:07:30 +00:00
Eric Andersen
64191c3896
Remove cruft
2003-05-26 18:06:20 +00:00
Glenn L McGrath
2faee7b1ed
Vodz, last_path_87, formatiing changes
2003-05-26 14:09:12 +00:00
Glenn L McGrath
393183dccc
Vodz, last_patch_86
2003-05-26 14:07:50 +00:00
Eric Andersen
ddfe18df75
Update mkdep, per the "touchless dependencies for 2.4.x" patch
...
from Geert Uytterhoeven posted to the lkml.
-Erik
2003-05-24 07:30:58 +00:00
Eric Andersen
46ba568fc0
oops
2003-05-23 09:29:57 +00:00
Eric Andersen
d4f90ed37e
This patch from Vitezslav Batrla, is a cleaner fix for the
...
problem with syslogd logging the '<' char.
2003-05-23 09:28:01 +00:00
Eric Andersen
787ff55a69
Patch from Russell Coker:
...
The attached patch fixes a compilation error. If you compile ping6 without
the CONFIG_FEATURE_FANCY_PING6 option then the compile will fail without this
patch.
2003-05-22 07:10:22 +00:00
Glenn L McGrath
4fe3ff8cff
Patch from Glenn Engel
...
- more comments
- larger allowed number of CGI script variables
- ifdefs for regression test hooks
- default to ./ rather than /www (if unspecified) for compatibility with
earlier versions.
- Allow ip: as a synomym for A: rules for compatibility with earlier
versions.
- Setting of CGI_ARGLIST_ when automatic setting of env vars for form
scripting is utilized. This helps with minimal systems like openap.
2003-05-19 05:56:16 +00:00
Matt Kraai
0861e828d0
Handle -O preceding -x.
2003-05-18 21:12:36 +00:00
Eric Andersen
900c8f3362
Apply patch from Georg Magschok to fix syslog behavior so that the
...
'>' charactor can be logged, per rfc3164.
Also, a small patch from me to fix it so we use MAXLINE when allocating the
buffer, which is consistant with use everywhere else. This is needed since
uClibc defines BUFSIZE as 255, causing lines to be truncated at 255...
2003-05-16 08:35:02 +00:00
Glenn L McGrath
d3af409eae
Part of a patch from Glenn Engel, updates httpd help
2003-05-14 12:20:21 +00:00
Glenn L McGrath
874e3381db
vodz, last_patch_85
2003-05-14 12:11:36 +00:00
Glenn L McGrath
0a3b0106ab
Re-use existing variables, patch from Tito
2003-05-13 16:31:15 +00:00
Glenn L McGrath
c9163fee91
last_patch84 by Vodz.
2003-05-13 16:20:11 +00:00
Glenn L McGrath
49e74effbc
Add some missing lines for getty, patch by Steven Scholz
2003-05-13 14:59:07 +00:00
Glenn L McGrath
74fcbb0f7d
Fix \l so it doesnt print the character as well as the tty, from old
...
patch by Nick Fedchik
2003-05-13 13:28:25 +00:00
Glenn L McGrath
1e11c34be4
minit, a Minimal init system.
2003-05-11 14:52:39 +00:00
Glenn L McGrath
8c6887c855
Use xopen instead of xfopen
2003-05-08 13:09:28 +00:00
Eric Andersen
7b3edeb14d
Patch from Dmitry V. Levin to fix a fd leak
2003-05-02 16:25:01 +00:00
Eric Andersen
a860bec167
A couple of patches from Tito <farmatito@tiscali.it>
2003-04-27 10:42:31 +00:00
Glenn L McGrath
7a54360cd4
Use bb_xgetlarg
2003-04-27 10:05:35 +00:00
Glenn L McGrath
f01b805d91
New applet, fold
2003-04-27 06:02:14 +00:00
Glenn L McGrath
c91ce57099
Config option to create an fgrep alias
2003-04-27 02:43:54 +00:00
Glenn L McGrath
c5408fe7f7
Fix segfault when cleaning up
2003-04-27 02:22:01 +00:00
Glenn L McGrath
26df70a823
grep -f support, adds only 60 Bytes, but regex's now compiled as
...
required, rather than being pre-compiled.
2003-04-27 01:50:57 +00:00
Glenn L McGrath
e2aed7ffd7
Always preserve date
2003-04-26 13:16:44 +00:00
Glenn L McGrath
91e1978ff0
New commands, 'G' and 'H'
2003-04-26 07:40:07 +00:00
Glenn L McGrath
69f28e7c0c
Add the -d option, its used by old versions of config.guess, change to
...
use getopt.
2003-04-26 04:56:17 +00:00
Glenn L McGrath
fbf0b8af41
iPatch from waldi, fixes usage of ip route flush (from)? (match|exact)
2003-04-26 02:22:19 +00:00
Eric Andersen
86f2cce6bf
Patch from Steven Scholz to fix telnetd compile problem
2003-04-25 12:32:37 +00:00
Eric Andersen
2c1de61023
There have been many reports of init failing to reboot and/or failing to halt
...
over the years. Well I finally took the time to track this down. It turns out
that inside linux/kernel/sys.c the kernel will call
machine_halt();
do_exit(0);
when halting, or will call
machine_power_off();
do_exit(0);
during a reboot. Unlike sysv init, we call reboot from within the init
process, so if the call to machine_halt() or machine_power_off() returns, the call to do_exit(0) will cause the kernel to panic. Which is a very
bad thing to happen.
So I just added this little patch to fork and call the reboot
syscall from within the forked child process, thereby neatly
avoiding the problem.
But IMHO, both calls to do_exit(0) within linux/kernel/sys.c
are bugs and should be fixed.
-Erik
2003-04-24 11:41:28 +00:00
Glenn L McGrath
afc01cd485
unlink a previous file before its extracted
2003-04-21 11:03:29 +00:00
Glenn L McGrath
923dd79af7
sync with waldi
2003-04-21 10:26:39 +00:00
Glenn L McGrath
35a5b08eee
unlink() an existing file, before opening it, simply truncating can
...
cause nasty problems if overwriting glibc, spotted by waldi.
2003-04-21 10:07:48 +00:00
Eric Andersen
6f9a0d4bbb
Add link to SimplyGNUstep
2003-04-21 03:34:01 +00:00
Eric Andersen
4a11e0fb45
Patch from David Updegraff to use calloc so that forward pointers start out
...
NULL, and so it can handle format strings that have stuff _after_ the last %?
specification
2003-04-19 23:18:35 +00:00
Eric Andersen
2894266f12
Patch from David Updegraff to avoid corrupting memory while parsing the
...
networks/iterfaces file with next_word routine. Without this, next_word
increments one beyond the end of the string.
2003-04-19 23:15:06 +00:00
Eric Andersen
343658582b
Minor .o file naming change
2003-04-16 23:02:35 +00:00
Eric Andersen
7cb6ef7982
enable CONFIG_USE_BB_PWD_GRP for the debian installer,
...
to prevent glibc from trying and failing to use NSS junk
that is not present.
-Erik
2003-04-16 20:52:01 +00:00
Glenn L McGrath
fc4cb4dbb5
Fix logic error in grouped commands
2003-04-12 16:10:42 +00:00
Glenn L McGrath
d4185b0e15
Fix up indenting
2003-04-11 17:10:23 +00:00
Glenn L McGrath
d7fe39b587
Really fix the 'r' command
2003-04-09 15:52:32 +00:00
Glenn L McGrath
d87a7ac269
Fix the sed 'r' command
2003-04-09 15:26:14 +00:00
Glenn L McGrath
2410386611
fix substitution when replacing with &, we shouldnt check for an escape charcter. Its already been taken care of _somewhere_ else
2003-04-09 07:51:43 +00:00
Glenn L McGrath
bd9b32bc0d
Label ends at a newline, update comments, rename linked list field
2003-04-09 01:43:54 +00:00
Glenn L McGrath
8d6395d41a
Run through indent
2003-04-08 11:56:11 +00:00
Glenn L McGrath
c1d95076f0
Fixes block commands to correctly identify end of block, recognise the #n directive, fix substitue command when regex isnt specified
2003-04-08 06:42:45 +00:00
Glenn L McGrath
7ce9e247f0
Add hold space commands 'g', 'h', 'x'
2003-04-07 16:04:14 +00:00
Glenn L McGrath
c6adada158
Rename "line" to pattern_space to be more descriptive and closer to the POSIX description
2003-04-07 12:24:44 +00:00
Glenn L McGrath
4957fc7a93
Sync with waldi's package
2003-04-06 15:35:52 +00:00
Glenn L McGrath
8353fe9298
Preparation for the new net-udeb based on required applets documented at
...
http://cvs.debian.org/debian-installer/doc/busybox-applets.txt
2003-04-06 03:39:24 +00:00
Eric Andersen
982da3e6b4
Add more help text
2003-04-04 15:20:53 +00:00
Eric Andersen
4762a48166
Test that cvs commit messages are working properly
...
-Erik
2003-04-04 14:35:36 +00:00
Manuel Novoa III
0c236a09ed
Fix 'thinko'.
2003-04-03 19:29:11 +00:00
Eric Andersen
8320b425a3
Yet another rather large face lift. It now works for me as expected.
...
-Erik
2003-04-02 10:13:26 +00:00
Eric Andersen
a71c7047cf
Avoid errors with buggy preprocessors
2003-03-31 16:27:18 +00:00
Glenn L McGrath
f3def2792b
Update config to new menu options
2003-03-30 16:10:06 +00:00
Glenn L McGrath
1b6dfa7066
Rename, to specify kernel
2003-03-30 13:57:26 +00:00
Glenn L McGrath
9a52bb6878
Group common string
2003-03-30 09:38:40 +00:00
Glenn L McGrath
30b47df86b
Small fix for sed 'y' command
2003-03-30 08:40:09 +00:00
Glenn L McGrath
f01b46d7dd
sed 'y' command, simplify some other code
2003-03-30 08:02:18 +00:00
Glenn L McGrath
0c51832b60
Experimental support for embeded newline. (im evil)
...
Fix segfault when using 'N' with an odd number of lines.
2003-03-30 03:41:53 +00:00
Eric Andersen
b5b5ac3237
trivial fix to make sure we have sufficient arguments before
...
we mess with a possibly non-existant argv[1]
-Erik
2003-03-28 16:54:14 +00:00
Glenn L McGrath
a0f0f0cf76
Still fine tunning the printing of the substitute command
2003-03-28 14:11:34 +00:00
Glenn L McGrath
595a6a4199
sed 't' branching command
2003-03-28 08:36:52 +00:00
Glenn L McGrath
ccd43a8301
Fix sed 's' command's 'p' flag, so it can print line twice
2003-03-28 07:44:03 +00:00
Glenn L McGrath
b08e3e8c2e
fix q command
2003-03-28 04:57:52 +00:00
Glenn L McGrath
961c6c19da
Add basic branching support, sed ':' and 'b' commands
2003-03-28 04:43:39 +00:00
Glenn L McGrath
56c633c139
make sed cleanup use linked list
2003-03-28 04:23:23 +00:00
Glenn L McGrath
c949bfa555
Use a linked list for sed commands in preparation for branching support
2003-03-28 03:53:31 +00:00
Manuel Novoa III
3a9b0bf0ba
Oops... had != but meant ==.
2003-03-23 20:27:33 +00:00
Manuel Novoa III
4baef0c77f
Minor cleanups. Document the cmp -l option.
2003-03-19 18:40:42 +00:00
Manuel Novoa III
ea4c43445c
Restrict octal perms to <= 07777. Cosmetic error message change.
2003-03-19 18:09:03 +00:00
Manuel Novoa III
1cb1b64c35
Obligatory forgotten item.
2003-03-19 09:42:33 +00:00
Manuel Novoa III
4eff18189a
Things my compiler didn't catch...
2003-03-19 09:42:02 +00:00
Manuel Novoa III
cad5364599
Major coreutils update.
2003-03-19 09:13:01 +00:00
Glenn L McGrath
e01f9662a5
Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.
2003-03-18 08:37:57 +00:00
Glenn L McGrath
2971ef1730
Fix a bug that corrupted the string followed commands that had no arguments ( Closes #1304 )
2003-03-18 01:19:23 +00:00
Eric Andersen
737f5fb890
Patch from Jonas Holmberg, adjusted by Robert Schwebel, and
...
later re-adjusted by me to fix msh backtick handling
2003-03-14 16:05:59 +00:00
Eric Andersen
d2b8118650
oops. args shuffled.
2003-03-13 20:54:26 +00:00
Eric Andersen
c3b2dbec8c
Fix obviously wrong names from older busybox
2003-03-13 18:57:08 +00:00
Eric Andersen
92b7e7baa1
Patch from Tito Ragusa:
...
The changes I've made: in strings.c:
1) fix memory allocation error I've detected with MALLOC_CHECK_=1 in *string;
2) code clean up;
3) fix compiler warnings about uninitialized vars;
2003-03-13 18:49:45 +00:00
Eric Andersen
3f1cf455a0
cope with crappy windoze ftp servers
2003-03-11 18:03:39 +00:00
Eric Andersen
e68afefe56
Avoid potential rendering problems
2003-03-10 17:21:46 +00:00
Glenn L McGrath
4157a8a71e
fix n, add N, P
2003-03-10 04:12:35 +00:00
Glenn L McGrath
ff724fb076
add the 'n' command
2003-03-10 02:56:56 +00:00
Glenn L McGrath
bed4033e96
Add the q (quit) option
2003-03-10 02:21:14 +00:00
Glenn L McGrath
f3bd7c4631
Fix a delimiter matching bug i introduced.
2003-03-09 15:40:40 +00:00
Glenn L McGrath
f50ce3135f
Support grouped commands, i.e. {cmd1;cmd2}
2003-03-09 15:12:24 +00:00
Glenn L McGrath
4c6523a90b
alloc array for commands, use string ptr in parse_command_string()
2003-03-09 11:06:38 +00:00
Glenn L McGrath
e7a8bc949b
use typedef for struct sed_cmd
2003-03-09 10:23:57 +00:00
Glenn L McGrath
1fb446795d
redo get_addres(). save some space. possible fix a bug where the command might be set to 0 if no second address is given. dont parse sed_cmd struct to get_address, we only need the delim field.
2003-03-09 08:44:49 +00:00
Glenn L McGrath
2f8a401772
Woops, remove the code i didnt mean to commit
2003-03-09 02:44:49 +00:00
Glenn L McGrath
d5eadea970
Mention the opengroup sed reference, add a check which is disabled at present.
2003-03-09 02:39:29 +00:00
Glenn L McGrath
505bd0f15a
Fix matching for the $ address (last line)
2003-03-08 05:21:02 +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
6067c08145
With nightmares of libbb ending up with 100 .c files starting
...
with "bb_" it seems best to rename this now and avoid starting
an evil KDE style naming trend.
2003-03-07 17:43: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
a9c6bc41e9
Define bb_xgetlarg as a standard interface for extracting
...
numbers from getopt which includes careful error checking.
-Erik
2003-03-07 17:29:12 +00:00
Eric Andersen
bae7c1ac24
Explicitly define -DNDEBUG so asserts don't clutter release code
2003-03-07 17:27:51 +00:00
Eric Andersen
08f4a4c508
Add all the syslogd help text
2003-02-28 07:20:55 +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
Eric Andersen
ee6da5527c
mention "katamaran"
2003-02-18 20:17:30 +00:00
Glenn L McGrath
008c01915b
Fix for big endian machines
2003-02-17 12:18:16 +00:00
Glenn L McGrath
ae0f1e7052
New applet sha1sum
2003-02-17 08:23:22 +00:00
Glenn L McGrath
4a4c677fcc
Patch from Bastian Blank
...
- ip route flush
- different usage for telnetd in inetd mode
- changes for the default flags of the ip features
- if no /usr requested, udhcpc should use the script also without /usr.
2003-02-15 11:50:33 +00:00
Glenn L McGrath
3238ea1673
Merge fileutils, textutils and shellutils into coreuils
2003-02-15 10:53:40 +00:00
Russ Dill
858fad722f
sync with udhcp bug fixes
2003-02-12 22:20:19 +00:00
Eric Andersen
496411b489
Don't use HZ -- use sysconf(_SC_CLK_TCK)
2003-02-12 10:56:53 +00:00
Manuel Novoa III
c2843563f3
Fix compile error... header problems.
2003-02-11 07:06:06 +00:00
Glenn L McGrath
ae494a9086
last_patch83 by Vladimir N. Oleynik
2003-02-10 22:53:37 +00:00
Glenn L McGrath
b1207b3320
Fix compile error, last_patch82 by Vladimir N. Oleynik
2003-02-10 22:31:09 +00:00
Glenn L McGrath
3d2405cfb3
Fix compile error, last_patch81 by Vladimir N. Oleynik
2003-02-10 22:28:21 +00:00
Eric Andersen
18d8a3b7e3
udhcpc is supposed to be in /sbin, not /usr/sbin/
2003-02-10 09:22:36 +00:00
Glenn L McGrath
883d4842d2
Fix compiler warnings, patch by Steven Scholz
2003-02-09 22:40:34 +00:00
Glenn L McGrath
826b48b624
Woops, my gunzip fix broke unzip, these cant be static
2003-02-09 12:00:17 +00:00
Glenn L McGrath
a837e2d9b3
Minor update to arping, patch from Nick Fedchik
2003-02-09 07:01:33 +00:00
Glenn L McGrath
06e9565b6c
New applet, inetd, make httpd features more configurable, update authors, last_patch_80
...
from Vladimir N. Oleynik
2003-02-09 06:51:14 +00:00
Glenn L McGrath
877d418b39
Dont die if logging remotely fails, patch by Joshua Jackson
2003-02-09 05:07:42 +00:00
Glenn L McGrath
def85e8752
Specify install path, patch by Nick Fedchik
2003-02-09 05:00:52 +00:00
Glenn L McGrath
1d21fb3c23
Moved to libunarchive/unzip.c
2003-02-09 04:49:17 +00:00
Glenn L McGrath
cc616928d5
Fix endian probelm on PPC, i had different types for an extern variable.
2003-02-09 04:46:34 +00:00
Glenn L McGrath
a88cb5025c
Patch from mathuria, compatability with solaris
2003-02-08 23:36:16 +00:00
Glenn L McGrath
3aeaee33b6
Patch from Joshua Jackson, make md5 the default hash algorithm
2003-02-08 23:20:02 +00:00
Glenn L McGrath
b4f3d7f594
Rewrite by Manuel Novoa III, very compact implimentation.
2003-02-08 23:11:19 +00:00
Glenn L McGrath
cb665093b8
Patch from Nick Fedchik, CONFIG_SYSLOGD should determine getty's
...
behaviour.
2003-02-08 22:33:53 +00:00
Eric Andersen
a486f469cb
Mention penguru
2003-02-05 18:16:45 +00:00
Eric Andersen
46c203a6ce
Fix a couple more ifupdown bugs
2003-02-03 12:44:59 +00:00
Glenn L McGrath
21110a0aa2
Fix long standing bug with old gnu tar files, add a check so tar will
...
complain "unknown file type" if it tries to extract an oldgnu tar file
and TAR_FEATURE_OLDGNU_COMPATABILITY sint defined.
Print a warning if unisupported gnu extensions are encountered.
2003-01-28 01:45:48 +00:00
Eric Andersen
a99534354a
Don't wipe the config system on 'make clean'
2003-01-27 22:11:59 +00:00
Eric Andersen
66a3af9d7c
This seems sufficient for ifup and ifdown to actually work
...
as advertised. Works for me (at least with glibc)
2003-01-27 17:41:19 +00:00
Eric Andersen
22237017a7
Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung
2003-01-23 07:08:26 +00:00
Eric Andersen
ee9441f848
Patch from Brett Hunt at micron.com to fixup potential segfaults
...
during 'make menuconfig'
2003-01-23 06:36:15 +00:00
Eric Andersen
bf77f61d69
Patch from Jason McMullan @ linuxcare.com adding insmod
...
support for s390 systems.
2003-01-23 06:02:39 +00:00
Eric Andersen
853c494efd
A patch from John F. Kelly to add in a utility for configuring
...
vlan under linux, derived from Ben Greear's VLAN "vconfig" tool.
2003-01-23 05:59:32 +00:00
Eric Andersen
97d86f2bb5
Apply patch from Ghozlane Toumi to add -inum support to find.
...
Apply patch from Ghozlane Toumi to make find smaller by combining
similar error messages
Forward port find -newer support from busybox stable that was
missing from unstable. -Erik.
Fixup usage messages for find. -Erik
2003-01-23 05:27:42 +00:00
Eric Andersen
be65c350ae
Patch from Artem Egorkine to support the -m option
2003-01-23 04:57:35 +00:00
Eric Andersen
889dd20c69
Patch from Joel Vallier to add modules symbols to the kernel symbol
...
table in order to obtain better debug output from ksymoops.
2003-01-23 04:48:34 +00:00
Glenn L McGrath
8eb214edbd
Patch from Basitan Blank to fix nasty bug
2003-01-22 21:09:48 +00:00
Eric Andersen
d8fdf0c57d
Fix a typo that broke it so busybox won't build
2003-01-22 01:20:35 +00:00
Russ Dill
6393d69f76
merge fixes with udhcp
2003-01-21 22:39:34 +00:00
Glenn L McGrath
6af21c2afa
Login prompt function, part of waldi's telnetd from inetd patch
2003-01-21 20:59:34 +00:00
Glenn L McGrath
9e5d6c002c
run telnet from inetd, present login prompt if login is configured,
...
patch from Bastian Blank
2003-01-21 20:55:56 +00:00
Glenn L McGrath
4c51202b9d
re-order config options, part of a patch from Bastian Blank
2003-01-21 00:12:11 +00:00
Glenn L McGrath
5cc9ada0e4
header update
2003-01-21 00:03:05 +00:00
Glenn L McGrath
2e51a14d57
New test mode that allows run_parts to fail silently if the directory
...
is not found. Patch from Bastian Blank
2003-01-20 23:50:59 +00:00
Glenn L McGrath
aad465efb7
Make test mode output same as official version
2003-01-20 23:34:12 +00:00
Glenn L McGrath
a9adef0394
Dont use getopt_long, minor usage changes, patch by Nick Fedchik
2003-01-19 13:34:21 +00:00
Glenn L McGrath
e6ae6e3d39
fix missed option argument for -I <device>, interface name checks
...
redesigned, patch by Nick Fedchik
2003-01-19 13:31:41 +00:00
Glenn L McGrath
f2ba45e339
Compile option to avoid using /usr directory, patch by Bastian Blank
2003-01-19 12:55:13 +00:00
Glenn L McGrath
77c60e5c66
Use vsyslog instead of syslog, improve initalisation and cleanup of
...
variables, save 300 Bytes or so, patch by Vladimir N. Oleynik
2003-01-16 11:37:57 +00:00
Glenn L McGrath
8573704097
Fix leading spaces bug, free line buffer, redo next_word, save some
...
space.
2003-01-14 23:26:57 +00:00
Glenn L McGrath
147a3ca1a4
Patch for the debian-cvs package, ip* applets in /bin, patch from Bastian Blank
2003-01-14 21:41:12 +00:00
Eric Andersen
fc4a0fd82e
last_patch75_2 from vodz,
2003-01-14 18:13:13 +00:00
Eric Andersen
85d9d80db8
Ensure consistant sort order, sed behavior, etc
...
-Erik
2003-01-14 09:12:39 +00:00
Eric Andersen
ab4e19afc6
Eliminate most instances where we use linux kernel headers
...
-Erik
2003-01-14 08:54:08 +00:00
Eric Andersen
92a06d0943
Clean config binsries on 'make clean'
2003-01-14 08:52:18 +00:00
Eric Andersen
8004bb7661
Eliminate use of kernel header file
...
-Erik
2003-01-14 08:06:07 +00:00
Eric Andersen
e0716ba23b
Fixup addgroup help text
2003-01-14 06:42:56 +00:00
Eric Andersen
4b525addb8
Only call free if it is necessary
2003-01-14 06:40:11 +00:00
Eric Andersen
65ddf77fbd
Patch from Tito to rework strings applet, and some testsuite
...
stuff to test it added by me.
2003-01-13 23:19:31 +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
d66370cd73
Option to allow ifupdown use ip commands instead of ifconfig, add flush
...
command to ipaddr, patch by Bastian Blank
2003-01-13 21:40:38 +00:00
Eric Andersen
4e486a5d00
Kiss Gabor noticed that ping compiled without BB_FEATURE_FANCY_PING
...
would return 0 instead of EXIT_FAILURE when no response was received.
2003-01-12 06:08:33 +00:00
Eric Andersen
1dcf218e60
Patch from Daniel J Walsh at redhat to make free work for systems
...
with more than 1 GB of memory...
2003-01-11 20:40:49 +00:00
Eric Andersen
575c78274a
Patch from Robert Schwebel -- support ncurses installed in /usr/local
2003-01-11 18:07:38 +00:00
Eric Andersen
b1c9469f65
Patch from Robert Schwebel fixing a missing \n
2003-01-11 18:06:02 +00:00
Eric Andersen
aaab46baba
Fix an obvious mistake
2003-01-11 18:02:51 +00:00
Eric Andersen
f05fd444e8
Fix addgroup so it actually works
...
-Erik
2003-01-09 18:53:53 +00:00
Eric Andersen
e931909d2d
Additional patch from Tito to fix some anomolies
2003-01-09 14:36:26 +00:00
Glenn L McGrath
9e59841375
arping applet by Nick Fedchik
2003-01-09 10:06:01 +00:00
Glenn L McGrath
dd3461af2f
Make output the same as upstream, patch by Tito
2003-01-09 10:00:49 +00:00
Glenn L McGrath
a69fd2ecf6
Patch by Stewart Brodie to terminate the string array correctly
2003-01-08 03:26:47 +00:00
Eric Andersen
e40500f9cb
Lineo has ceased to exist, and is no longer a sponsor.
2003-01-08 01:15:31 +00:00
Glenn L McGrath
7040ecc993
Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.
...
Oleynik
2003-01-06 16:27:07 +00:00
Glenn L McGrath
4d00129d0f
Correct column width for tab completion and ls
2003-01-06 01:11:50 +00:00
Glenn L McGrath
58c708af23
New applet: httpd, by Glenn Engel
2003-01-05 04:01:56 +00:00
Glenn L McGrath
c2e74ca934
Prepare for new busybox-cvs upload
2003-01-05 02:02:02 +00:00
Glenn L McGrath
ea2a1064b3
fixes for ia64
2003-01-05 00:43:00 +00:00
Glenn L McGrath
39dd4011e4
Sync with 20030104-2 cvs package, disable fdisk BSD label as they dont
...
compile on m68k
2003-01-04 13:45:42 +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
Eric Andersen
2c24bb80f9
Fix tab-tab listing of files so it properly reflects current
...
terminal width.
-Erik
2003-01-02 07:25:47 +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
Manuel Novoa III
a6685585d8
Add "Broadcast +" support back in. Also cut the size down some. Not well
...
tested, but it is the holidays...
2002-12-27 17:42:01 +00:00
Glenn L McGrath
87444efbab
Add usage for tar -j and -z
2002-12-27 00:45:35 +00:00
Glenn L McGrath
d4c8d1a97f
Sync with 20021214-1 debian package
2002-12-23 12:49:32 +00:00
Glenn L McGrath
76ff0da4d2
Support the obsolete '+' option
2002-12-23 11:54:56 +00:00
Glenn L McGrath
c00c56e7c8
Fix STANDALONE_SHELL and ALWAYS_WIN options, last_path_73 by Vladimir N. Oleynik
2002-12-23 10:23:10 +00:00
Glenn L McGrath
0a65e190f4
Support the '=' command
2002-12-23 10:16:12 +00:00
Glenn L McGrath
4d7f965c8e
Adjust for new .depend target
2002-12-20 10:06:38 +00:00
Glenn L McGrath
e86e4a2282
busybox target wasnt checking .depend, clean kbuild binaries only on distclean
2002-12-20 06:03:47 +00:00
Glenn L McGrath
0f18271a8a
Bugfix, wastn retrieving last block, patch by Jean-Christophe Dubois
2002-12-19 20:16:22 +00:00
Glenn L McGrath
1643f41986
When retrieving a file dont open file until we have to to prevent files of size 0 being created when retrieval fails, bug found by Jeff Angielski
2002-12-18 02:47:40 +00:00
Glenn L McGrath
688cf014af
Get interface names using ioctl rather than /proc, from Nick Fedchik
2002-12-17 12:43:43 +00:00
Eric Andersen
cf1fee06a5
Odd. I never brought this forward from bb.stable. Should handle
...
reaping child processes better.
-Erik
2002-12-17 09:48:16 +00:00
Robert Griebl
be2ae246fb
Always print the routing table header for IPv4:
...
- this is consistent with IPv6 route
- you can get very confused, if there are no routes and "route" prints
nothing at all (not even "No routes" message)
2002-12-16 22:04:18 +00:00
Robert Griebl
53f133ac33
changed most assignments from ":=" to "=" to allow setting some variables
...
at the command line (this is also needed for cross-compilation)
2002-12-16 21:55:39 +00:00
Glenn L McGrath
275be87be7
Only included headers that are used.
2002-12-16 07:37:21 +00:00
Glenn L McGrath
1e132dd4dd
fix warning
2002-12-16 06:40:37 +00:00
Tim Riker
cf93274663
rmmod -a removed modules recursively
2002-12-14 01:58:59 +00:00
Tim Riker
6fe1960ff5
cleanup
2002-12-13 22:59:15 +00:00
Eric Andersen
068b6b07ff
Don't build the ncurses stuff unless it is specifically asked for
...
-Erik
2002-12-13 22:53:28 +00:00
Tim Riker
c118f99f73
use const group_file
2002-12-13 22:02:12 +00:00
Glenn L McGrath
8b08bda66b
Fix bug when reading mac from command line, continue; if hwaddrr not found
2002-12-13 09:02:16 +00:00
Glenn L McGrath
25fe94fd32
Merge copyfd and copy_file_chunk
2002-12-13 08:20:44 +00:00
Glenn L McGrath
a67dffe186
Change ftpput so it uses <remote-path> <local-file> as it should
2002-12-13 05:57:46 +00:00
Glenn L McGrath
3b33dd9b1e
Fix possible bug if file length not known
2002-12-13 04:14:36 +00:00
Glenn L McGrath
02d7cbfe92
New applets, ftpget and ftpput
2002-12-13 02:43:50 +00:00
Glenn L McGrath
f03c933e47
New applet, nameif by Nick Fedchik and myself.
2002-12-13 00:01:44 +00:00
Glenn L McGrath
9130c85847
full usage cleanup for udhcp
2002-12-12 12:56:18 +00:00
Glenn L McGrath
6ed77595f1
Update email address for Gennady Feldman <gena01@gena01.com>
2002-12-12 10:54:48 +00:00
Glenn L McGrath
6d07432b2f
Support the o, f and p options, patch by Magnus M�rtensson
2002-12-12 10:31:53 +00:00
Eric Andersen
b8dff0c2a2
Teach addgroup to add user names to groups
2002-12-12 08:57:16 +00:00
Eric Andersen
b2bfd34a7b
hehe. Screwed that one up. Lets do things right this time.
...
-Erik
2002-12-11 22:59:39 +00:00
Eric Andersen
1f1c3f9485
Makefile rework coordinate with Russ so udhcp will behave
...
-Erik
2002-12-11 22:45:33 +00:00
Russ Dill
54fde9ea5c
slight change to reflect BB_VER change
2002-12-11 22:43:37 +00:00
Eric Andersen
f4b273cbb4
A cleaner cleanup that avoids passing an off_t to scanf
2002-12-11 21:45:08 +00:00
Russ Dill
9f4395c54e
sorry about all the noise, should be all synced up now
2002-12-11 21:40:46 +00:00
Russ Dill
920c1e8d6c
another sync to udhcp cvs
2002-12-11 21:39:13 +00:00
Eric Andersen
9701411d21
squash a warning
2002-12-11 21:34:04 +00:00
Glenn L McGrath
49b0f86043
Fix -mtime, by Ian Abbott
2002-12-11 21:22:21 +00:00
Glenn L McGrath
4501dbe509
Small bugfix, last_patch72 from Vladimir N. Oleynik
2002-12-11 21:13:00 +00:00
Russ Dill
1eb7a17b12
resync with udhcp cvs
2002-12-11 21:12:45 +00:00
Eric Andersen
d7e1a6c6eb
Make sure we have a show_usage function prototype
...
-Erik
2002-12-11 07:46:30 +00:00
Eric Andersen
392947c860
Fixup all the horrible broken function prototypes
...
-Erik
2002-12-11 07:42:46 +00:00
Eric Andersen
ece8fc2b9b
Squash a warning by making function declaration a proper prototype
2002-12-11 04:26:28 +00:00
Eric Andersen
29f9b2fbdb
Add missing header file to squash a warning
2002-12-11 04:25:02 +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
0552b9a7ff
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:57:12 +00:00
Glenn L McGrath
84cc4e7e3e
undefine sysinfo to prevent breakage on ia64
2002-12-11 03:55:52 +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
Eric Andersen
39438c7c17
Fixup header file ordering
2002-12-11 03:40:10 +00:00
Glenn L McGrath
b323162aab
Use libbb/get_line_from_file instead of getline
2002-12-11 03:10:13 +00:00
Glenn L McGrath
11adab0535
Sync debian files with debian package version 0.60.99.cvs20021209-2
2002-12-10 11:28:40 +00:00
Glenn L McGrath
7b4e89b9e3
Fix undefined behaviour and save some bytes as suggested by Manuel Novoa III
2002-12-10 03:16:37 +00:00
Glenn L McGrath
38386d7fed
include busybox after libc includes
2002-12-10 02:09:12 +00:00
Glenn L McGrath
b72a735a32
rpm applet by Laurence Anderson
2002-12-10 00:17:22 +00:00
Glenn L McGrath
62fae308a3
Realpath applet
2002-12-10 00:14:33 +00:00
Glenn L McGrath
9bf9f1edbe
Forgot to rename foo
2002-12-09 21:52:29 +00:00
Glenn L McGrath
919798d5a8
err.. Make clean in the scripts/config directory to remove some binaries
2002-12-09 21:16:39 +00:00
Glenn L McGrath
a94c3108b1
Make clean in the scripts directory to remove some binaries
2002-12-09 21:14:38 +00:00
Glenn L McGrath
584baeb47d
Stop linian warning about statically linked binary
2002-12-09 21:11:54 +00:00
Glenn L McGrath
fad90db887
Fix a debug message, from Bastian Blank
2002-12-09 21:05:40 +00:00
Glenn L McGrath
fdbbb04893
Command line history changes, lastpatch_71 from Vladimir N. Oleynik
2002-12-09 11:10:40 +00:00
Glenn L McGrath
6b5bd0e5ab
Support using ip in udhcpc scripts.
...
Slightly modified version of patch by Bastian Blank
2002-12-08 22:17:54 +00:00
Glenn L McGrath
c4698b3668
Updates for the new build system from Bastian Blank (waldi)
2002-12-08 20:45:47 +00:00
Glenn L McGrath
a6bbf7929c
Fix compile warning
2002-12-08 12:08:37 +00:00
Glenn L McGrath
35631a6e00
Fix compile warning with OSF
2002-12-08 11:51:05 +00:00
Glenn L McGrath
e167d69309
Change #include order to fix warning
2002-12-08 11:47:52 +00:00
Glenn L McGrath
8e49caa54f
Start to cleanup handling of the state file, save some space and uses linked lists.
2002-12-08 01:23:39 +00:00
Glenn L McGrath
66125c8065
Move add_to_list from libunarchive to libbb so it can be of more general use (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
2002-12-08 00:54:33 +00:00
Glenn L McGrath
346cdb1dde
Re-sort filenames to alphebetical order.
2002-12-07 23:56:14 +00:00
Glenn L McGrath
4a6b4e393c
Commit to reverse my previous commit, isnt cvs supposed to have some undo command ?
2002-12-07 23:30:11 +00:00
Glenn L McGrath
4e05b9b043
include "busybox" after the libc includes tofix compile errors
2002-12-07 23:14:40 +00:00
Glenn L McGrath
0325a1c9e3
Differentiate struct and type names
2002-12-07 07:45:42 +00:00
Glenn L McGrath
1d658263e8
Fix command that brings down loopback
2002-12-07 00:48:54 +00:00
Glenn L McGrath
80a60419f7
depends on for telnet and ipcalc
2002-12-06 23:11:30 +00:00
Glenn L McGrath
75360f951f
It shouldnt depend on itself
2002-12-06 23:05:22 +00:00
Glenn L McGrath
f795b027c6
Remove duplicate entry for kill
2002-12-06 22:45:07 +00:00
Glenn L McGrath
0337c467a0
Add some help descriptions
2002-12-06 22:40:54 +00:00
Eric Andersen
a6b9051e16
Allow for people to select no default shell
2002-12-06 21:49:59 +00:00
Eric Andersen
110ee23515
Do the dumb/obvious thing for the killall->kill dependancy
2002-12-06 21:44:50 +00:00
Eric Andersen
27e99c8f09
Fixup dumpleases compile problem
2002-12-06 21:42:56 +00:00
Eric Andersen
cc2bc454d1
Fix adjtimex applet compile
2002-12-06 21:41:09 +00:00
Eric Andersen
b077c9f47d
Fixup buffer allocation
2002-12-06 21:39:48 +00:00
Eric Andersen
da15a496e2
Make hush comple once again
2002-12-06 21:37:08 +00:00
Glenn L McGrath
398ff9d981
Use libbb/get_line_from_file, change default state file location
2002-12-06 11:51:46 +00:00
Glenn L McGrath
cdbe5e5d4c
Make mapping a config option again to save space, turn off file locking, do we really need it ?
2002-12-06 08:35:55 +00:00
Glenn L McGrath
9227371b71
Fix bug that stoped -a working
2002-12-06 08:10:40 +00:00
Eric Andersen
83fdb317a7
Kill link now pointing to porn site.
2002-12-06 02:22:20 +00:00
Eric Andersen
23b5146247
Put stuff back into a sub-menu
2002-12-05 21:25:20 +00:00
Eric Andersen
536018278a
Kill the now obsolete docs/Configure.help file, and move all existing
...
help texts into their respective Config.in file.
-Erik
2002-12-05 21:12:42 +00:00
Glenn L McGrath
f0a360ea19
Usage for klogd -c
2002-12-05 20:56:31 +00:00
Eric Andersen
08c358b604
Fix a silly oversight breaking cross compilation
...
-Erik
2002-12-05 18:28:41 +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
Glenn L McGrath
6f9b45b9ef
Unlink before mkdir, mknod, symlink to overwrite
2002-12-04 22:26:30 +00:00
Robert Griebl
350d26bbbb
- the number of commands in the history list is now configureable via the
...
config system
- added a new config option to allow persistant history lists. This is
currently only used by ash, but the calls ({load,save}_history) could
be added to the other shells as well.
2002-12-03 22:45:46 +00:00
Robert Griebl
3ba7ceebfc
print an error message if we can't load a module
2002-12-03 22:41:36 +00:00
Glenn L McGrath
7127b58baa
Fix crashme code, by Jim Treadway
2002-12-03 21:48:15 +00:00
Glenn L McGrath
bf91f2eb1b
Save 10 bytes or so, last_patch_70 from Vladimir N. Oleynik
2002-12-03 20:34:36 +00:00
Robert Griebl
69b5756594
A missing /etc/securetty is not an error when checking the tty name - the
...
comment is right, but the code was wrong ..
2002-12-03 19:54:12 +00:00
Glenn L McGrath
09adaca37d
last_patch_69, 8 bit clean and other fixes from Vladimir N. Oleynik
2002-12-02 21:18:10 +00:00
Glenn L McGrath
06b1aeaf0a
Its move to busybox-cvs-doc.docs
2002-12-02 21:14:56 +00:00
Glenn L McGrath
2626ef613e
Use compare_string_array in ipaddress to save a few bytes, minor cleanups
2002-12-02 01:40:05 +00:00
Glenn L McGrath
18eae0031a
Save a few more bytes
2002-12-02 00:54:10 +00:00
Glenn L McGrath
c82f2324bd
Save a hundred bytes or so on the do_iproute function
2002-12-02 00:35:23 +00:00
Glenn L McGrath
b963875a3e
Move compare_string_array to libbb
2002-12-02 00:01:36 +00:00
Glenn L McGrath
f112daa232
Enable ip commands to be compiled seperate from ip, modifed patch from Bastian Blank
2002-12-01 23:04:06 +00:00
Glenn L McGrath
f3faf41334
fix warning
2002-12-01 21:52:40 +00:00
Glenn L McGrath
b9e57f45f3
Fix the package name, patch from Bastian Blank
2002-12-01 20:16:01 +00:00
Glenn L McGrath
941eb80795
Build files from Bastian Blank
2002-12-01 11:38:56 +00:00
Glenn L McGrath
e1ad672216
add the -c option, modified version of a patch from Bastian Blank
2002-12-01 11:31:58 +00:00
Glenn L McGrath
6fc6d7fe4f
Patch from Bastian Blank (waldi) for debian installer
2002-12-01 02:09:19 +00:00
Glenn L McGrath
4d4ef19c76
I miscalculated on this one, change it back
2002-11-28 21:49:06 +00:00
Glenn L McGrath
82d2cd4ead
Clean up error messages
2002-11-28 12:45:48 +00:00
Glenn L McGrath
1b0813ab61
Minor error messages changes
2002-11-28 12:39:19 +00:00
Glenn L McGrath
d4de975cd2
Cleanup error messages
2002-11-28 12:35:46 +00:00
Glenn L McGrath
8b6024449f
Cleanup error messages
2002-11-28 12:19:51 +00:00
Glenn L McGrath
e3e2a7b41c
Syntax error
2002-11-28 12:01:25 +00:00
Aaron Lehmann
a170e1c858
Change if(x)free(x); to free(x);
2002-11-28 11:27:31 +00:00
Glenn L McGrath
1652855fbc
Style, error_msg
2002-11-28 11:17:19 +00:00
Glenn L McGrath
eaed78a91f
Style
2002-11-28 11:05:28 +00:00
Glenn L McGrath
cdf142af90
Woops, forgot they printout applet name as well....
2002-11-28 10:58:19 +00:00
Glenn L McGrath
9048ae5923
Use standard error messages
2002-11-28 10:56:38 +00:00
Glenn L McGrath
df72536f8e
Use error_msg instead of fprintf(stderr
2002-11-28 10:49:14 +00:00
Glenn L McGrath
68d949956a
Use error_msg instead of fprintf(stderr
2002-11-28 10:35:40 +00:00
Glenn L McGrath
b2e28a0e35
Use error_msg instead of fprintf(stderr
2002-11-28 10:27:50 +00:00
Glenn L McGrath
b122217d90
Use error_msg( instead of fprintf(stderr
2002-11-28 10:25:19 +00:00
Glenn L McGrath
642f28903a
Use error_msg instead of fprintf(stderr, other minor cleanups
2002-11-28 10:20:45 +00:00
Glenn L McGrath
30db423e11
Style, minor cleanups
2002-11-28 09:52:23 +00:00
Glenn L McGrath
efdd0aed23
Use error_msg instead of fprintf(stderr
2002-11-28 09:40:36 +00:00
Glenn L McGrath
d7d5f42934
Use error_msg instead of fprintf(stderr
2002-11-28 09:34:51 +00:00
Glenn L McGrath
d4036f86e5
Use erorr_msg( isntead of fprintf(stderr,
2002-11-28 09:30:40 +00:00
Glenn L McGrath
d211214d42
Use error_msg instead of printf(stderr
2002-11-28 09:22:14 +00:00
Glenn L McGrath
fedbfe4059
Style
2002-11-28 09:09:47 +00:00
Glenn L McGrath
8e027f6474
Use printf instead of fprintf(stdout
2002-11-28 08:37:46 +00:00
Glenn L McGrath
6ead3abd55
Save a few bytes in show_usage
2002-11-28 08:33:04 +00:00
Glenn L McGrath
9c802416ab
left out a \"
2002-11-28 00:51:38 +00:00
Glenn L McGrath
73ceca275e
This test was hanging
2002-11-28 00:47:49 +00:00
Glenn L McGrath
2601559fb6
Adds a dummy entry to make it easier to make custom debs
2002-11-27 23:40:46 +00:00
Glenn L McGrath
10d905ce27
Install symlinks for the udeb, dont install changelogs for the udeb
2002-11-27 23:24:49 +00:00
Glenn L McGrath
062c74f710
last_patch_68 from Vladimir N. Oleynik
2002-11-27 09:29:49 +00:00
Glenn L McGrath
ec87d37305
Check that one and only one of the [cxt] options is given
2002-11-27 07:52:22 +00:00
Glenn L McGrath
441e7efc72
fdisk applet by Vladimir N. Oleynik
2002-11-26 22:00:21 +00:00
Glenn L McGrath
0ff941e1c3
Name package busybox-unstable to keep a clean seperation between the official packages.
2002-11-26 09:05:15 +00:00
Glenn L McGrath
8ae4cab4a8
use #ifdef CONFIG_* instead of #if CONFIG_*
2002-11-26 09:02:06 +00:00
Glenn L McGrath
c5dced17c5
Required file for busybox-doc package
2002-11-26 03:38:14 +00:00
Glenn L McGrath
2f79f5b60d
Store a custom Rules.mak file to enable buildign static binaries
2002-11-26 03:08:31 +00:00
Glenn L McGrath
efc6fbd452
use #ifdef instead of #if
2002-11-26 03:03:41 +00:00
Glenn L McGrath
a2e24825a2
Include heaps of options as is tradional with this deb
2002-11-26 03:01:27 +00:00
Glenn L McGrath
d7fb1b372c
Use #ifdef instead of #if
2002-11-26 02:40:56 +00:00
Glenn L McGrath
2801eb925d
Fix simple syntax error
2002-11-26 02:23:41 +00:00
Glenn L McGrath
12371f916b
Make a seperate busybox-doc package
2002-11-26 02:16:06 +00:00
Glenn L McGrath
f66de64a11
Use vfork instead of fork, some more cleanup from Vladimir N. Oleynik
2002-11-25 23:57:27 +00:00
Glenn L McGrath
393ad1a834
Handle name entries that have a \0 in them, last_patch_65 from Vladimir N. Oleynik
2002-11-25 22:31:37 +00:00
Glenn L McGrath
bb2e9d47f3
last_patch_67 from Vladimir N. Oleynik
2002-11-25 22:12:28 +00:00
Glenn L McGrath
5b110874df
Dont need a seperate function
2002-11-24 23:22:29 +00:00
Glenn L McGrath
822e7fd587
When making parent directories set permissions based on the base parent tree rather than the new directory to be created.
2002-11-24 22:48:20 +00:00
Glenn L McGrath
eda4f53f2e
Add an input buffer (currently 32kB) to speed things up heaps, it still requires 25% longer to decompress as compared to upstream.
2002-11-24 06:01:20 +00:00
Glenn L McGrath
7b1eca265a
include libbb after stdlib.h as it breaks dmalloc
2002-11-24 01:32:56 +00:00
Glenn L McGrath
b7a76df4d1
Fix long filename support
2002-11-23 10:44:47 +00:00
Glenn L McGrath
1b16bf6b1b
New rules file for unstable
2002-11-23 07:14:55 +00:00
Glenn L McGrath
77dbaa48df
Config file for the static deb, based on options from the stable 0.60.5 branch
2002-11-22 23:00:16 +00:00
Glenn L McGrath
2997fca414
Config file for the standard debian package based on 0.60.5 options
2002-11-22 22:16:19 +00:00
Glenn L McGrath
30a35d20d9
The tunnel option isnt required for the ip command
2002-11-22 21:43:08 +00:00
Glenn L McGrath
f23fdf1717
Update configuration options
2002-11-22 11:39:42 +00:00
Glenn L McGrath
2f1f898228
Config file for udeb based on options from 0.60.5
2002-11-22 10:39:09 +00:00
Glenn L McGrath
157fea5960
Fix a vfork bug, by Nick Fedchik and Vladimir N. Oleynik
2002-11-21 22:17:11 +00:00
Glenn L McGrath
82701e4d67
Add entry for Laurence Anderson
2002-11-20 22:01:48 +00:00
Glenn L McGrath
83bf47c02f
Speed and memory usage improvements from Laurence Adnerson
2002-11-20 22:00:31 +00:00
Glenn L McGrath
0126fda5bb
read_gz patch 3 from Laurence Anderson
2002-11-20 06:46:46 +00:00
Glenn L McGrath
efe7889086
Headers for the read_gz changes
2002-11-19 21:07:17 +00:00
Glenn L McGrath
d1431073d1
Dont use xargs
2002-11-19 09:58:56 +00:00
Glenn L McGrath
83bcba26c0
dont use the -i option of xargs
2002-11-19 09:23:13 +00:00
Glenn L McGrath
a0d395eac9
Use read_gz, remove fork() woohoo!
2002-11-19 08:22:03 +00:00
Russ Dill
ae01fa99e1
udhcpc documentation update
2002-11-19 00:41:09 +00:00
Glenn L McGrath
50c00f4b45
Use error_msg_and_die, style
2002-11-18 07:26:42 +00:00
Glenn L McGrath
29d801b834
Remove mapping option, its should always be used
2002-11-17 21:48:11 +00:00
Glenn L McGrath
fd73b8c2ce
Patch from Laurence Anderson to provide a read_gz function, doesnt require fork(), pipe(), consistent with read_bz2 and more flexible.
2002-11-17 21:33:30 +00:00
Glenn L McGrath
36233bdd71
Remove #defines around get_header_ptr, we allways need it.
2002-11-16 21:34:57 +00:00
Glenn L McGrath
39289b54a7
Use vfork, by vodz
2002-11-15 22:18:01 +00:00
Glenn L McGrath
02fcd2d2df
Allow short reads as we are looping anyway.
2002-11-15 21:58:30 +00:00
Eric Andersen
5780adb586
Patch from Bastian Blank:
...
hi erik
the following patch fixes the handling of iproute add <route> dev <dev>.
the code got lost while removing things.
bastian
2002-11-15 09:12:47 +00:00
Glenn L McGrath
2666679692
Dont chdir untill after we open the archive
2002-11-15 08:48:47 +00:00
Eric Andersen
09eb000d7a
Patch from Marcel Hamer to fix addgroup argument parsing
2002-11-14 11:10:14 +00:00
Eric Andersen
f870148a04
A missing securetty file is not an error.
...
-Erik
2002-11-14 10:58:17 +00:00
Glenn L McGrath
e356883ffb
Minor cleanups
2002-11-13 00:24:20 +00:00
Glenn L McGrath
034c371bb2
Reduce block size to 512 to prevent short read's when reading from a pipe
2002-11-12 23:34:15 +00:00
Glenn L McGrath
9af8a72f10
Make ifupdown use internal run_parts
2002-11-11 07:03:02 +00:00
Glenn L McGrath
545106f8db
Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, moves the guts of run_parts to libbb to be used by ifupdown.
2002-11-11 06:21:00 +00:00
Glenn L McGrath
8f0722a53b
Move readlink, mktemp, run-parts and which to a new debianutils dir.
2002-11-11 03:00:12 +00:00
Glenn L McGrath
c11986d89e
ipcalc applet by Stephan Linz and Jordan Crouse
2002-11-10 23:42:27 +00:00
Glenn L McGrath
912d8f4cbc
run through indent and manually check result
2002-11-10 22:46:45 +00:00
Glenn L McGrath
f234e7c755
Config feature DEVPTS defined and used in telnetd, by Pavel Roskin
2002-11-10 22:26:19 +00:00
Glenn L McGrath
e16860df08
Will the real od.c please stand up! (my previous commit was a mistake)
2002-11-10 22:16:09 +00:00
Glenn L McGrath
3ff3f4ac35
Fix for hostname -s, by Stephan Linz
2002-11-10 22:07:48 +00:00
Glenn L McGrath
59870e89ae
Prevent a segfault if no argument, by Geoffrey Lee <glee@bluesat.unsw.edu.au>
2002-11-10 21:52:59 +00:00
Glenn L McGrath
f57674e9a9
Rewrite of xargs by Vladimir N. Oleynik
2002-11-10 21:47:17 +00:00
Glenn L McGrath
907a240b1c
last_patch57 from Vladimir N. Oleynik
2002-11-10 21:33:28 +00:00
Glenn L McGrath
5a7ec22c49
last_patch64 from Vladimir N. Oleynik <dzo@simtreas.ru>
2002-11-10 21:28:13 +00:00
Glenn L McGrath
eebe31d997
Fixup a previous define
2002-11-10 13:20:35 +00:00
Glenn L McGrath
49a28b3b5e
Make mapping support a definable feature, saves 1.6kB
2002-11-10 13:17:08 +00:00
Glenn L McGrath
8ae75013c8
Only compile the files in this dir if the IP applet is enabled
2002-11-10 10:20:45 +00:00
Glenn L McGrath
9a2d27249c
IP applet by Bastian Blank <waldi@debian.org>
2002-11-10 01:33:55 +00:00
Glenn L McGrath
021fa7db91
debian compatable ifup and ifdown commands
2002-11-09 09:34:15 +00:00
Eric Andersen
7ab93d9980
Teach lash to get $1 $2 $3 etc correct
...
-Erik
2002-11-08 09:40:02 +00:00
Glenn L McGrath
5703341123
#ifdef, not just #if... grrr
2002-11-08 08:07:38 +00:00
Glenn L McGrath
f6bf7a03fe
Fix reading from stdin (me), Fix tar segfault when no arguments specified (Geoffrey Lee)
2002-11-08 07:09:42 +00:00
Eric Andersen
b26674b2f8
Remove gratuitous and unnecessary "BusyBox" refernece in login prompt
...
-Erik
2002-11-07 02:45:55 +00:00
Eric Andersen
1713a11a26
Fix a stupid typo
2002-11-07 02:26:59 +00:00
Eric Andersen
ef5e8f8de0
Implement a small strings applet
2002-11-07 02:09:37 +00:00
Eric Andersen
f9496d4e44
Fix broken tabs
2002-11-07 02:06:58 +00:00
Glenn L McGrath
62d28828d6
Use a switch instead of successive if (strcmp()) statments.
2002-11-06 23:35:28 +00:00
Glenn L McGrath
747381c602
Split deb_extract() into more generic functions
2002-11-06 22:54:41 +00:00
Glenn L McGrath
ea12202288
Terminate the buffer with a '\0'
2002-11-06 22:31:45 +00:00
Russ Dill
0288c8e543
typo in udhcpc help
2002-11-05 20:13:41 +00:00
Russ Dill
da970859da
version number oops
2002-11-05 20:10:21 +00:00
Glenn L McGrath
d8d1191505
Support for bziped debs, i.e. use .tar.bz2 instead .tar.gz internally
2002-11-05 13:56:04 +00:00
Glenn L McGrath
7f2a95319b
Fail silently if a partial tar header is read as tar.bz2 is leaving trailing junk (not sure why), add some missing files
2002-11-05 02:56:57 +00:00
Glenn L McGrath
18bbca18ac
enable .tar.bz2 for dpkg-deb
2002-11-05 01:52:23 +00:00
Glenn L McGrath
8e94098423
Change filter paramaters, filters can be more powefull now
2002-11-04 23:47:31 +00:00
Glenn L McGrath
f92caa7619
Call lseek directly rather than via data_align()
2002-11-03 14:14:53 +00:00
Glenn L McGrath
237ae42fc9
Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j
2002-11-03 14:05:15 +00:00
Glenn L McGrath
2fc54a9258
Fix #define syntax
2002-11-03 12:50:33 +00:00
Glenn L McGrath
6ab32eb34c
Move data_extract_all_prefix to dpkg, its only used there.
2002-11-03 11:57:10 +00:00
Glenn L McGrath
b8e556e5f5
Add copyright notice and license, use strcat+strcpy instead of sprintf
2002-11-03 11:46:49 +00:00
Glenn L McGrath
9c60b29071
Use xread_char to save a few bytes, fix indenting of comments
2002-11-03 10:57:25 +00:00
Glenn L McGrath
60bce4905c
Move bunzip2 idecompression code to libunarchive
2002-11-03 07:28:38 +00:00
Eric Andersen
97b141ac69
Test for holes in swapfiles
...
-Erik
2002-11-03 00:25:23 +00:00
Glenn L McGrath
bf1cc8b1b7
Make uncompress a seperate applet so it doesnt pull in all the gunzip code
2002-11-01 23:38:54 +00:00
Glenn L McGrath
d6aec8619d
Allow short reads when filling compress buffer
2002-11-01 22:28:13 +00:00
Glenn L McGrath
9ef0944456
Allow the .Z prefix if compress support enabled
2002-11-01 22:11:53 +00:00
Glenn L McGrath
b2f67b4068
Make it a fatal error if bad chksum or crc, if not we should return an error code
2002-11-01 22:08:59 +00:00
Glenn L McGrath
563ac6e789
Report errror if the first magic character doesnt match
2002-11-01 21:40:52 +00:00
Russ Dill
f5ecd43473
sync to udhcp 0.9.8
2002-10-31 19:21:27 +00:00
Eric Andersen
1b6eb9b6eb
Use a nifty macro to make testing gcc features simpler
...
and much easier to read.
-Erik
2002-10-30 06:55:37 +00:00
Eric Andersen
df5b8679a2
Formatting
2002-10-27 06:14:44 +00:00
Eric Andersen
69051e817c
Update the webpage
...
-Erik
2002-10-27 06:08:30 +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
fda2b7ff47
A patch from Jouni Malinen to avoid some buffer overflows in vi,
...
closing bug #1270
2002-10-26 10:19:19 +00:00
Eric Andersen
12f834ccfc
Ivan Popov noticed that handling of PREFIX was bad.
...
-Erik
2002-10-26 10:17:24 +00:00
Eric Andersen
18921bd00d
A bugfix from Danny Lepage:
...
It seems that under busybox unstable, "tar -c -f - blabla" create
a tar file named "-" instead of writing to stdout.
The included patch should fix this.
2002-10-26 10:05:37 +00:00
Eric Andersen
5ad22c933c
This patch from Magnus Damm fixed a long standing problem
...
with freeing memory.
2002-10-25 12:14:02 +00:00
Eric Andersen
09da627a23
Fix warning
2002-10-22 22:15:33 +00:00
Eric Andersen
080ddc1c19
mjn3 noticed that crond and crontab had #include <pwd.h> and #include <grp.h>
...
but this conflicted with the internal pwd_.h and grp_.h. Removing these
headers is correct, since the correct pwd/grp headers will be included via
busybox.h
-Erik
2002-10-22 20:08:51 +00:00
Eric Andersen
5e02c67331
vodz forgot to include the suid field
2002-10-22 20:01:08 +00:00
Eric Andersen
fe5b1a9f3c
Apply patch from bug #1278 -- fix usage message for the
...
start_stop_daemon applet.
2002-10-22 19:21:48 +00:00
Eric Andersen
72e1212ad8
vodz writes:
...
Oops... Last patch 63 have small typo (stable/devel) mixing.
Attached patch removing lines from TODO also :)
2002-10-22 19:19:13 +00:00
Eric Andersen
f02c26f1ef
I committed the fflush in the wrong spot. I should go to bed
...
earlier so I don't screw up such easy stuff.
-Erik
2002-10-22 19:15:43 +00:00
Eric Andersen
f6f7bfb8e0
last_patch63 from vodz: add in crond and crontab applets
2002-10-22 12:24:59 +00:00
Eric Andersen
44608e9693
Patch last_pach62 from vodz. This patch moves all the /proc parsing
...
code into libbb so it can be shared by ps, top, etc, saving over 1.5k.
2002-10-22 12:21:15 +00:00
Eric Andersen
1887b0478f
Apply last_patch51_3 from vodz
2002-10-22 11:58:59 +00:00
Eric Andersen
5956028f6f
Be absurdly careful about flushing stdout.
2002-10-22 11:45:20 +00:00
Glenn L McGrath
9ffd5776eb
Move unzip.c uncompress.c from libbb to archiveal/libunarchive
2002-10-22 01:07:32 +00:00
Glenn L McGrath
0d53ebdc52
gz_open is used anymore, use inflate directly, see how its done in get_header_tar_gz
2002-10-21 06:29:55 +00:00
Glenn L McGrath
4298e87fa5
Dont try and make the "/" directory
2002-10-19 23:56:41 +00:00
Glenn L McGrath
61b7904afd
Update dpkg to use new unarchive code
2002-10-19 10:40:55 +00:00
Glenn L McGrath
c5c1a8a112
Fix exclude/include problem
2002-10-19 06:19:22 +00:00
Glenn L McGrath
05fa661123
Find a string in a list
2002-10-19 05:10:51 +00:00
Glenn L McGrath
25bca9566d
Remove entries from the accept list as they are matched so we can determine if any files that were specified in the list wernt found.
2002-10-19 02:18:51 +00:00
Glenn L McGrath
98f824aa22
Dont use absolute pathname (dunno why i did that), fix tar filename/stdin problems
2002-10-19 00:46:35 +00:00
Glenn L McGrath
934805aec1
Put bac kthe code that handles cases where a '-' wasnt specified prior to the options.
2002-10-18 23:59:40 +00:00
Eric Andersen
2a2ab1479c
Fix an obvious thinko
...
-Erik
2002-10-18 22:31:02 +00:00
Eric Andersen
431a18497d
disambiguate a test
2002-10-18 22:18:10 +00:00
Eric Andersen
31f9747a23
Fix needless formatting differences vs modutils
2002-10-18 22:14:07 +00:00
Eric Andersen
d69e31fb93
Fix needless difference vs GNU
2002-10-18 22:13:23 +00:00
Russ Dill
1977a60de4
missed add for udhcp
2002-10-14 21:47:07 +00:00
Russ Dill
61fb48930f
added full udhcp integration
2002-10-14 21:41:28 +00:00
Eric Andersen
9060a73159
Doh! I screwed up applying vodz' patch.
...
-Erik
2002-10-12 04:16:08 +00:00
Eric Andersen
e8a90fb2bc
After thinking about it, I think this patch from Matt Kraai is probably the
...
best way to go. Sysvinit does not provide a controlling tty since it doesn't
even try to open ttys for apps. We do. So we should _try_ to provide a
controlling tty if possible, but we needn't freak out if it doesn't work. This
way we won't need to use openvt or similar, we'll just have init do the Right
Thing(tm).
2002-10-12 04:05:48 +00:00
Eric Andersen
71ae64bdc6
last_patch61 from vodz:
...
New complex patch for decrease size devel version. Requires previous patch.
Also removed small problems from dutmp and tar applets.
Also includes vodz' last_patch61_2:
Last patch correcting comment for #endif and more integrated
with libbb (very reduce size if used "cat" applet also).
Requires last_patch61 for modutils/config.in.
2002-10-10 04:20:21 +00:00
Eric Andersen
fdfe298a96
last_patch60 from vodz:
...
login and getty applets writes utmp/wtmp but init do clearing not.
I think, in current time deny wtmp/utmp writes as undefault features.
2002-10-10 03:55:09 +00:00
Eric Andersen
d274b53c1d
last_patch59 from vodz to cleanup chmod and correctly parse '-rwxgoa'
2002-10-10 03:47:01 +00:00
Eric Andersen
1bb1e83454
last_patch58_2 from vodz -- add FEATURE_CPU_USAGE_PERCENTAGE option
2002-10-10 03:44:12 +00:00
"Steven J. Hill"
adb058b0de
Fixed the script. It always put output to 'stdout' and never to
...
the 'modules.dep' file.
2002-10-08 21:33:51 +00:00
Eric Andersen
a39342b131
Remember to delete docs/busybox.pod
2002-10-08 19:31:04 +00:00
Eric Andersen
528649463f
Fix missing \n noticed by Robert Schwebel
2002-10-08 09:38:07 +00:00
Glenn L McGrath
2983330512
Fix segfault when testing if reaidng from stdin "-"
2002-10-06 23:25:23 +00:00
Eric Andersen
e0f5500bb5
Fix init docs
2002-09-30 20:59:33 +00:00
Eric Andersen
506177df7f
Bugfix from Claudio Fleiner <claudio@fleiner.com>
2002-09-30 20:53:38 +00:00
Eric Andersen
08a72209c9
last_patch58 from vodz:
...
Ok. I generate patch for include to busybox-devel my work with
top (original author give me maintaining) and telnetd (my
support and unofficial maintaining) applets. Docs changes
also: added awk, netstat, time applets to list ;)
2002-09-30 20:52:10 +00:00
Eric Andersen
02e6ba91e8
Vodz' last_patch57:
...
Hi, Erik.
my_getpw(uid/gid) and applets used it have problem:
if username for uid not found, applets can`t detect it
(but code pessent). Also "%8ld " format is bad:
spaces not required (applets have self format
or spec format (tar applet) and overflow for "id" applet...)
This problem also pressent in stable version.
Patch for unstable in attach.
--w
vodz
2002-09-30 20:39:56 +00:00
Eric Andersen
a6f6e06107
Fix dependancy so we rebuild busybox.o, usage.o and busybox.o
...
whenever the config changes.
-Erik
2002-09-30 20:39:12 +00:00
Eric Andersen
ad082987d0
Use %m, not strerror, and strerror(err) was broken anyways and should have been
...
strerror(errno). Problem noted by Alexey V. Neyman <alex.neyman@auriga.ru >
2002-09-30 20:20:20 +00:00
Eric Andersen
d9d47c3078
Patch from Konstantin Isakov <ikm@pisem.net>:
...
In most cases, dirname returns the same argument it was given, so this code
works nice, but there's one special case: when the name contains no
dirname, it returns "." (stored statically in the body of itself), and we
get a segfault in attempt to free() it.
This patch fixes this problem.
2002-09-30 20:14:57 +00:00
Eric Andersen
aa1d6ccbfb
Don't even try to run ash on uClinux. It won't work.
...
-Erik
2002-09-30 20:12:32 +00:00
Eric Andersen
6a9799020b
Set the close-on-exec flag, just to be saf
2002-09-30 20:08:53 +00:00
Eric Andersen
e4d2a43951
Doh. We divide microseconds by 60?
2002-09-30 19:37:48 +00:00
Glenn L McGrath
5c99581880
Save status so we know if to delete compressed file
2002-09-30 05:30:29 +00:00
Glenn L McGrath
924f93e848
make_directory() will fail instantly so we dont need to test for failure here
2002-09-28 08:32:14 +00:00
Glenn L McGrath
891ee641cb
Fail straight away rather than recursively printing error messages :)
2002-09-28 08:30:47 +00:00
Glenn L McGrath
8132e933e6
Fix for using '-' as the filename when reading from stdin
2002-09-28 02:06:39 +00:00
Eric Andersen
92052e3945
Bug fix from Nitin Gupta <gupta@equator.com>
2002-09-27 23:34:53 +00:00
Glenn L McGrath
2e41d0cb77
Fix compress support and prevent a segfault
2002-09-27 06:46:02 +00:00
Glenn L McGrath
a47a3eada6
Fix simple define problem
2002-09-26 16:01:21 +00:00
Eric Andersen
6f2ebcaa01
Avoid calling exit() from within fork/vfork'ed processes.
...
-Erik
2002-09-26 13:59:40 +00:00
Eric Andersen
a920871c3a
Ignoring SIGCHLD causes a race leading to the occasional hang of init
...
when init will wait() on itself in waitfor() when the child exits before
init is scheduled to run. Letting init hang is very seriously bad.
-Erik
2002-09-25 15:08:40 +00:00
Glenn L McGrath
5a66b640f9
Reverse some minor changes that got caught up in my big unarchive patch
2002-09-25 06:08:19 +00:00
Glenn L McGrath
69eab26401
Remove files made obsolete by new unarchiving code
2002-09-25 03:04:03 +00:00
Glenn L McGrath
7ca04f328e
New common unarchive code.
2002-09-25 02:47:48 +00:00
Eric Andersen
ecfa290cfd
Fixup largefile settings
...
-Erik
2002-09-22 12:09:44 +00:00
Glenn L McGrath
b3f7261ffe
Fix error messages conditions, and make them the same as GNU mkdir.
2002-09-22 02:12:30 +00:00
Eric Andersen
3a1d8377ab
don't leak FILEs
2002-09-20 07:33:18 +00:00
Eric Andersen
19feada06f
update the noise a tiny bit
2002-09-18 20:52:26 +00:00
Eric Andersen
7695b7b5f4
Update webpage
2002-09-18 20:48:20 +00:00
Manuel Novoa III
d499330e9e
Commit vodz's patch, plus a tweak to change TracePid to TracerPid. Now
...
works on i386 (2.4.19) and arm (2.4.6).
2002-09-18 19:27:10 +00:00
Eric Andersen
06c35da6af
patch from John Hall <john.hall@optionexist.co.uk> to change the
...
klogd specific messages to facility LOG_SYSLOG and tidies up some
of the priorities.
2002-09-18 14:23:06 +00:00
Eric Andersen
420b208a45
Add a new top applet
...
-Erik
2002-09-17 22:14:58 +00:00
Eric Andersen
793c3b4a7d
Clear screen too.
2002-09-17 21:21:27 +00:00
Eric Andersen
dc180d1442
re-enable the cursor, in case it got disabled
...
-Erik
2002-09-17 21:17:35 +00:00
Manuel Novoa III
6c32a8add4
Modified so that it "works" for archs other than i386... arm in particular.
...
Also tried to clean up the logic a little, and ensure that read errors
or invalid archives resulted in error returns. This could use a lot more
work... Volunteers?
2002-09-17 21:02:16 +00:00
Eric Andersen
60943c5d5c
Sane-ify the screen clearing stuff.
...
-Erik
2002-09-17 20:53:41 +00:00
Eric Andersen
39ad2833c0
hehe.
2002-09-17 20:35:58 +00:00
Eric Andersen
871d93c462
Vodz' last_patch57:
...
Ok. Patch with reduce size ready.
Notes: syslogd imposible close logsocket,
the real programm write logmessages (hmm, cycle loop?)
(Excuse me - this have small tab-formats rewroting also)
text data bss dec hex filename
2913 332 12388 15633 3d11 syslogd.o
3109 332 9252 12693 3195 syslogd_old.o
2002-09-17 20:06:29 +00:00
Eric Andersen
927c3bdc18
Support setting depth
2002-09-17 08:44:56 +00:00
Eric Andersen
a9a220b92a
last_patch56 from vodz to simplify copy_file logic
2002-09-17 08:42:21 +00:00
Eric Andersen
bf8bf105fb
Patch from "Joe.C" <joe@numa.com.tw>
2002-09-17 08:41:08 +00:00
Eric Andersen
34fd00af5f
Patch from David McCullough <davidm@snapgear.com>
2002-09-17 08:40:12 +00:00
Eric Andersen
7365c58783
Use "MiB" not "Mb"
...
-Erik
2002-09-17 06:36:56 +00:00
Eric Andersen
bdff6a4c59
Typo fix from Steven Merrifield
2002-09-17 05:43:26 +00:00
Eric Andersen
d4ee98940b
last_patch55 from vodz:
...
I found overflow problem in xargs applet
(allocated not space for trailing '\0').
Last patch also reduce 22 bytes size. ;)
2002-09-16 10:44:24 +00:00
Eric Andersen
02b8dfc524
Let people force overwrite links
...
-Erik
2002-09-16 10:23:38 +00:00
Eric Andersen
403a73a351
Properly honor FILEUTILS_INTERACTIVE and FILEUTILS_FORCE for
...
file all file types (not just regular files and dirs). Unlink
destination files when needed.
-Erik
2002-09-16 09:23:22 +00:00
Glenn L McGrath
18b76e6f80
Watch applet by Michael Habermann
2002-09-16 09:10:04 +00:00
Eric Andersen
8fede28c74
Patch from Matthias Lang <matthias@corelatus.se> to fix gunzip
...
error handling and prevent gunzip from hanging.
2002-09-16 07:25:41 +00:00
Eric Andersen
a9cc8961ed
Let people run SHUTDOWN actions prior to killing everything
...
-Erik
2002-09-16 06:49:06 +00:00
Eric Andersen
e18cb71e0c
Fix stupid typo noticed by John Mullin <john.mullin@homenetcomm.com>
2002-09-16 06:32:16 +00:00
Eric Andersen
c38678d14b
Apply vodz' last_patch52
2002-09-16 06:22:25 +00:00
Eric Andersen
166fa4684f
Support module tainting
...
-Erik
2002-09-16 05:30:24 +00:00
Glenn L McGrath
061c900176
mesg applet by Manuel Novoa III
2002-09-16 04:21:46 +00:00
Glenn L McGrath
ebdc8b48a5
Put in GPL v2 or later copyright notice
2002-09-16 03:47:48 +00:00
Glenn L McGrath
ec0c48cb29
openvt applet by Quy Tonthat
2002-09-16 03:16:06 +00:00
Glenn L McGrath
6714862bdd
Use busybox's show_usage function for help
2002-09-15 17:20:45 +00:00
Glenn L McGrath
7a32aaacd0
Awk applet written from scratch by Dmitry Zakharov
2002-09-15 17:03:48 +00:00
Glenn L McGrath
b3c4e9add5
Support for GNU style long filename and linknames
2002-09-15 16:54:49 +00:00
Eric Andersen
186685d46f
Patch from Thomas Gleixner <tglx@linutronix.de> to do
...
automatic child reaping to avoid zombies
2002-09-12 15:44:53 +00:00
Manuel Novoa III
4d0884a1ea
Apply vodz's last_patch53.gz (bb_asprintf.c) and last_patch54.gz
...
(arith.c).
2002-09-12 14:52:26 +00:00
Eric Andersen
7829b8d067
Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>
2002-09-10 06:03:31 +00:00
Eric Andersen
2a1eb31f18
Yipe. uid and gid were reversed.
...
-Erik
2002-09-10 05:23:29 +00:00
Eric Andersen
2bec97c076
Some CML1 grammar fixes
...
-Erik
2002-09-01 06:45:55 +00:00
Eric Andersen
1130976f8e
Eliminate use of obsolete sys_errlist[]
...
-Erik
2002-08-26 21:36:32 +00:00
Glenn L McGrath
c3b7f7d6e7
chmod on the NEW file
2002-08-26 17:17:27 +00:00
Glenn L McGrath
193697db4e
Dont return an error if the directory already existed
2002-08-24 20:11:38 +00:00
Glenn L McGrath
210aa14916
Fix warning
2002-08-24 20:00:52 +00:00
Glenn L McGrath
abac53b33c
Reorganise, make it just one function, remove -v option it didnt work properly anyway, dont setvbuf it doesnt make any difference in performance.
2002-08-24 14:32:17 +00:00
Glenn L McGrath
1ee52e8b14
Run through indent, use braces
2002-08-24 10:30:36 +00:00
Aaron Lehmann
933d10d308
Remove extrangeous backslashes that were probably introduced by
...
someone joining lines and forgetting to remove the backslash escaping
the newline.
2002-08-23 22:09:50 +00:00
Glenn L McGrath
fbef225c4b
Rewrite, its smaller
2002-08-23 17:19:26 +00:00
Glenn L McGrath
192ff35d9c
Remove empty loops
2002-08-23 14:36:59 +00:00
Glenn L McGrath
0be933b505
Use static instead of extern, braces around if's, run through indent
2002-08-23 14:31:28 +00:00
Glenn L McGrath
50812fff21
Apply vodz last_path_51-2
2002-08-23 13:14:48 +00:00
Glenn L McGrath
de9e803149
Apply vodz last_patch51_2 and run through indent
2002-08-23 12:04:23 +00:00
Aaron Lehmann
e599b6d96e
Don't #ifdef __linux__. this is linux.
2002-08-23 07:56:21 +00:00
Aaron Lehmann
7dd2cec2fd
ansify
2002-08-23 07:52:58 +00:00
Aaron Lehmann
84878fe20e
remove duplicate definition of G
...
caught by tinycc
2002-08-23 07:51:01 +00:00
Aaron Lehmann
0df910af49
for some baffling reason tinycc insists that i change this 0 to NULL
2002-08-23 07:45:26 +00:00
Aaron Lehmann
5d3cb7cc1f
move some globals to bss
2002-08-23 07:28:45 +00:00
Glenn L McGrath
8042f65398
Run through indent, style
2002-08-23 06:17:46 +00:00
Glenn L McGrath
acfc0d872e
Run through indent, fix comments
2002-08-23 06:05:11 +00:00
Glenn L McGrath
03195fc16f
Run through indent, fix comments
2002-08-23 05:58:38 +00:00
Glenn L McGrath
a199b17253
Run through indent, specify cast
2002-08-23 03:37:07 +00:00
Glenn L McGrath
14dad7028b
Run through indent
2002-08-23 03:25:22 +00:00
Glenn L McGrath
1ed9dd9d06
Remove duplicate definitions, run through indent
2002-08-22 19:35:36 +00:00
Glenn L McGrath
4534af2763
replace some global const ints with defines
2002-08-22 19:31:35 +00:00
Glenn L McGrath
0775a07d87
Specify cast
2002-08-22 19:22:32 +00:00
Glenn L McGrath
4cc2e5e944
Remove duplicate variable definition
2002-08-22 19:15:26 +00:00
Glenn L McGrath
9fef17dec3
Run through indent, fix comments
2002-08-22 18:41:20 +00:00
Glenn L McGrath
7c58e9be69
Run through indent, fix comment
2002-08-22 18:24:43 +00:00
Glenn L McGrath
baf55a85fc
Run through indent, fix comments
2002-08-22 18:22:10 +00:00
Glenn L McGrath
e3906fcd94
Run through indent, fix BB_ define
2002-08-22 18:13:54 +00:00
Glenn L McGrath
99b12543cf
Run through ident, fix comments
2002-08-22 17:47:09 +00:00
Glenn L McGrath
242e3b6bde
define inline if needed for ANSI C compatability
2002-08-22 15:59:18 +00:00
Glenn L McGrath
60a22addea
Remove unwanted comments, run through indent
2002-08-22 15:54:22 +00:00
Glenn L McGrath
a0ee881ba4
Run through indent, use /* */ style comments, change extern to static
2002-08-22 13:44:08 +00:00
Glenn L McGrath
4176972db5
Run through indent, use /* */ style comments
2002-08-22 13:25:12 +00:00
Glenn L McGrath
d827e8b665
Run through indent
2002-08-22 13:21:26 +00:00
Glenn L McGrath
b37367aa77
Run through indent, use /* */ style comments instead of //
2002-08-22 13:12:40 +00:00
Glenn L McGrath
f853db54f9
Remove definition of is_octal and is_decimal, they arent used
2002-08-22 12:55:26 +00:00
Glenn L McGrath
75762705a3
Honour the USTAR prefix field, this enables a 155 byte path length plus the normal 100 byte filename.
...
The catch is gnu tar cannot create archives that use the prefix field, you need to use s-tar.
2002-08-22 11:50:31 +00:00
Glenn L McGrath
419eed7501
udhcpc sample scripts
2002-08-21 14:24:38 +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
8fc5d6d2da
Tar inlining, #if 0 out unused function
2002-08-21 13:11:34 +00:00
Aaron Lehmann
6fdacc74f0
vi inlining
2002-08-21 13:02:24 +00:00
Aaron Lehmann
a95e99e6f3
Cleanups. These SHOULD make the binary a lot smaller. But they don't.
...
CURSE GCC
2002-08-21 12:44:54 +00:00
Glenn L McGrath
d9768d7cb9
Disable debugging
2002-08-21 11:44:31 +00:00
Aaron Lehmann
1ff58b6570
Clean up udhcpd a bit. Constify. Staticize. Remove these functions and
...
inline their contents: print_usage, pidfile_delete, and background.
2002-08-21 11:21:19 +00:00
Glenn L McGrath
8eb0dc1d10
New applet, udhcp client
2002-08-21 10:27:58 +00:00
Glenn L McGrath
3d184586a7
Fix dietlibc test condition
2002-08-15 03:29:56 +00:00
Eric Andersen
938e982c4d
Try to be a bit more dietlibc friendly
2002-08-13 09:57:44 +00:00
Glenn L McGrath
1d23f3a492
Enable support for the old tar header format, enable via menu's
2002-08-13 05:06:43 +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
91a0aac110
Added Familiar Linux to the projects list
2002-08-09 22:54:39 +00:00
Robert Griebl
2ab6ff95e0
Patch from Rusell Nelson to document the -C switch for syslogd
2002-08-07 21:24:33 +00:00
Robert Griebl
65d415d847
Added a help text for the -C option to syslogd
2002-08-07 21:10:19 +00:00
Robert Griebl
00f5ecb141
Somehow I applied an old patch for the last commit - this one works now:
...
- Added \CregexC support to sed (sed testsuite reported no errors, btw)
2002-08-06 23:13:31 +00:00
Robert Griebl
7940147e25
Added the \CregexpC syntax as an alternative for /regexp/ (like GNU sed)
2002-08-06 21:07:17 +00:00
Manuel Novoa III
edcac5572f
Fix silly typo. addgroup was using /etc/shadow for /etc/gshadow.
2002-08-06 20:39:23 +00:00
Manuel Novoa III
f8277ca992
Move #define MAXLINE so this compiles without circ buffers.
2002-08-06 20:12:56 +00:00
Eric Andersen
74b007f7cc
Oops. Code things so it actually works this time around...
...
-Erik
2002-08-05 11:56:25 +00:00
Eric Andersen
c59716ff4c
Joel Coltoff <joel@wmi.com> noticed that following a recent
...
change in uClibc that changed opening the /dev/log socket as
SOCK_STREAM to SOCK_DGRAM, busybox syslogd no longer worked
since it needed a matching change. This fixes it so it
works once again.
2002-08-05 11:14:30 +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
0d833ca7fd
Fixed a bug in xarg: string data was strcat'ed to a malloc'ed buffer - and
...
malloc does not clear memory by default (somehow this worked on x86, but
not on arm)
2002-08-03 14:49:03 +00:00
Aaron Lehmann
49c024addd
Remove ckfree, and replace all references with free. Remove freefunc,
...
which is also equivilent to free. Remove some if(x)free(x)
redundancies.
2002-08-02 06:39:47 +00:00
Eric Andersen
e85dbfdd80
Joseph Chiu <josephc@idealab.com> found an off-by-one bug. oops!
2002-08-01 01:31:17 +00:00
Robert Griebl
a71389bfe8
Applied a patch from Philip Blundell <pb@nexus.co.uk>:
...
Added support for ":x" as an alias for ":wq" to vi
2002-07-31 21:22:21 +00:00
Eric Andersen
7373e485d3
A couple of small bugfixes from Marshall M. Midden <m4@brecis.com>
2002-07-31 04:04:47 +00:00
Eric Andersen
87715170cc
Be more portable with 'find' for those that prefer programming
...
on *BSD, etc. Formatting fixes, etc.
2002-07-31 03:45:05 +00:00
Robert Griebl
b230159958
Fixed a timing bug which occured when bb ash is run in a rxvt on the
...
HP iPAQ. Sometimes we get a SIGWINCH and want to print the prompt, although
the prompt is not yet initialised (0) .. so just don't print a prompt
as long as the prompt string is 0
2002-07-30 23:13:51 +00:00
Robert Griebl
df03932b7e
Added the -I (isofmt) options to date, which comes in handy for scripts
...
(this is a confiureable option)
2002-07-30 23:11:00 +00:00
Robert Griebl
70112da81a
Fixed a bug that I had introduced with the new "options" handling.
2002-07-29 20:28:38 +00:00
Eric Andersen
e707806894
Kill a silly warning
2002-07-29 08:00:16 +00:00
Eric Andersen
3bc2b206b0
Patch from Tim Riker to allow tty* in inittab if the tty
...
actually exists -- serial console is not the issue...
2002-07-29 06:39:58 +00:00
Robert Griebl
aead70b4d1
modprobe now also uses "options" from /etc/modules.conf
2002-07-26 15:54:20 +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
31a2e20bd3
Commited patch from bug #1182
...
Although ssrat@mailbag.com says this is not GNU behaviour, it really *is*
(man nslookup)
2002-07-24 00:56:56 +00:00
Robert Griebl
41369af3f2
Patch for bug #1183 : Added a -xdev option to find (configurable)
2002-07-24 00:34:48 +00:00
Eric Andersen
80cd3cfdbc
Fix indentation. Support killall -q, for pcmcia-cs
...
-Erik
2002-07-23 23:45:11 +00:00
Robert Griebl
f2f26e7fdd
Added tar -cz support (creating gzipped tar files without a gzip pipe)
2002-07-23 22:05:47 +00:00
Robert Griebl
967c3d4406
Fixed two compiler warnings
2002-07-21 17:33:27 +00:00
Robert Griebl
1cd0445495
Initial checkin of a very primitive hwclock replacement
2002-07-21 16:50:49 +00:00
Robert Griebl
fc78b79575
Applied syslogd fix submitted by Bart Visscher:
...
I am using BB 0.60.2 in a floppy distro, and the syslog (and logger) is
unable to log the "<" char. This shows up in ppp logfiles. [...]
#logger "<pcomp>" results in "comp>" arriving at the log.
2002-07-19 20:52:21 +00:00
Robert Griebl
efd4983eb1
- Forgot to cvs add bb_asprintf.c (from vodz' patch #50 )
...
- Applied Joel Coltoff's xconnect patch:
On both my host system and with mipsel-linux for my embedded systems
the function getservbyname() gives the port number already in host order.
In fact, this is how it was used by rdate in version 0.60.3. The snapshot
I have of the development tree from July 12, 2002 takes the port number
and stuffs it into htons() before it uses it. This causes bugs in rdate,
telnet and wget. This patch fixes that.
2002-07-19 20:27:11 +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
Robert Griebl
88947dd05e
Added a compile time option to suppress the "Using fallback.." message
...
if no busybox.conf file is existant.
2002-07-18 23:59:17 +00:00
Robert Griebl
2c0d0f0051
Fix for the totally broken adduser applet (parts/ideas from vodz and tito)
2002-07-16 23:50:05 +00:00
Robert Griebl
e4f9f3a960
Don't treat a non-existant/-readable config file as an empty config, but
...
use the compiled in _BB_SUID_* flags (same as for parse errors)
2002-07-16 21:53:59 +00:00
Eric Andersen
0fe3e62e2c
Doh!
2002-07-14 15:39:05 +00:00
Eric Andersen
d2fd0d5869
Better clarify the CVS tree situation
...
-Erik
2002-07-13 06:24:58 +00:00
Eric Andersen
acc257e994
Try to be more clear about the current two-CVS-trees
...
situation.
-Erik
2002-07-13 06:08:39 +00:00
Robert Griebl
e8fcf4bd69
Accept the --passive-ftp cmd.line option. We always use passive ftp mode,
...
so it doesn't hurt (adds compatibility though)
2002-07-12 00:04:46 +00:00
Eric Andersen
2276d83639
Fixup warnings and undefined operations that show up in gcc-3.1
...
-Erik
2002-07-11 11:11:56 +00:00
Eric Andersen
cafc103230
Brad Campbell <brad@seme.com.au> notes that
...
xconnect.c needs #include <netinet/in.h>
to compile if CONFIG_FEATURE_IPV6 is not defined
2002-07-11 10:40:43 +00:00
Eric Andersen
1785ddcae2
Some minor bits of scrubbing
2002-07-08 01:40:02 +00:00
Eric Andersen
8e139871fe
Patch from Stewart Brodie <stewart.brodie@pace.co.uk> to fix ash:
...
When alias support is not configured, ash believes that command parameters
that look like dd's "if=/dev/zero" are requests to set a temporary
environment variable whilst dd is running, even though it appears after the
command name. This is caused by the re-use of the checkalias global variable
to indicate when both alias checking and environment variable checking. The
failure to reset this flag is due to the reset action being performed only
inside the feature check CHECK_ASH_ALIAS. Hence ash works as expected when
aliases are configured in, and fails when not.
Example script using 'date' with different settings of TZ:
# TZ=Europe/London
# export TZ
# date
Thu May 30 17:18:49 BST 2002
# TZ=America/New_York date
Thu May 30 12:19:10 EDT 2002
# date
Thu May 30 17:19:12 BST 2002
# date TZ=America/New_York
Thu May 30 12:19:30 EDT 2002 <----- wrong, should be BST time (or error!)
# date
Thu May 30 17:19:35 BST 2002
Attached is a patch against revision 1.52 of ash.c which moves the checks so
that checkalias is updated regardless of whether CONFIG_ASH_ALIAS is set.
With this patch applied, the command shown above which should generate an
error does generate an error.
I have tested this patch with the 'dd' command too and that now works
correctly.
2002-07-04 00:19:46 +00:00
Eric Andersen
0826b6b0b3
This is last_patch48 from vodz. More cleanups, kills a bit
...
of dead code, fixes one blatent bug.
2002-07-03 23:50:16 +00:00
Eric Andersen
887ca79f04
Scrub pwd.h and grp.h handling so we don't have to play any
...
silly games.
-Erik
2002-07-03 23:19:26 +00:00
Eric Andersen
360e254954
tito <farmatito@tiscali.it> noticed that delgroup was actually
...
setting CONFIG_DELUSER. Oops.
2002-07-03 19:50:23 +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
Eric Andersen
51b8bd68bb
This patch from Bart Visscher <magick@linux-fan.com> adds
...
IPV6 support to busybox. This patch does the following:
* Add IPv6 support to libbb
* Enable IPv6 interface address display
* Add IPv6 config option
* Adds ping6, an adaptation of the ping applet for IPv6
* Adds support routines for ping6:
- xgethostbyname2
- create_icmp6_socket
* Adds ifconfig support for IPv6
* Add support IPv6 to netstat
* Add IPv6 support to route
Thanks Bart!
2002-07-03 11:46:38 +00:00
Eric Andersen
599e3ce163
Apply last_patch47 from vodz to fix several problems, such as the ash "job
...
control turned off" bug, console_setup() was called with a closed file
descriptor, setsid() inconsistancy, and silly string handling bugs. I have
modified his patch to allow the askfirst init actions to have a controlling
terminal.
2002-07-03 11:08:10 +00:00
Eric Andersen
935daf2d0d
hide shadow using stuff when CONFIG_FEATURE_SHADOWPASSWDS
...
is not set
-Erik
2002-07-03 09:13:21 +00:00
Eric Andersen
7f90ed4460
Patch from Martin Volf <volf@dragon.cz> to fix where I had
...
screwed up the usage messages
2002-07-03 05:55:14 +00:00
Eric Andersen
796446718d
Fix from vodz so that complex init commands actually work
2002-07-03 05:44:18 +00:00
Eric Andersen
8c4025e708
Patch from Danny Lepage <danny.lepage@cognicase.com> to fix
...
dutmp for uClibc.
2002-07-03 05:32:02 +00:00
Eric Andersen
5222d31a15
Patch from till busch <buti@gmx.at> -- unblock all signals
...
in exec_signal() before calling exec()
2002-07-03 05:15:23 +00:00
Eric Andersen
549df2ebc3
Fix text alignment, thanks to Sander Klein <s.klein@quicknet.nl>
2002-07-03 04:54:52 +00:00
Eric Andersen
7234c3a0b6
Cleanup shadow.h stuff so it behaves as intended
...
-Erik
2002-07-03 04:47:43 +00:00
Eric Andersen
009ae1f17d
Little fix to avoid overflow
2002-07-03 04:24:08 +00:00
Eric Andersen
abc9568690
Silly spelling fix
...
-Erik
2002-07-03 02:52:35 +00:00
Eric Andersen
b493dec91e
David Frascone <dave@frascone.com> noticed two problems. First, modprobe was
...
trying to call 'insmod -q', which wasn't supported. Secondly, when modprobe
was fed blank lines from modules.dep, we ended up calling xstrndup(ptr, -1),
which with suitably bad results. David provided a patch to catch the blank
lines, and I have added insmod -q support. So modprobe should work again.
-Erik
2002-07-02 19:14:23 +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
Aaron Lehmann
9031481ac3
inline many functions that are only called once. saves about 300 bytes
...
on i386. also staticify most functions.
2002-06-23 22:13:22 +00:00
Aaron Lehmann
ed11993900
Needs shadow.h; otherwise wont compile without CONFIG_USE_BB_SHADOW
2002-06-23 22:00:41 +00:00
Aaron Lehmann
8c26fbe537
remove cleanUpAndFail, and replace it with exit(). because that's what
...
it does unless srcMode was set, and srcMode is never set.
2002-06-23 21:56:13 +00:00
Eric Andersen
5b0f9e417e
Rework optimization code. Be more compiler aware.
...
-Erik
2002-06-23 04:50:49 +00:00
Eric Andersen
27f64e1f4e
Port over the last of the tinylogin applets
...
-Erik
2002-06-23 04:24:25 +00:00
Eric Andersen
0fbff134f4
Several login cleanups from vodz
2002-06-22 17:49:29 +00:00
Eric Andersen
b0c39a8a8d
Apply vodz' last_patch44 -- cleanup several chars to be const, fix
...
rotten error handling, kill spare \n's, etc
2002-06-22 17:32:58 +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
Eric Andersen
61f83059c1
Apply vodz' cleanup for insmod buffer overflows, which was cleaner
...
than my first effort.
2002-06-22 17:15:42 +00:00
Aaron Lehmann
9f92d5f2a2
Major revamp. I've been trying to clean up the code. the bzerror stuff
...
still needs major attention (i.e. removal).
Removed references to uninitialized variables like progName,
smallMode, noisy, etc. Remove functions and code for handling "small"
decompression mode, since it is all unreachable. Remove
total_{in,out}* counters - they are never used. Remove panic()
function and assert_h and their uses because they are all for "should
never happen" circumstances. Replace internal malloc/free wrappers
with xmalloc and free. Remove conditional in if(foo)free(foo);
situations. Remove bogus
if (sizeof(int) != 4) {
return BZ_CONFIG_ERROR;
}
(...etc...) code and code for handling BZ_CONFIG_ERROR. Someone should
go through and change the applet to use well-defined types when
appropriate - it expects sizeof(short)==2 && sizeof(int)==4. Until
this commit these were explicitly checked for, and the applet would
exit if these types were not the right size. (I think this is wrong
even as an interim solution.)
With gcc 3.1 reduces size of binary on i386-linux by about 700 bytes.
Lightly tested.
2002-06-22 06:35:29 +00:00
Eric Andersen
2d34215456
As noted by Yves Lavoie ing. <yves.lavoie.ing@sympatico.ca>, don't
...
lose the last letter of the module name.
2002-06-18 05:16:25 +00:00
Eric Andersen
b0fd2b06a3
Fix a potential macro expansion problem... isspace can be
...
a macro causing a double decrement...
2002-06-15 14:37:46 +00:00
Eric Andersen
a7d0b41c08
Don't use pointless GNU-isms
2002-06-15 14:33:06 +00:00
Robert Griebl
47abc49c4a
Patch from Simon Krahnke:
...
I wrote a patch for busybox for our company's (www.lisa.de)
private use. [...] To sed it adds the '!'-inversion of addresses.
2002-06-11 23:43:27 +00:00
Matt Kraai
3ad88ccf2d
* testsuite/sed/sed-recurses-properly: Mark XFAIL.
2002-06-11 13:29:08 +00:00
Matt Kraai
9ef2ea27d4
* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.
2002-06-11 13:25:26 +00:00
Eric Andersen
360060252a
vodz' last_patch42_2, which is an updated fix for buffer overflows
...
noted by Gerardo Puga
2002-06-08 12:44:17 +00:00
Robert Griebl
0c789a4255
If config file can not be parsed, use compiled in BB_SUID_... values as a
...
fallback method
2002-06-06 17:30:16 +00:00
Eric Andersen
fe1ef2bc62
Fix buffer overflows noted by Gerardo Puga
...
-Erik
2002-06-06 14:36:07 +00:00
Eric Andersen
6fb4e4877a
Fix buffer overflows noted by Gerardo Puga
...
-Erik
2002-06-06 14:24:57 +00:00
Eric Andersen
0d2d1eb599
Fix a buffer overflow found by Gerardo Puga <gpuga@gioia.ing.unlp.edu.ar>
...
-Erik
2002-06-06 13:33:01 +00:00
Eric Andersen
8610f91ebf
Lets give this a try...
2002-06-06 13:00:47 +00:00
Eric Andersen
27d3766e0d
Email addr fix
2002-06-06 12:59:13 +00:00
Eric Andersen
ad79c0b629
Patch from Gyepi SAM <gyepi@praxis-sw.com>:
...
Fixed up domain removal for local domains. GNU traceroute does not do this. I
don't know why we do. Fixed incorrect argument for reverse resolution. Clean
up cruft that appears when CONFIG_FEATURE_TRACEROUTE_VERBOSE is defined
2002-06-06 12:24:51 +00:00
Eric Andersen
77d22c4abd
Patch from Gyepi SAM <gyepi@praxis-sw.com>:
...
When DEBUG is defined
1. need to include resolv.h (for _resinit())
2. remove _() call around string. It appears to be a remnant of i18n or some such notion
2002-06-06 12:11:55 +00:00
Eric Andersen
1a92376f00
Patch from vodz to only setenv PATH when PATH changes, which is much
...
smarter than my quick fix.
2002-06-06 12:07:28 +00:00
Eric Andersen
e90e741b1e
Per discussion with vodz, Tim's changes do not seem to make sense.
...
Revert them.
-Erik
2002-06-06 11:47:00 +00:00
Eric Andersen
fc059090b6
last_patch41 from vodz to fix stty -F and similar
2002-06-06 11:35:29 +00:00
Eric Andersen
ff7661d9de
plug fd leak noticed by Russ Dill
...
-Erik
2002-06-05 07:11:32 +00:00
Robert Griebl
1fca558799
Bigger patch for (partial) tinylogin integration
...
- Made a new dir loginutils
- Moved all applets from pwd_grp to loginutils
- Added new applets su.c login.c to loginutils
- Made a new dir libpwdgrp
- Moved everything from pwd_grp/libpwd_grp there
- Added shadow.c to libpwdgrp
- Removed dir pwd_grp
- Added usage strings for login and su to usage.h
- Changed main Makefile to reflect the dir rearrangements
[Parts of this patch may overlap with my other two patches]
2002-06-04 20:45:46 +00:00
Robert Griebl
ea1a63a201
Fix for broken handling off BusyBox's own pwd/grp implementations
...
[Parts of this patch may overlap with my other two patches]
2002-06-04 20:10:23 +00:00
Robert Griebl
c9aca4561d
Implement two types of suid/sgid support for BusyBox:
...
1) tinylogin like with compile time selection and a chown root.root
2) Runtime configurable via /etc/busybox.conf (docu is in the works)
[Parts of this patch may overlap with my other two patches]
2002-06-04 20:06:25 +00:00
Robert Griebl
bc28f7a1e1
Cleaned up Erik's fgets -> read patch and fixed a buffer overflow
2002-06-04 19:33:58 +00:00
Eric Andersen
c06391be0d
Avoid stack munching stdio implementations.
...
-Erik
2002-06-04 13:28:43 +00:00
Robert Griebl
3b79370a7d
Fixed a realloc bug found by Martin Volf
2002-06-02 09:36:12 +00:00
Manuel Novoa III
b99cb64b80
Include busybox.h before testing CONFIG_LOCALE_SUPPORT.
2002-05-29 19:08:41 +00:00
Glenn L McGrath
a94a06a38e
Patch from Randolfe Averty to fixup package conflict checks, cleanup some memory leaks and reorganise dependency checking.
...
Some further memory leaks fixed by me.
2002-05-29 13:45:34 +00:00
Robert Griebl
1d4ef2a9e9
Added support for /etc/modules.conf parsing
...
for now only the 'alias' entries are evaluated
2002-05-28 21:32:10 +00:00
Robert Griebl
53146cc9ec
Added include for isdigit(); simplified -<num> detection
2002-05-27 22:24:53 +00:00
Eric Andersen
8302c43265
Ensure that insmod supports at least one MODULE_INTERFACE
...
-Erik
2002-05-24 06:59:22 +00:00
Eric Andersen
cffd5022c5
Patch from Magnus Damm <damm@opensource.se> to rework things
...
greatly, and keep the arch specific relocations together,
fixes R_PPC_ADDR32 handling so powerpc can work, and changes the
tlb tables to be linked lists (again so powerpc can work).
2002-05-24 06:50:15 +00:00
Robert Griebl
d11edf9809
Made exit code SysV compliant. Also added -s (single pid) flag.
2002-05-22 23:38:12 +00:00
Robert Griebl
236abbfd71
Some cleanups, some size reductions and some buffer overflow checks
...
Most of it based on ideas from vodz
2002-05-22 23:34:35 +00:00
Robert Griebl
94a6a956f0
Support old-style compress (.Z) files via libbb / unzip( ) calls
...
(configurable) - When enabled an applet "uncompress" is also made
available (oddname to gunzip)
[the cvs add for this file got lost somehow...]
2002-05-19 19:00:14 +00:00
Tim Riker
c6def44cfc
ping return 1 if can't ping
2002-05-18 09:16:04 +00:00
Robert Griebl
13c26fc1a5
SUpport old style -[::digit::] options for head and tail
...
Also make head behave like GNU head (-0/-n 0 is valid)
2002-05-17 22:18:04 +00:00
Robert Griebl
c30c5e89cf
Reduced code size for new -e flag (suggested by vodz)
2002-05-16 19:14:15 +00:00
Eric Andersen
d8636cad4d
Doh! Remember to close /etc/inittab
2002-05-15 22:19:09 +00:00
Robert Griebl
f6495eb767
Support old-style compress (.Z) files via libbb / unzip( ) calls
...
(configurable) - When enabled an applet "uncompress" is also made
available (oddname to gunzip)
2002-05-15 22:13:47 +00:00
Robert Griebl
7ac868460a
gunzip'ing many files to stdout works now
...
Fixed a missing initialisation and made a for loop more readable.
2002-05-15 21:57:42 +00:00
Robert Griebl
081df62b92
Don't delete source file when decompressing to stdout
...
This is the normal GNU gunzip behaviour
2002-05-15 21:45:52 +00:00
Robert Griebl
52e8d060a9
Complete rewrite to support stack loading/unloading with proper
...
handling of duplicates in the dependencies list.
2002-05-14 23:42:08 +00:00
Robert Griebl
d77601178d
Added support for -Y|--proxy=on/off to wget
2002-05-14 23:36:45 +00:00
Robert Griebl
64f70cc755
Add --login support. This is the bash way of starting a shell that should
...
parse the profile files.
2002-05-14 23:22:06 +00:00
Robert Griebl
8187bb4394
This patch adds -e (extended information) to route and -r/-e (show routing
...
tables/extended information) to netstat.
This makes them behave (more) like their GNU counterparts.
2002-05-14 23:10:58 +00:00
Robert Griebl
820098fd61
This patch adds -e (extended information) to route and -r/-e (show routing
...
tables/extended information) to netstat.
This makes them behave (more) like their GNU counterparts.
2002-05-14 23:03:23 +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
f63a20ad7b
Tom Oehser noticed that we were lacking the SO_REUSEADDR flag.
2002-05-05 03:40:14 +00:00
Eric Andersen
864b79791a
Patch from Robert Griebl <griebl@gmx.de> to support modprobe -r properly,
...
merged in with the latest and greatest.
2002-05-03 15:48:26 +00:00
Eric Andersen
26920c6c94
Make verbose and show_only work as expected
...
-Erik
2002-05-03 15:22:42 +00:00
Eric Andersen
c088c582bf
Patch from Robert Griebl <griebl@gmx.de> to ignore the -s flag
2002-05-03 10:34:35 +00:00
Tim Riker
95bf6da637
fix and shrink uuencode
2002-05-01 05:57:16 +00:00
Matt Kraai
a4a65e7f99
* archival/gunzip.c (gunzip_file): New.
...
(gunzip_main): Handle no arguments correctly.
2002-04-29 15:32:32 +00:00
Eric Andersen
051e4c15db
Update website
2002-04-27 12:16:48 +00:00
Eric Andersen
d598d41110
Fix silly combinitorial oversight
2002-04-27 09:19:39 +00:00
Eric Andersen
1372780662
Patch from Cliff L. Biffle <cbiffle@safety.net> to display memory
...
usage in the ps listing
2002-04-27 06:06:11 +00:00
Eric Andersen
3a01f8cae2
uClibc supports struct _res these days...
2002-04-27 04:06:55 +00:00
Eric Andersen
ef38b39262
Support noerror option
2002-04-27 01:31:43 +00:00
Eric Andersen
aba75460e4
When the .config file is missing, supply a default one
...
and run menuconfig
2002-04-27 00:06:47 +00:00
Eric Andersen
1323c940fd
Add netcat -i option, per patch from Cristian Ionescu-Idbohrn
...
<cristian.ionescu-idbohrn@axis.com >
2002-04-26 23:59:12 +00:00
Eric Andersen
00a6a75035
Add the who applet, supplied by Da Chen <dchen@ayrnetworks.com>
2002-04-26 23:53:10 +00:00
Eric Andersen
1c31501b1b
Ensure that getenv("PATH") stays current, since otherwise cmdedit
...
(which calls getenv("PATH")) would not operate upon the current
PATH settings, which was really quite iritating.
-Erik
2002-04-26 23:40:09 +00:00
Eric Andersen
416340642d
Fix bugs
2002-04-26 08:44:17 +00:00
Eric Andersen
8db361b3e5
Minor formatting
2002-04-26 08:00:33 +00:00
Tim Riker
ed8e036360
add missing void, still has issues though
2002-04-26 07:53:39 +00:00
Tim Riker
86c76a9c2a
fix from kergoth
2002-04-26 07:41:22 +00:00
Eric Andersen
0e28e1fa05
Forward port patch from Przemyslaw Czerpak <druzus@polbox.com>:
...
1. busybox-telnet dosn't inform server about the size of terminal screen.
In the world of xterminals and frame buffers it's rather horrible
to use fixed 80x24 region in upper-left corner of screen/window.
2. If client sends character 0x0d to the server then sends character 0x0a
the server eat the second byte (0x0a) - it's described in telnet RFC.
Client should send two bytes ( 0x0d + 0x0a or 0x0d + 0x00 ) insted of
one 0x0d byte.
3. busybox telnet implementation wasn't 8bit clean (look at 0xff byte).
I need it because I have to use binray transfer like rz/sz. So when
I resloved the problem (2) I corrected this one two.
This also contains a small cleanup patch from vodz, and some minor editing
by me.
2002-04-26 07:20:47 +00:00
Eric Andersen
60e56f5292
Reworked by Robert Griebl <griebl@gmx.de> to support proper
...
module dependancies.
2002-04-26 06:04:01 +00:00
Eric Andersen
54c14d7850
vodz noted this line (as imported from Debian) is wrong, and has since
...
been fixed upstream.
2002-04-24 23:14:06 +00:00
Eric Andersen
ae1036185e
Apply last_patch37 from vodz
2002-04-24 23:08:23 +00:00
Eric Andersen
5f6873621d
ls could mis-color certain entries when previous commands
...
had failed. Explicitly 0 out errno to prevent that.
2002-04-17 20:21:45 +00:00
Matt Kraai
272a95524f
* networking/wget.c (wget_main): Check return value of safe_fwrite.
2002-04-17 15:33:24 +00:00
Matt Kraai
a0782684fd
* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard
...
output.
* testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New.
2002-04-15 15:01:37 +00:00
Eric Andersen
744ec1d549
Patch from Ben Low <ben@titr.uow.edu.au> to allow tftp to work
...
with stdin as well as stdout.
2002-04-15 07:40:27 +00:00
Eric Andersen
9fe5f98de4
Patch from Jim Treadway -- fix a missing "\" in usage.h
2002-04-13 14:48:51 +00:00
Eric Andersen
c8459a5a8f
Silly me
2002-04-13 14:44:42 +00:00
Eric Andersen
19732c6226
Teach makedevs to not segfault quite so much
2002-04-13 14:26:44 +00:00
Eric Andersen
4e116823f4
Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTR
2002-04-13 14:07:32 +00:00
Eric Andersen
fb24eb4f47
Cleanup make clean
2002-04-13 13:52:13 +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
1f30a41abe
Add a 'make uninstall' target
2002-04-13 13:39:48 +00:00
Eric Andersen
5d8d4a674b
Patch from Jim Treadway <jim@stardot-tech.com> to teach
...
pidof to not add trailing spaces when not needed.
2002-04-13 13:32:30 +00:00
Eric Andersen
65a0730c9f
Patch from Jim Treadway and Vladimir Oleynik to Add CTRL-K
...
and fix CTRL-L support for cmdedit.c
2002-04-13 13:26:49 +00:00
Eric Andersen
3e6908b586
Sed can go into an infinite loop
2002-04-13 13:18:15 +00:00
Eric Andersen
db7d5fca5f
Stupid gcc always includes its own builtin strlen()...
2002-04-13 13:02:03 +00:00
Eric Andersen
4c9b68f0e0
Nice patch from Wolfgang Denk <wd@denx.de> to provide hush with
...
shell loops (for, while, until) and control operators (||, &&)
2002-04-13 12:33:41 +00:00
Eric Andersen
a66a43e8ef
Teach tftp to direct the fetched file to stdout when the
...
user specifies "-l -"
-Erik
2002-04-13 09:30:25 +00:00
Eric Andersen
d75ac02a4f
Rework per how I did things in version in 0.60.3 so it can
...
properly uncompress multiple files now.
-Erik
2002-04-13 09:10:34 +00:00
Eric Andersen
114de55668
Patch from Laurence Anderson <L.D.Anderson@warwick.ac.uk> for
...
better tape drive support in tar/cpio by using an intervening
pipe...
2002-04-13 08:43:01 +00:00
Eric Andersen
1d1d2f9b18
Update some missing copyright notices
2002-04-13 08:31:59 +00:00
Tim Riker
497a88506e
make ash prompt the same as other shells if cmdedit and fancyprompt
2002-04-13 05:37:10 +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
b1591d1f8b
Fix handling of endianness.
...
-Erik
2002-04-12 00:28:59 +00:00
Eric Andersen
a3603e845e
Oldnews
2002-04-11 20:40:00 +00:00
Eric Andersen
265d229427
Patch from Edward Betts <edward@debian.org> to add -x switch to du.c
2002-04-06 23:16:44 +00:00
Eric Andersen
fcffa2cc1a
Apply lash_patch35 from vodz, which brings several nice size_optimizations.
2002-04-06 05:17:57 +00:00
Eric Andersen
50e4d660ac
Fix email addr
2002-04-06 05:15:46 +00:00
Eric Andersen
45673d2cc0
Add fli4l
2002-04-03 14:30:58 +00:00
Matt Kraai
5c69cd84ff
* editors/sed.c (process_file): Stop processing deleted lines.
...
* testsuite/sed/sed-does-not-substitute-in-delete-line: New.
2002-04-01 16:17:37 +00:00
Miles Bader
75ce8d7c88
Tweak my credit (ah, vanity...)
2002-04-01 14:25:51 +00:00
Miles Bader
130bec5ad8
Add insmod support for the NEC v850e processor.
2002-04-01 09:37:27 +00:00
Miles Bader
ae28b04ff2
Add support for the NEC v850e processor.
2002-04-01 09:34:25 +00:00
Eric Andersen
c57e42b8f0
Provide a controlling tty to askfirst processes as well
...
-Erik
2002-03-29 00:59:44 +00:00
Matt Kraai
8a8308f129
* testsuite/which/which-uses-default-path: Remove extra echo.
2002-03-27 23:19:17 +00:00
Matt Kraai
66388f89a5
* testsuite/grep/egrep-supports-extended-regexps: Check exit status instead
...
of output.
2002-03-27 22:56:19 +00:00
Matt Kraai
50aec98e1c
* testsuite/bunzip2/bunzip2-reads-from-standard-input: Remove -c flags.
...
* testsuite/gunzip/gunzip-reads-from-standard-input: Likewise.
2002-03-27 22:48:39 +00:00
Matt Kraai
6feaeace86
* testsuite/COPYING: Remove.
2002-03-27 22:43:47 +00:00
Matt Kraai
cf32ac543c
* archival/bunzip2.c (bunzip2_main): Remove compressed file.
...
* testsuite/bunzip2/bunzip2-removes-compressed-file: New.
2002-03-27 17:46:44 +00:00
Matt Kraai
35d60421b4
* testsuite/runtest (run_applet_testcase): Return test case status, not
...
process ID.
2002-03-27 17:33:31 +00:00
Matt Kraai
9cdb0601eb
* archival/bunzip2.c: Include <unistd.h>.
...
(bunzip2_main): Read data from standard input if FILE argument is `-' or
omitted.
* include/usage.h (bunzip2_trivial_usage, bunzip2_full_usage): Rewrite.
* testsuite/bunzip2/bunzip2-reads-from-standard-input: New.
2002-03-27 17:31:01 +00:00
Manuel Novoa III
fa15f702d2
Work around compiler/assembler problem and reduce code size at the same time.
2002-03-25 02:37:20 +00:00
Matt Kraai
ef8b112d77
* archival/gzip.c (gzip_main): Ensure that the output is a terminal and use
...
error_msg to display the error message.
2002-03-22 22:55:51 +00:00
Eric Andersen
b88868276c
Doh! I broke ping when removing the nested function.
...
This patch from vodz fixes it again.
2002-03-21 14:04:43 +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
Eric Andersen
27eff033d2
Eliminate extra trailing space
2002-03-20 16:10:54 +00:00
Eric Andersen
c7a3fb96d0
Fix devfs loop device support
2002-03-20 15:25:25 +00:00
Eric Andersen
b0cc0a6ca8
Rewind messages to avoid weird formatting, and fix a bug with
...
CONFIG_FEATURE_EXTRA_QUIET, which was broken
2002-03-20 14:57:50 +00:00
Eric Andersen
889a301a0c
Patch from vodz to fix a potential segfault
2002-03-20 14:31:15 +00:00
Eric Andersen
900c24dc4e
Patch from Jeff Studer <jstuder@aquilagroup.com> to supply a defaults for
...
localfilename from remotefilename, and for remotefilename from localfilename
when the other one is not supplied.
2002-03-20 14:25:27 +00:00
Eric Andersen
5a40651046
Update dmalloc options per suggestion from Glenn
2002-03-20 14:16:31 +00:00
Eric Andersen
89de1e7930
Reinitialize initial shift register value for on each pass.
...
-Erik
2002-03-20 13:30:40 +00:00
Eric Andersen
b5474c48b1
Cave to pressure (2 months later). Eliminate using a
...
nested function, which is a purely unremovable gcc-ism...
-Erik
2002-03-20 11:59:28 +00:00
Eric Andersen
b159146fa6
Add missing " " after the word on, as reported by Jason Luther
...
back in mid-december.
-Erik
2002-03-20 09:52:45 +00:00
Eric Andersen
3ad0bd9563
Patch from J.W.Janssen <JanWillem.Janssen@lxtreme.nl> to provide
...
color ls support, modifed by me to behave properly when not running
output to a terminal (i.e. 'ls | more')
-Erik
2002-03-20 09:13:48 +00:00
Eric Andersen
3ec5c692ec
Bart Visscher noticed some spurious search and replace silliness
...
-Erik
2002-03-20 01:32:25 +00:00
Matt Kraai
aee53f4604
* testsuite/grep/egrep-is-not-case-insensitive: Require
...
CONFIG_FEATURE_GREP_EGREP_ALIAS.
2002-03-19 23:47:49 +00:00
Matt Kraai
b3de66869b
* testsuite/grep/grep-handles-binary-files: Read input from a pipe.
...
* testsuite/grep/grep-matches-NUL: Likewise.
2002-03-19 23:46:16 +00:00
Matt Kraai
0efab3319d
* networking/wget.c (parse_url): Allocate a string for the empty path.
...
* testsuite/wget/wget-handles-empty-path: New.
2002-03-19 15:22:42 +00:00
Matt Kraai
3b1cbd7bec
Thomas Lundquist
...
* docs/new-applet-HOWTO.txt: Update for new directory structure.
2002-03-18 16:03:00 +00:00
Eric Andersen
38ddbed4c1
Try to pull in PATH_MAX properly
2002-03-16 02:12:30 +00:00
Eric Andersen
08ed1a73f1
Don't mention ldconfig
2002-03-13 17:26:39 +00:00
Eric Andersen
806c74fe19
Cleanup a libc5 compatibility hack
2002-03-12 00:35:40 +00:00
Eric Andersen
f64c1cd26d
Fix broken link
2002-03-10 22:01:51 +00:00
Matt Kraai
a1bbde71bf
list_single: Declare scratch iff CONFIG_FEATURE_LS_USERNAME is defined.
2002-03-08 16:25:33 +00:00
Matt Kraai
3bd31ebc9a
* fileutils/ls.c (showfiles): Display multiple short names on a line.
2002-03-08 16:16:38 +00:00
Eric Andersen
372f91f07c
Update
2002-03-06 11:13:51 +00:00
Eric Andersen
bc12fb79fd
Update webpage to note new mirrors
2002-03-06 10:28:55 +00:00
Eric Andersen
1b17b01584
Now that we are mirrored, remove absolute links
2002-03-05 15:55:59 +00:00
Eric Andersen
0298be88ae
Update init.c per my changes in the stable branch
...
-Erik
2002-03-05 15:12:19 +00:00
Eric Andersen
684d745bf3
Update robots.txt
2002-03-02 16:43:30 +00:00
Eric Andersen
02a4ed9264
A few more little cleanups to simplify mirroring
2002-03-02 16:42:46 +00:00
Eric Andersen
49da8a83ad
Update the cvs commit info. Remove the old busybox.lineo.com stuff.
2002-03-02 15:39:06 +00:00
Matt Kraai
a99b194336
* libbb/xfuncs.c (xmalloc, xcalloc): Do not exit if a zero-length buffer is
...
requested.
(xrealloc): Simplify.
2002-02-26 15:28:22 +00:00
Matt Kraai
eed9451cf6
* findutils/grep.c (grep_main): Remove unnecessary use of junk.
2002-02-22 22:08:16 +00:00
Matt Kraai
fa144713b8
* testsuite/runtest (show_result): Change UPASS to XPASS.
...
(run_applet_testcase): Likewise.
2002-02-19 23:54:42 +00:00
Matt Kraai
6b140ea5a9
* testsuite/README: Change "UNSUPPORTED" tag to "FEATURE".
...
* testsuite/runtest (run_applet_testcase): Likewise.
* testsuite/cp/cp-preserves-hard-links: Likewise.
* testsuite/grep/egrep-supports-extended-regexps: Likewise.
* testsuite/grep/grep-is-also-egrep: Likewise.
* testsuite/tar/tar-archives-multiple-files: Likewise.
* testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list:
Likewise.
* testsuite/tar/tar-handles-exclude-and-extract-lists: Likewise.
* testsuite/tar/tar-handles-nested-exclude: Likewise.
2002-02-19 23:43:08 +00:00
Matt Kraai
7c71822809
* testsuite/runtest (run_applet_testcase): Return UNTESTED instead of
...
UNSUPPORTED for missing applets and features.
2002-02-19 23:38:08 +00:00
Matt Kraai
b5b757eb8d
* testsuite/README: Fill to 80 columns.
2002-02-19 23:20:52 +00:00
Matt Kraai
6be2319873
* testsuite/README: Update copyright date.
2002-02-19 23:19:46 +00:00
Matt Kraai
ad6faf6497
* testsuite/tar/tar-archives-multiple-files: Require
...
CONFIG_FEATURE_TAR_CREATE.
2002-02-19 23:15:41 +00:00
Matt Kraai
4271d438e2
* docs/busybox.net/index.html (Products/Projects Using BusyBox): Added
...
Tinfoil Hat Linux.
2002-02-19 22:58:26 +00:00
Eric Andersen
d4574f1b61
fix name
2002-02-17 22:42:30 +00:00
Matt Kraai
c00e4ff8e5
* testsuite/tar/tar-archives-multiple-files: New.
2002-02-17 18:42:52 +00:00
Eric Andersen
3b7767abe6
Add in tuxscreen
2002-02-16 22:17:33 +00:00
Eric Andersen
796245b554
Update sponsor section
2002-02-16 22:08:28 +00:00
Eric Andersen
8fd6e1fb0f
Add in a sponsors link, and update the screenshot.
2002-02-16 21:50:34 +00:00
Eric Andersen
d7f7bd0445
Add Partition Image
2002-02-16 18:48:55 +00:00
Glenn L McGrath
02a415606c
Parse the include list to writeTarFile rather than argv, fixes a bug where tar files wernt being created.
2002-02-15 05:15:03 +00:00
Glenn L McGrath
8833a51781
Fix condition that prevented creation of compressed files
2002-02-13 03:32:11 +00:00
Matt Kraai
9bd49d6a22
* archival/gzip.c (ifname, ofname): Delete.
...
(gzip_main): Handle multiple files.
* include/usage.h (gzip_trivial_usage): Allow multiple FILEs.
(gzip_full_usage): Ditto.
* testsuite/gzip/gzip-accepts-multiple-files: New.
* testsuite/gzip/gzip-removes-original-file: New.
2002-02-05 22:31:48 +00:00
Matt Kraai
592a3e63ee
* archival/gzip.c (gzip_main): Display usage if given multiple files.
2002-02-05 19:34:53 +00:00
Matt Kraai
273af73317
* include/usage.h (gzip_trivial_usage): Make FILE optional.
...
(gzip_full_usage): Note behavior when FILE is unspecified.
2002-02-05 19:25:29 +00:00
Matt Kraai
eb83478528
* fileutils/dd.c (dd_main): Ignore ftruncate error if the output is not a
...
file or directory.
2002-02-05 15:28:54 +00:00
Matt Kraai
369da77d5e
2002-01-30 Neal H Walfield <neal@cs.uml.edu>
...
* networking/ping.c (hostname): Removed.
[CONFIG_FEATURE_FANCY_PING] (noresp): Moved from here . . .
[CONFIG_FEATURE_FANCY_PING] (ping:noresp): . . . to here.
Use H->h_name, not hostname.
[CONFIG_FEATURE_FANCY_PING] (ping): Do not copy H->h_name into
hostname.
Use H->h_name directly.
[!CONFIG_FEATURE_FANCY_PING] (hostent): New global variable.
[!CONFIG_FEATURE_FANCY_PING] (pingstats): Use hostent in favor
of the now obsolete hostname global variable.
[!CONFIG_FEATURE_FANCY_PING] (ping): Likewise.
No need to copy H; use hostent instead.
[!CONFIG_FEATURE_FANCY_PING] (ntransmitted, nreceived,
nrepeats, pingcount, myid, options, tmax, tsum): Removed
superfluous zero initializers.
2002-02-01 16:54:00 +00:00
Eric Andersen
20d739adf7
If PATH_MAX isn't defined, define it outselves
2002-01-26 23:58:22 +00:00
Eric Andersen
53a2299230
Patch from Russ Dill <Russ.Dill@asu.edu>. From the
...
start-stop-daemon man page:
-b|--background
Typically used with programs that don't detach on their own.
This option will force start-stop-daemon to fork before starting
the process, and force it into the background. WARNING:
start-stop-daemon cannot check the exit status if the process
fails to execute for any reason. This is a last resort, and is
only meant for programs that either make no sense forking on
their own, or where it's not feasible to add the code for it to
do this itself.
This is usefull for applets like watchdog
2002-01-26 09:04:45 +00:00
Eric Andersen
467a18b1d9
Teach 'init -q' that init's pid may not equal 1
2002-01-25 23:13:06 +00:00
Matt Kraai
a3181dd833
Do not segfault if PATH is unset.
2002-01-14 18:30:10 +00:00
Eric Andersen
ba552523fa
Remove broken "Other cool embedded software" link
2002-01-13 03:01:02 +00:00
Eric Andersen
d35c5df08c
Make private ash config options be public
2002-01-09 15:37:36 +00:00
Matt Kraai
b75b6e2c35
* archival/tar.c (tar_main): Remove unused variable.
2002-01-08 16:03:41 +00:00
Eric Andersen
038cbc7442
Oops.
2002-01-06 01:10:25 +00:00
Eric Andersen
c94e89d81f
Do not depend on PATH or getopt arg reordering
2002-01-06 01:08:28 +00:00
Eric Andersen
db2b9f37d4
Somehow ttylinux got lost. Put it back.
...
-Erik
2002-01-05 16:56:43 +00:00
Eric Andersen
8ec99dfa05
Update links to avoid possible lingering DNS problems
...
(and thereby test if I have the Reply-to thing really
fixed this time)...
-Erik
2002-01-05 05:34:31 +00:00
Matt Kraai
d402f971a5
* docs/busybox.net/index.html: Fix misspelling of `Unfortunately'.
2002-01-04 16:54:39 +00:00
Eric Andersen
eeba178d3a
More updates
2002-01-04 05:12:14 +00:00
Eric Andersen
7d957c6573
More pics
2002-01-04 05:11:49 +00:00
Eric Andersen
665b4e69ed
Update text once again
2002-01-04 05:04:15 +00:00
Eric Andersen
7875f5b72a
Fix grammar (thanks to my wife for proof reading)
2002-01-04 04:24:27 +00:00
Eric Andersen
55ed17747f
Fix link
2002-01-04 00:34:22 +00:00
Eric Andersen
4fa2bb5e95
Update busybox.net info and donation noise
2002-01-04 00:32:15 +00:00
Matt Kraai
9eaf059d28
* editors/sed.c (parse_cmd_str): Remove redundant code to skip initial
...
whitespace.
2002-01-03 21:19:19 +00:00
Matt Kraai
5ed78adca5
* editors/sed.c (parse_edit_cmd): Rewrite.
...
* testsuite/sed/sed-splits-edit-commands-on-command-line: New.
2002-01-03 21:12:34 +00:00
Matt Kraai
d299563257
* AUTHORS (Matt Kraai): Update e-mail address.
2002-01-03 18:29:37 +00:00
Matt Kraai
9758e7d58d
* include/usage.h: Fix route and unzip usage messages (patch from
...
Laurence Anderson).
2002-01-03 17:32:29 +00:00
Matt Kraai
f3fbe20c35
* cmp/cmp-detects-difference: Simplify return code negation.
...
* false/false-returns-failure: Likewise.
* tar/tar-demands-at-least-one-ctx: Likewise.
* tar/tar-demands-at-most-one-ctx: Likewise.
2002-01-02 20:45:42 +00:00
Matt Kraai
01d2ea908b
* testsuite/README: Document -v option.
...
* testsuite/runtest: Handle -v option.
(show_result): New.
(run_applet_testcase): Call it.
2002-01-02 20:37:59 +00:00
Matt Kraai
39fcb5a750
* archival/dpkg.c (create_list): Use chomp.
...
* archival/tar.c (append_file_list_to_list): Likewise.
2002-01-02 19:01:41 +00:00
Matt Kraai
0733e840bd
chomp should only remove the newline if it occurs at the end of the input.
...
This was caught by the test suite (in sed/sed-aic-commands).
* libbb/chomp.c: Revert to revision 1.5.
2002-01-02 18:51:23 +00:00
Matt Kraai
d21735de2d
* editors/sed.c (parse_edit_command): Require a newline after the backslash
...
after an edit command.
* testsuite/sed/sed-requires-newline-after-edit-command: New.
2002-01-02 17:56:38 +00:00
Glenn L McGrath
87ac7028e0
unzip applet by Laurence Anderson
...
----------------------------------------------------------------------
2002-01-02 13:52:26 +00:00
Aaron Lehmann
438803311b
ash patch: errname-diff
2001-12-31 06:16:54 +00:00
Aaron Lehmann
9a218bf979
ash patch: initvar-diff
2001-12-31 06:13:38 +00:00
Aaron Lehmann
1a6986699f
ash patch: forkshell-diff
2001-12-31 06:12:48 +00:00
Aaron Lehmann
eec2bbb9bf
ash patch: fgcmd-diff
2001-12-31 06:07:57 +00:00
Aaron Lehmann
2aef3a6bb9
ash patch: breakcmd-diff
2001-12-31 06:03:12 +00:00
Aaron Lehmann
95877b6756
ash patch: addfname-diff
2001-12-31 06:00:57 +00:00
Eric Andersen
79a466f128
optimize this a little bit.
2001-12-29 07:26:33 +00:00
Eric Andersen
6d13964714
Silence some silly warnings
...
-Erik
2001-12-29 04:15:13 +00:00
Eric Andersen
e7dd383f67
Link to udhcp
2001-12-22 19:28:24 +00:00
Eric Andersen
b9c0b99e51
Update URLs and email addresses
2001-12-22 00:37:54 +00:00
Matt Kraai
70624846fd
Ignore blanks before the first address and before the command.
2001-12-21 16:04:12 +00:00
Matt Kraai
1fcc66e685
New.
2001-12-21 15:54:25 +00:00
Eric Andersen
ceef50b280
Patch from vodz to fix broken function prototype
2001-12-21 11:22:26 +00:00
Eric Andersen
f1f2bd0b0a
Patch from vodz to implement ^L (clear screen)
2001-12-21 11:20:15 +00:00
Eric Andersen
9910cd2869
Update TODO. vodz has implemented ^L. Reverse policy on tinylogin.
...
-Erik
2001-12-21 11:18:36 +00:00
Matt Kraai
1f0c43668a
Remove == TRUE' tests and convert != TRUE' and `== FALSE' tests to use !.
2001-12-20 23:13:26 +00:00
Matt Kraai
31c73af656
Perform clean up only if CONFIG_FEATURE_CLEAN_UP is defined.
2001-12-20 22:30:14 +00:00
Matt Kraai
2b1effdbbc
Write files when extracting an archive from standard input.
2001-12-20 22:09:31 +00:00
Matt Kraai
c5b5cab37d
Remove dependence on CONFIG_FEATURE_CLEAN_UP.
2001-12-20 21:13:18 +00:00
Matt Kraai
38c15becf6
Avoid printing a trailing blank character.
2001-12-20 21:11:59 +00:00
Eric Andersen
5a841adf5d
Switch from FTP to HTTP for downloads
2001-12-20 08:04:56 +00:00
Eric Andersen
fb74a45088
Vodz' last_patch31
...
Very minimal last corrections:
1) busybox.c: fix warining
2) docs/: add applets for list from pwd_grp
3) usage.h: add -n option for route
4) run_parts.c: many todo fix for busybox style
5) addgroup.c: add #ifdef CONFIG_FEATURE_SHADOWPASSWDS, reduce one
perror_msg
6) adduser.c: fix bug "variable i not initialize" and
add #ifdef CONFIG_FEATURE_SHADOWPASSWDS
2001-12-18 14:06:03 +00:00
Eric Andersen
f3f9062ecf
Things like 'tar -c /tmp/*' and 'tar -cO /tmp/*' where the output
...
filename was not explicitly specified were segfaulting.
-Erik
2001-12-18 00:57:55 +00:00
Eric Andersen
730f826f25
Add in a new restart init target, triggered by SIGHUP. Patch from
...
Russ Dill, with adjustments by me.
-Erik
2001-12-17 23:13:08 +00:00
Matt Kraai
ace02dc9cd
Make cp and mv optionally preserve hard links.
2001-12-17 15:26:36 +00:00
Eric Andersen
46ea0e4696
* Add ^L clear to shell
2001-12-16 09:25:57 +00:00
Eric Andersen
6925d50176
Some minor usage cleanups from David Douthitt <ssrat@mailbag.com>
2001-12-16 09:23:09 +00:00
Eric Andersen
de2a342289
Add a more verbose non-strip command.
2001-12-16 09:20:08 +00:00
Matt Kraai
e62dc86bc7
Add support for big-endian ARM (initial patch by Mike Voytovich).
2001-12-14 16:08:17 +00:00
Matt Kraai
04ae328851
Update uClibc URL.
2001-12-12 19:09:51 +00:00
Matt Kraai
14b7c5d12b
Open the source before creating the destination.
2001-12-11 16:43:48 +00:00
Matt Kraai
741f40b58e
Use an int to hold the result of fgetc (bug noted by David Kimdon).
2001-12-11 16:06:02 +00:00
Eric Andersen
72812d3143
And a bit more
2001-12-08 02:14:02 +00:00
Eric Andersen
a2e6908165
More polish
2001-12-08 02:13:05 +00:00
Eric Andersen
90c2abd212
Oops
2001-12-08 02:10:37 +00:00
Eric Andersen
dec43433e5
Add in cvs info
2001-12-08 02:08:31 +00:00
Eric Andersen
2423b12dae
Begin moving things to busybox.net
...
-Erik
2001-12-08 01:56:15 +00:00
Eric Andersen
05b5addcaa
Use a local image, not an offsite one.
2001-12-08 00:18:20 +00:00
Matt Kraai
07a37aebf5
New.
2001-12-07 21:27:57 +00:00
Matt Kraai
dba11452cb
Continue processing files if we are asked to touch, but not create, a file
...
which doesn't exist.
2001-12-07 21:27:38 +00:00
Matt Kraai
1a781a499f
Enable test only if CONFIG_FEATURE_GREP_EGREP_ALIAS is defined.
2001-12-07 21:24:25 +00:00
Eric Andersen
603557b466
Fix link name
2001-12-07 19:01:31 +00:00
Eric Andersen
089db51fbe
Fix broken link
2001-12-07 19:00:30 +00:00
Matt Kraai
3eeab3b23f
Update copyright and close file descriptors (noted by Axel Kittenberger).
2001-12-07 16:27:37 +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
Matt Kraai
54805af092
Remove documentation for the --file option to hostname (noted by
...
David Douthitt).
2001-12-06 17:37:51 +00:00
Eric Andersen
c98c06233e
Merge in the cal applet from Steve Merrifield <steve@labyrinth.net.au>
2001-12-06 15:16:43 +00:00
Eric Andersen
b24d65659f
If find_pid_by_name() had an error, it was returning -1, but storing
...
that into a pid_t, which is unsigned on a number archs. Furthermore,
find_pid_by_name() would _never_ return an error if the intended proces
was "init", but instead would return 1, meaning we would fail to work
on 2.4.x kernels running an initrd...
-Erik
2001-12-06 14:52:32 +00:00
Eric Andersen
06656f363d
Minor adjustment to the strip command
2001-12-06 14:44:11 +00:00
Eric Andersen
db930948a9
More copyright and email addr cleanups
2001-12-06 08:20:14 +00:00
Eric Andersen
463304edfd
Silly cosmetic problem in the comment
2001-12-06 08:04:45 +00:00
Eric Andersen
356b6dbf86
Patch from Steve Merrifield <steve@labyrinth.net.au> to
...
fixup the merge of the time applet, which I messed up.
-Erik
2001-12-06 07:42:04 +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
Aaron Lehmann
b6ecbdc07d
The ash ansification diff!
...
Please tell me if you notice any problems resulting from this.
2001-12-06 03:37:38 +00:00
Aaron Lehmann
ebd8065f38
Trying to commit Changelog and TODO. cvs is being weird :/
2001-12-06 03:32:12 +00:00
Aaron Lehmann
2dd2d7a37d
Patch to avoid warnings
2001-12-06 03:29:37 +00:00
Aaron Lehmann
b9df470c4d
Commit my improvement on Rodney Brown's patch to g(un)zip, decreasing
...
binary size.
2001-12-06 03:22:43 +00:00
Glenn L McGrath
249f39a265
Simplify unzip(), remove unused checks and unneccessary variables
2001-12-05 16:01:02 +00:00
Glenn L McGrath
ef03dbcd4d
Simplify CRC table generation
2001-12-05 13:08:03 +00:00
Glenn L McGrath
aad44fb37a
Fix some fegfaults and picket fence
2001-12-05 04:40:52 +00:00
Manuel Novoa III
3280f9a3fc
New version to cut size. Includes optional basename() compatibility, but
...
enabling that would break the basename applet at least for one corner case.
2001-12-05 04:35:32 +00:00
Manuel Novoa III
6509f92a3b
Combined size reduction changes by Glenn and myself. Added back in "unknown"
...
for -p to match normal uname behavior (at a cost of 30-40 bytes).
2001-12-05 04:21:30 +00:00
Glenn L McGrath
1dbbd2fe34
Fail gracefully if package depends on a virtual package.
2001-12-05 04:10:14 +00:00
Eric Andersen
ed8a9be287
Patch from Dan Langlois <dan@somanetworks.com> Support SIGSTOP/SIGCONT
...
for wierd situations when people want init to actualy stop doing
anything for a while...
2001-11-30 19:10:58 +00:00
Eric Andersen
c3657428d3
Add in a 'time' applet. Adds 4.5k.
...
-Erik
2001-11-30 07:54:32 +00:00
Glenn L McGrath
38288bbf4c
gunzip was incorrectly reporting a failed crc and length (discovered by
...
Chang, Shu-Hao). The bitbuffer needs to be unwound after decompression,
as it was eating into the crc/size field.
2001-11-29 06:36:56 +00:00
Matt Kraai
8a35c9a557
Add space before module name (noted by Ron Yorston).
2001-11-27 17:28:01 +00:00
Glenn L McGrath
9e6c9f7311
Minor space saving improvments
2001-11-21 12:46:36 +00:00
Glenn L McGrath
74afa9aed1
When just counting chars of a file stat file instead of reading the whole file (Fixes Debian bug #103302 )
2001-11-21 10:26:28 +00:00
Glenn L McGrath
c29ab97094
woops. dotn pass NULL
2001-11-21 10:01:29 +00:00
Glenn L McGrath
1477ad8e83
Simplify print function, prints an extra space if no filename, but saves 4 bytes
2001-11-21 09:58:29 +00:00
Glenn L McGrath
02d090d3d2
Use enums for selected functionality, Reduce the size by nearly 100 Bytes
2001-11-21 09:17:00 +00:00
Eric Andersen
2480e3a30a
Fix dangling comma
2001-11-21 09:05:31 +00:00
Matt Kraai
1dbd6ff80f
New.
2001-11-20 16:04:22 +00:00
Matt Kraai
585f657e2d
Fix undeclared variable error.
2001-11-20 16:00:44 +00:00
Matt Kraai
0c390a76fe
Eliminate warning.
2001-11-20 16:00:19 +00:00
Matt Kraai
fd3f1be57f
New.
2001-11-20 15:49:55 +00:00
Matt Kraai
355a61b56f
Treat NUL as the end-of-line.
2001-11-20 15:49:50 +00:00
Eric Andersen
66c22051f9
More grammar fixes
2001-11-20 12:40:37 +00:00
Eric Andersen
dbdc0d5da9
grammer error
2001-11-20 12:36:28 +00:00
Eric Andersen
4d7f9c3d99
Update the website
2001-11-20 11:56:51 +00:00
Eric Andersen
4b8a1e89a5
Fix email addr
2001-11-20 11:41:37 +00:00
Eric Andersen
f435a918fa
S390 wierdness
2001-11-20 05:42:57 +00:00
Eric Andersen
81ee96fe62
Usr get_last_path_component() name basename()
2001-11-20 00:23:48 +00:00
Eric Andersen
c36642195c
Include time.h
2001-11-20 00:15:27 +00:00
Eric Andersen
edc6e0248c
Oops. doubled myself
2001-11-19 23:50:18 +00:00
Eric Andersen
372f12678e
Note tinylogin TODO items
2001-11-19 22:51:41 +00:00
Matt Kraai
efd7f03657
Fix opt type in dpkg ( closes : #118975 ).
2001-11-19 21:07:15 +00:00
Matt Kraai
4e05da89f3
Add a check target.
2001-11-19 19:47:56 +00:00
Matt Kraai
36c613a443
Update usage instructions, and document test case format.
2001-11-19 19:28:56 +00:00
Matt Kraai
9dfe508a3f
New.
2001-11-19 19:00:13 +00:00
Matt Kraai
c2d6ca0922
Fix misspelling.
2001-11-19 18:44:58 +00:00
Matt Kraai
03bb3088b0
New.
2001-11-19 15:13:12 +00:00
Eric Andersen
6f8b7ea452
oops
2001-11-19 11:45:39 +00:00
Eric Andersen
55805bcba4
More scrubbing
2001-11-19 10:59:37 +00:00
Eric Andersen
d81891a2e6
Call xmalloc before realloc
2001-11-19 10:49:30 +00:00
Eric Andersen
43626d7671
Fixup CLEANUP behavior
2001-11-19 10:36:20 +00:00
Eric Andersen
cc05ce64e9
Update webpage
2001-11-18 15:49:26 +00:00
Glenn L McGrath
fff11f1ab7
bzcat and bunzip -c support from Thomas Lundquist
2001-11-18 14:20:25 +00:00
Eric Andersen
fedce06b7f
Hide some ifdefs to make it more readible
2001-11-17 07:27:14 +00:00
Eric Andersen
9c6b5fcb0a
Minor warning cleanups
2001-11-17 07:23:46 +00:00
Eric Andersen
bff7a60f63
Patch from "Andrew Tipton" <andrew@cadre5.com> to enable vi cursor
...
keys while editing.
2001-11-17 07:15:43 +00:00
Eric Andersen
80f5ac7016
Patch from Steve Merrifield <steve@labyrinth.net.au> to make vi
...
use xmalloc
2001-11-17 06:57:42 +00:00
Eric Andersen
26f8e95d2d
David Kimdon <dwhedon@instant802.com> noticed a thinko
...
in md5sum where only binary sums were verified. He also
sent in this patch,
-Erik
2001-11-17 04:16:15 +00:00
Matt Kraai
5c2bbb55d7
Remove unnecessary errno handling.
2001-11-12 18:44:26 +00:00
Matt Kraai
6c5fdfaf56
New.
2001-11-12 18:42:57 +00:00
Matt Kraai
a21c24bf03
Convert strdup call to xstrdup, and calloc calls to xcalloc (patch from
...
Steve Merrifield).
2001-11-12 16:58:07 +00:00
Matt Kraai
c8227639db
Change strdup calls to xstrdup (patch from Steve Merrifield).
2001-11-12 16:57:27 +00:00
Matt Kraai
357cfc739e
Brag.
2001-11-12 16:45:43 +00:00
Matt Kraai
9fb38f600c
Eliminate unused variable warnings.
2001-11-12 16:45:23 +00:00
Matt Kraai
a5f09c668e
Use fopen wrapper.
2001-11-12 16:44:55 +00:00
Eric Andersen
c5f9a9dd0c
Add redhat and slackware
2001-11-10 13:38:36 +00:00
Eric Andersen
31ac3b7764
Add in Redhat
2001-11-10 13:35:27 +00:00
Eric Andersen
45784febaf
Some more minor build cleanups
2001-11-10 13:08:02 +00:00
Eric Andersen
dba4e6f046
Add in grep -E support
2001-11-10 12:54:00 +00:00
Eric Andersen
c223ced0ea
I forgot to add these. Part of the patch from vodz
2001-11-10 12:18:42 +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
30fcef430c
Only use -mpreferred-stack-boundary with gcc versions that support it
2001-11-10 11:23:47 +00:00
Eric Andersen
cd8c436d81
Latest patch from vodz:
...
-- reverse resolve network name and cache in route and ifconfig
applets, fix print nslookup server name if compile without
uClibc, fix route crashe 'route add', fix warnings compile
networking and pwd_grp applets
2001-11-10 11:22:46 +00:00
Eric Andersen
94f19a8385
oops
2001-11-10 11:17:17 +00:00
Eric Andersen
744a194f53
Can't use RESERVE_CONFIG_BUFFER here since the allocation
...
size varies meaning BUFFERS_GO_ON_STACK will fail
2001-11-10 11:16:39 +00:00
Eric Andersen
c52a6b0f10
|2001-10-08 Rodney Brown <rbrown64@csc.com.au>
...
|
| * editors/sed.c: Fix multiline [aic] commands. Make # an endline
| comment for compatibility. Codespace reduction.
| * tests/testcases: Cope with move to subdirectories.
| * testsuite/sed/sed-aic-commands: Add.
|
| text data bss dec hex filename
| 3772 16 0 3788 ecc editors/sed.o
| 4516 16 0 4532 11b4 editors/sed.o.bu
2001-11-10 10:49:42 +00:00
Eric Andersen
e5d58c3dcc
Mention that glibc-2.2 is supported
2001-11-10 10:46:42 +00:00
Eric Andersen
882cbcdfa1
more config.in entries from Giulio Orsero <giulioo@pobox.com>
...
with some minor edits by me.
2001-11-10 10:43:09 +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
Eric Andersen
df23302cb5
Remove comments about 'make bzImage'
2001-11-07 07:50:08 +00:00
Eric Andersen
5abdaa9a16
Force main to always be included
2001-11-06 18:45:56 +00:00
Eric Andersen
3c513e3858
Fix spelling
2001-11-05 23:10:48 +00:00
Glenn L McGrath
0a25b35c66
Fix create list segfault
2001-11-03 08:29:35 +00:00
Glenn L McGrath
55b2deda08
Required for od and hexdump applets
2001-11-02 11:40:44 +00:00
Glenn L McGrath
60281118d0
Introduce od and hexdump applets
2001-11-02 11:39:46 +00:00
Matt Kraai
b89637a037
New.
2001-10-31 16:36:23 +00:00
Matt Kraai
5447f17ef9
Remove completed task.
2001-10-31 16:36:02 +00:00
Matt Kraai
f419855300
Mark as unsupported unless CONFIG_FEATURE_TAR_EXCLUDE is defined.
2001-10-31 16:18:48 +00:00
Matt Kraai
bb0088e980
Make egrep only set REG_EXTENDED flag.
2001-10-31 16:16:31 +00:00
Eric Andersen
8fc0589777
*** empty log message ***
2001-10-31 11:45:10 +00:00
Eric Andersen
f46999f8bc
Fix location of Configure.help
2001-10-31 11:12:25 +00:00
Eric Andersen
1552ff7efb
Move usage.h to include/usage.h
2001-10-31 11:07:12 +00:00
Eric Andersen
ec07469a3e
Patch from Aaron Lehmann <aaronl@vitelus.com>;
...
This diff does 2 things:
1) removes an unnecessary function. saves 64 bytes on i386
2) allows you to disable checking of mail (actually, it's now disabled
by default). this would be a nice CML1 option, but for now it's a
#(define|undef) in the C file like the other internal ash options.
this saves an additional 352 bytes if you leave mail disabled.
2001-10-31 11:05:49 +00:00
Eric Andersen
31a0ece3a7
Add netstat applet, submitted by Bart Visscher <magick@linux-fan.com>
2001-10-31 11:00:46 +00:00
Eric Andersen
7d6829096d
Add the run-parts applet submitted by Emanuele Aina
...
<emanuele.aina@tiscali.it >
2001-10-31 10:59:29 +00:00
Eric Andersen
eaecbf33f7
Fixup some silly prototype warnings
2001-10-31 10:41:31 +00:00
Eric Andersen
69a20f0aca
Patch from ASA <llb@udm.net.ru> to that source files
...
are properly passed their arguments.
2001-10-31 10:40:37 +00:00
Eric Andersen
6cf47a79ac
Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>
2001-10-31 10:24:36 +00:00
Eric Andersen
2bc4dec7a1
Document CONFIG_RUN_PARTS, patch from Emanuele Aina <faina.mail@tiscalinet.it>
2001-10-31 10:21:17 +00:00
Eric Andersen
a58f040a37
Add Gennady Feldman
2001-10-31 10:04:44 +00:00
Eric Andersen
85dd4b3b27
start-stop-deamon is done
2001-10-31 10:04:04 +00:00
Eric Andersen
ccd96f1972
Patch from Charles Steinkuehler <charles@steinkuehler.net>
...
to properly handle extended regexps for egrep
2001-10-31 10:02:46 +00:00
Eric Andersen
3d61b10595
Major cleanup from Charles Steinkuehler <charles@steinkuehler.net>:
...
- Switched to getopt argument parsing
- Added -f option to get fully qualified domain name
- Fixed the -s (short) and -d (domain) options, which were not
doing a gethostbyname lookup to get the FQDN before trying to
separate the local and domain portions of the hostname.
- Fixed probem with 'agressive setting' of the hostname...the
previous busybox version would try to set the hostname if called
with a non-option argument, or the -F option, even if another
option (like -i or -s) was given. This behavior does not match
the net-tools hostname, which does not attempt to set anything if
given a 'display' option, regardless of the presence/absence of
the -F option or additional command line arguments.
- When using a file to set the hostname, behavior now matches
net-tools version...previous busybox version did not handle
comments, and simply grabbed the first line from the file.
2001-10-31 09:59:57 +00:00
Eric Andersen
950d8b496f
patch from vodz:
...
I reduce 148 bytes from start_stop_daemon.c code. Also reduced
memory allocated.
2001-10-31 09:55:39 +00:00
Eric Andersen
2c669dd108
patch from Giulio Orsero <giulioo@pobox.com>
2001-10-31 09:54:29 +00:00
John Beppu
ce22feea01
- fixed typos
...
- thinking about how to generate Configure.help...
2001-10-31 04:29:18 +00:00
Matt Kraai
3889078dbe
Merge test suite.
2001-10-30 23:11:20 +00:00
Matt Kraai
999623e973
Use extended regular expressions when invoked as egrep (noted and initial
...
patch by Charles Steinkuehler).
2001-10-29 15:49:03 +00:00
Matt Kraai
b5f2516e3f
Add killall (noted by Giulio Orsero).
2001-10-29 15:22:42 +00:00
Eric Andersen
813d88cf78
As Aaron Lehmann just pointed out, I forgot a line...
2001-10-28 22:49:48 +00:00
Eric Andersen
4acf8f8481
Use error_msg() instead of fprintf(stderr, ...)
2001-10-28 09:36:48 +00:00
Eric Andersen
72f9a4277f
Add in some (theoretical) uClinux support. Some init cleanups
2001-10-28 05:12:20 +00:00
Glenn L McGrath
9af363fe20
include unistd which provides off_t for the header and hence unarchive applets
2001-10-27 14:10:37 +00:00
Glenn L McGrath
7134d6581b
Attempt to fix libc compiling error regarding off_t
2001-10-27 13:14:52 +00:00
Eric Andersen
8e392922b0
Be extra pedantic about printing the correct type for an address
2001-10-27 03:28:53 +00:00
Eric Andersen
c265b17550
Wrap exclude_file() inside a #ifdef CONFIG_FEATURE_TAR_EXCLUDE block
2001-10-27 03:20:00 +00:00
Gennady Feldman
087bc82bb0
Fix up the configuration rules and update Libc5 piece for Syslogd. (copied code from logread.c)
2001-10-26 16:09:09 +00:00
Glenn L McGrath
ee28362597
Menu entry for tar creation support
2001-10-25 18:37:41 +00:00
Glenn L McGrath
107c796e79
Recovery from previous commit
2001-10-25 15:01:10 +00:00
Glenn L McGrath
9f2f8540c5
rEcover from my previous commit
2001-10-25 14:59:48 +00:00
Glenn L McGrath
e9fc781570
libunarchive, and recovery from my previous commit
2001-10-25 14:57:14 +00:00
Glenn L McGrath
633f153808
Move libbb/unarchive functions to ./archival/libunarchive
2001-10-25 14:53:50 +00:00
Glenn L McGrath
ef0eab514d
Recovering from my previous commit
2001-10-25 14:49:48 +00:00
Glenn L McGrath
0d2fb76c11
Modify applets to use libunarchive
2001-10-25 14:26:05 +00:00
Glenn L McGrath
95ebf618b7
*** empty log message ***
2001-10-25 14:18:08 +00:00
Eric Andersen
8eaa7b3698
Oops. I forgot pwd_group/config.in
2001-10-25 05:56:51 +00:00
Eric Andersen
2293b96f42
ignore .menuconfig.log
2001-10-24 20:01:04 +00:00
Eric Andersen
9ae7ebd0fd
Ignore lxdialog
2001-10-24 19:59:38 +00:00
Matt Kraai
258bd3d971
Split true and false into separate applets.
2001-10-24 19:00:20 +00:00
Matt Kraai
3c2f27d9f1
Add CONFIG_FEATURE_TAR_EXCLUDE support.
2001-10-24 18:51:27 +00:00
Eric Andersen
99702ab221
Fix variable name -- was stuck at the old RPMUNPACK value. Doh!
2001-10-24 17:37:07 +00:00
Eric Andersen
b78d9b56eb
Oops. Fix capililization
2001-10-24 17:35:52 +00:00
Eric Andersen
1a10eec178
Fixup the location of pwd.h and grp.h
2001-10-24 17:19:38 +00:00
Eric Andersen
bfebd35bea
Fix missing BB_VER defines
2001-10-24 16:51:39 +00:00
Eric Andersen
a49b025b19
Oops. As Aaron Lehmann <aaronl@vitelus.com> just noticed,
...
I forgot to add procps to the SUBDIR list
2001-10-24 08:24:41 +00:00
Eric Andersen
a3483db55f
Patch from vodz:
...
1) complete true: $ > /tmp/tmpfile
2) the builtin pwd now does not unwrap symlinks
3) reduce 680 bytes
2001-10-24 08:01:06 +00:00
Eric Andersen
3cd2760ba1
Fixup the new buildsystem a bit.
2001-10-24 07:58:02 +00:00
Eric Andersen
b36e684fd7
Ignore generated files
2001-10-24 06:53:33 +00:00
Eric Andersen
28593a085b
ignore generated files
2001-10-24 06:50:42 +00:00
Eric Andersen
ca38a29c81
A couple of leftovers
2001-10-24 06:48:42 +00:00
Eric Andersen
9b5a953a98
Add in a mostly content free config help file
2001-10-24 06:33:31 +00:00
Eric Andersen
4bcdd72142
Oops. Forgot these....
2001-10-24 05:26:42 +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
9260fc5552
Accomodate older glibc, which also lacks the module syscalls
2001-10-24 00:44:11 +00:00
Matt Kraai
1c9cebc8df
Fix empty line substitutions (noted by Joshua Hudson).
2001-10-23 21:18:59 +00:00
Matt Kraai
8470b9a85c
Fix empty line substitutions (noted by Joshua Hudson).
2001-10-23 21:12:07 +00:00
Glenn L McGrath
6ccdd8c122
Abort if scripts return value != 0
2001-10-23 17:52:28 +00:00
Matt Kraai
c2e5b977ab
Add ttylinux.
2001-10-19 15:33:45 +00:00
Eric Andersen
68ca35c90f
Add slackware 8 to list
2001-10-19 06:32:15 +00:00
Eric Andersen
9c93721ea5
Add mindi linux
2001-10-19 00:46:06 +00:00
Eric Andersen
d63dee4019
Add an option to make the shells not advertise their busybox nature
2001-10-19 00:22:23 +00:00
Eric Andersen
f4c208937c
Remove the now unused ARITH_* defines
...
-Erik
2001-10-19 00:08:17 +00:00
Eric Andersen
c2af1ee036
Commit the start-stop-daemon applet. This was contributed by David
...
Kimdon <dwhedon@gordian.com > on october 7th -- the day I was fired from
Lineo. So it seems I totally forgot about this patch until now.
Sorry about that David!
2001-10-18 19:33:06 +00:00
Matt Kraai
bcca3317b5
Return NULL if EOF is encountered before terminating_string.
2001-10-18 17:04:22 +00:00
Matt Kraai
a7512d74fa
Process extra empty lines correctly.
2001-10-18 17:03:59 +00:00
Matt Kraai
3dd4f5ed69
Remove xmalloc calls.
2001-10-18 15:08:30 +00:00
Eric Andersen
a0f0ae5a7a
Revert that change. As Matt Kraai rightly points out,
...
this is not a bug. What I was I thinking when I committed
this. Doh!
2001-10-18 06:04:23 +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
Eric Andersen
11fdb8a4c7
Fix a nasty bug with variable name shadowing
2001-10-18 04:04:34 +00:00
Eric Andersen
1bf25f0307
Patch from Stefan Soucek <ssoucek@coactive.com> to
...
ignore extra empty lines in fgets_str
2001-10-18 03:20:41 +00:00
Glenn L McGrath
4bef7b4186
unarchive function changed to support both exclude and include lists, applets that use unarchive changed to match.
2001-10-13 19:43:46 +00:00
Glenn L McGrath
051eee6ed3
Reverse part of previous change.... i think it was the wrong approach... im lost
2001-10-13 07:11:03 +00:00
Glenn L McGrath
d642a67928
Match subdirectories of included/excluded files
2001-10-13 06:54:45 +00:00
Glenn L McGrath
527880e5cf
match exclude/include names with trailing '/'
2001-10-13 06:53:34 +00:00
Glenn L McGrath
b5937d3eea
Use fnmatch() to compare excluded/included files
2001-10-13 06:21:32 +00:00
Glenn L McGrath
0e766183ee
Superficial changes to make the exclude/include code easier to understand
2001-10-13 05:03:29 +00:00
Matt Kraai
f86bbfaddd
Fix tar segfault when include list is empty and exclude list is not.
2001-10-12 19:00:15 +00:00
Glenn L McGrath
9b2589dafd
Cleanup memory usage properly
2001-10-08 13:10:12 +00:00
Glenn L McGrath
dfa7b0eff6
Free some variables after use
2001-10-08 08:22:48 +00:00
Glenn L McGrath
30f68908ef
Another part of Stafan's latest patch, when replacing a pre-existing package set its status correctly.
2001-10-06 02:40:20 +00:00
Glenn L McGrath
f28d819554
status_package_num should refer to package not status.
...
Only initialise a new entry in the status hashtable if it really is a new entry.
2001-10-06 02:27:36 +00:00
Glenn L McGrath
3550753445
Remove duplicate tftp -l option help
2001-10-05 10:11:28 +00:00
Glenn L McGrath
1d098cefe2
Use wfopen instead of fopen & error_msg, saves 64 bytes
2001-10-05 05:24:19 +00:00
Glenn L McGrath
bf265daa47
Use xfopen, saves 32 bytes !
2001-10-05 05:03:14 +00:00
Glenn L McGrath
ad117d8a21
Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.
2001-10-05 04:40:37 +00:00
Glenn L McGrath
24e2833cdf
Initial support for for bunzip2....
...
This code could be improvemed by
1) supporting more options,
2) Creating a shared crc table with gunzip, or perhaps generated on the fly.
3) Removing any remaining unneccessary code (e.g. if (noisy))
2001-10-05 03:48:57 +00:00
Glenn L McGrath
2e772edacf
Change extraction/list code to use common unarchive code.
2001-10-05 02:58:48 +00:00
Matt Kraai
4c557bf576
Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.
2001-10-05 01:35:10 +00:00
Matt Kraai
54a992d81e
Fix BB_FEATURE_MTAB_SUPPORT test (report and patch by Magnus Damm).
2001-10-04 15:23:34 +00:00
Eric Andersen
b0a0fc8944
Add Magnus Damm and fix alpha sorting
2001-10-04 09:33:40 +00:00
Glenn L McGrath
a8412dbf39
Fixes with help from Stefan, Typo in prerm script, and when reinstall a package the old packages status was getting overwritten.
2001-10-04 05:22:42 +00:00
Eric Andersen
fd35de564e
Always enable BB_TEST when BB_ASH, BB_LASH, or BB_MSH is enabled
2001-10-03 23:37:24 +00:00
Eric Andersen
371ca19f53
Look for either "init" or "linuxrc" processes
2001-10-03 21:26:12 +00:00
Eric Andersen
f0a4ac8216
Patch from Magnus Damm <damm@opensource.se> to avoid lash hanging
...
on serial ports
2001-10-03 11:23:42 +00:00
Glenn L McGrath
35636540ea
Extract control.tar.gz and data.tar.gz unconditionally, another one picked up by Stefan
2001-10-03 03:10:35 +00:00
Eric Andersen
5c72104a85
Fix large file support -- 2+ gig files should now actually
...
work this time...
-Erik
2001-10-02 07:58:23 +00:00
Matt Kraai
c9fc633f9e
Use port 37 by default.
2001-10-01 17:52:14 +00:00
Matt Kraai
524fcb9e01
Use xgethostbyname instead of gethostbyname (found by Erik Andersen).
2001-10-01 17:50:25 +00:00
Glenn L McGrath
95bfe631a4
Fix return status, picked up by Stefan
2001-09-29 03:34:38 +00:00
Eric Andersen
63ae66198d
use the pedantically correct compiler for preprocessing
2001-09-26 06:20:54 +00:00
Matt Kraai
b67adb0d83
Add Cachier.
2001-09-24 22:44:52 +00:00
Glenn L McGrath
c5bd149261
List full path instead of relative path if prefix is specified (this was supposed to be in last patch)
2001-09-24 18:34:06 +00:00
Glenn L McGrath
dece3c5684
The <package>.list file was prepending "./" to the files, fixed that.
...
Also fixed a very silly error by me when running postinst (remember to use the variable BEFORE its freed)
2001-09-22 04:16:55 +00:00
Glenn L McGrath
b8f5adb64f
Dont free everytime getline() is used, fix from Stefan Soucek
2001-09-22 03:24:07 +00:00
Matt Kraai
3be34309e3
Fix tftp usage information ( closes : #1216 ).
2001-09-21 14:42:30 +00:00
Eric Andersen
f8f6e624bb
Eliminate ldconfig which is no longer built by
...
default (or needed) with uClibc.
2001-09-21 06:05:35 +00:00
Glenn L McGrath
48cc89b738
Fix to make preinst run when required, from Stefan Soucek
2001-09-21 05:07:47 +00:00
Glenn L McGrath
e73866181f
Implement dpkg -l option, from Stefan Soucek (slightly modified)
2001-09-21 04:30:51 +00:00
Tim Riker
4c67c596d1
closes bug#1215?
2001-09-16 02:00:09 +00:00
Manuel Novoa III
8d0afde412
Commit my changes to xxreadtoken() to reduce code size. Also set defines
...
so that the table implementations of copynode, calcsize, and cmdtxt are
used. Hopefully this will result in wider testing. ;-) If it breaks,
just unset the appropriate defines.
2001-09-11 01:14:02 +00:00
Manuel Novoa III
6a9d1f652b
Commit my changes to arith.c which fixed a couple of bugs and decreased
...
code size. Please read the TODO comments regarding accessing shell
variables from the arith() funciton.
2001-09-11 01:11:31 +00:00
Eric Andersen
f6ecaccf92
Fix my email address.
2001-09-08 20:52:33 +00:00
Eric Andersen
886b84211e
Lineo is no longer sponsoring busybox
2001-09-08 20:47:19 +00:00
Eric Andersen
5bb1677f1d
define IFS_BROKEN
2001-09-06 18:00:41 +00:00
Eric Andersen
88cec25e99
Patch from vodz to make ash cope with leading redirections
...
(i.e. '2>/dev/null ls rubbish') will now work.
2001-09-06 17:35:20 +00:00
Eric Andersen
1644db9a2b
Two patches from Magick <magick@linux-fan.com>:
...
1st makes init smaller, and fixes a bug with AskFirst. Reading from
/dev/null gives EOF.
2nd makes init run the command's in the order of inittab, as in
FIFO instead of LIFO.
2001-09-05 20:18:15 +00:00
Eric Andersen
b9408504f5
Another fix from vodz
2001-09-05 19:32:00 +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
Matt Kraai
1350666498
Add -p support.
2001-08-29 21:18:47 +00:00
Matt Kraai
5171bf6d40
SUSv2 specifies that if the extension is identical to the basename, it
...
should not be removed.
2001-08-29 20:19:29 +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
5078919981
Use the correct buffer when calling dirname, improve an error message, and
...
plug some memory leaks. Patch by Laurence Anderson.
2001-08-28 22:57:38 +00:00
Eric Andersen
28d0ac13d1
Add "DutNux"
2001-08-27 19:22:44 +00:00
Matt Kraai
91631011cc
Remove traces of rpmunpack (patch by Laurence Anderson).
2001-08-27 18:55:10 +00:00
Eric Andersen
863a3e15d6
patch from vodz -- route cleanup to display all route entries
2001-08-27 17:57:27 +00:00
Matt Kraai
ab3d839ef4
Add support for `busybox --help APPLET' by Vladimir Oleynik.
2001-08-27 17:19:38 +00:00
Matt Kraai
861e624e15
Fix ash exec (noted by Arne Bernin).
2001-08-27 15:08:57 +00:00
Matt Kraai
449377aa6a
Fix invocation of `-/bin/sh' (bug #1209 ).
2001-08-27 15:02:32 +00:00
Matt Kraai
80f6d55836
Eliminate improper consts and allow standard version to override.
2001-08-24 20:35:45 +00:00
Matt Kraai
ac20ce1924
Canonicalize dirname(3) behavior.
2001-08-24 19:51:54 +00:00
Matt Kraai
2a953aed38
Fix a memory leak if parent directory creation failed.
2001-08-24 19:07:31 +00:00
Matt Kraai
a0065d5955
Fix s/[/]// handling (noted by Dumas Patrice).
2001-08-24 14:45:50 +00:00
Eric Andersen
31b35a16e0
Merge with the stable branch
2001-08-23 22:05:55 +00:00
Eric Andersen
a3c8481a33
A patch from Jaspreet Singh <jsingh@somanetworks.com>
...
fixing both a segfault and cosmetic bug in route
2001-08-23 22:05:33 +00:00
Eric Andersen
b76cb68979
A patch from Shu-Hao Chang <shuhao_chang@trend.com.tw> to
...
fixed sed handling of multiple -e commands
2001-08-22 05:58:16 +00:00
Eric Andersen
1071ccfd25
Force BB_FEATURE_NEW_MODULE_INTERFACE and BB_FEATURE_OLD_MODULE_INTERFACE
...
to be mutually exclusive
2001-08-22 05:41:57 +00:00
Eric Andersen
c0f9d0dce7
Add #include <sys/param.h> to ensure PATH_MAX is defined
2001-08-22 05:35:39 +00:00
Eric Andersen
5d60a46269
Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UP
...
is enabled
2001-08-22 05:32:24 +00:00
Eric Andersen
ac5dbd193b
Fix an _old_ interface problem with a never-used feature.
2001-08-22 05:26:08 +00:00
Eric Andersen
59443965ad
Scrub things and ditch uint64_t and use a custom type name
...
to avoid C lib compatibility problems.
2001-08-22 05:06:29 +00:00
Eric Andersen
d36cdd25a5
Bump version to 0.61.pre
2001-08-22 04:16:36 +00:00
Eric Andersen
39eb040757
Patch from Rodney Brown <RDBrown@mira.net>, shrinking 1.5k
...
from gzip by careful optimization. Appears to work just fine
(I've tested the changes on x86, ARM, and powerpc).
2001-08-22 04:15:47 +00:00
Eric Andersen
a07c902648
Make it compile with uClibc
2001-08-22 00:10:00 +00:00
Eric Andersen
75220b55ff
dfp might be used uninitialized. NULL it.
2001-08-21 23:36:32 +00:00
Eric Andersen
994c6ffd3b
Disable the tinylogin apps by default.
2001-08-21 23:34:10 +00:00
Eric Andersen
c61804ed59
Fix dos2unix compile problem with certain glibc versions
2001-08-21 22:34:05 +00:00
Eric Andersen
f349e978c4
Initial merge of all tinylogin applets that do not require crypt.
...
There is some optimization that can be done to better use libbb in
these applets. There is also redundancy between stty and getty which
could be eliminated.
-Erik
2001-08-21 16:18:59 +00:00
Matt Kraai
a3e4f455ac
Fix a problem with unsatisfied backrefs (noted by Martin Bene).
2001-08-20 21:21:06 +00:00
Eric Andersen
54eceffcae
some minor wording changes
2001-08-20 17:48:17 +00:00
Eric Andersen
76fa8ea790
Apply Glenn's tftp rewrite
2001-08-20 17:47:49 +00:00
Glenn L McGrath
bac490fe53
Fix version comparision bug
2001-08-15 11:25:01 +00:00
Matt Kraai
b6ec78161d
Log all messages from a single connection, not just the first. Patch from
...
matthias@corelatus.com , approved by Gennady Feldman <gena01@cachier.com >.
2001-08-14 17:32:23 +00:00
Matt Kraai
0a68590314
Rewritten by Manuel Novoa III.
2001-08-14 17:10:08 +00:00
Manuel Novoa III
c639a35f50
I stupidly forgot one level of pointer indirection in the cmdtxt(), calcsize(),
...
and copynode() table implementations. Commit the fix but keep them disabled
until others check them out. Uncomment "//#define CMDTXT_TABLE",
"//#define CALCSIZE_TABLE", and "//#define COPYNODE_TABLE" to try them out.
Saves over 600 bytes on i386.
2001-08-12 17:32:56 +00:00
Eric Andersen
dd9173c07f
Fix a merging error
2001-08-10 21:11:56 +00:00
Manuel Novoa III
16815d4b45
A few bug fixes and significant size savings. Combined effort of
...
Vladimir N. Oleynik dzo@simtreas.ru , Aaron Lehmann aaronl@vitelus.com ,
and myself.
2001-08-10 19:36:07 +00:00
Eric Andersen
80dd0863e2
Small size optimization from Aaron Lehmann
2001-08-10 18:42:04 +00:00
Eric Andersen
e20b7d844a
Fix stupid grammar error.
2001-08-10 15:22:35 +00:00
Matt Kraai
a7cecbc917
Commit Vladimir's simplify_path.
2001-08-10 15:05:27 +00:00
Manuel Novoa III
4fb0b51703
This corrects the _really_poor_ implementation of "broadcast +" handling
...
by ifconfig that someone had submitted. It fixes 1 bug, gets rid of the
excessive bloating of a structure that is used in a static const array,
and removes the implicit struct copys by keeping only the int type needed.
It also turns this into a configurable feature (off by default).
2001-08-10 06:02:23 +00:00
Matt Kraai
6c4250c0dc
Remind people to enable RPC support when using NFS mount and uClibc (thanks
...
to David Douthitt).
2001-08-09 21:07:10 +00:00
Matt Kraai
d0b5be6da8
Remove BB_SH define entirely.
2001-08-09 21:00:15 +00:00
Matt Kraai
2338d3176b
Use ferror(3) to check for errors, rather than inspecting errno. Thanks to
...
David Douthitt for reporting, and shame on me for writing such crappy code.
2001-08-06 16:09:09 +00:00
Matt Kraai
063c1f54ea
Simplified version checking.
2001-08-06 14:18:08 +00:00
Matt Kraai
69edfecfb9
Add support for underscores in variable names.
2001-08-06 14:14:18 +00:00
Glenn L McGrath
b373a8d0ca
Fix exclude list handling
2001-08-04 05:28:29 +00:00
Eric Andersen
0b7d70c822
Fix up some silly messups with the debian packaging, and a dumb
...
bug with chroot. I've had the package uploaded but perms set to
000, so I am going to re-tag things and re-cut the release. Folks
who pulled from CVS in the last 30 minutes with just have to cope.
-Erik
2001-08-02 20:56:16 +00:00
Matt Kraai
8aa0b62a88
Fix misspelling of `stabilize'.
2001-08-02 20:34:24 +00:00
Eric Andersen
9e6089ee0f
Ok, here we go...
2001-08-02 19:31:08 +00:00
Matt Kraai
c9dd5f945b
Commit NMU changelog.
2001-08-02 15:12:16 +00:00
Eric Andersen
be0c36009a
More libc5 fixups
...
-Erik
2001-08-02 10:55:32 +00:00
Eric Andersen
23b1e5c7df
Some libc5 cleanups
2001-08-02 09:58:41 +00:00
Eric Andersen
879d6c85af
make_directory used mode as if it were an signed entity, but in fact
...
it was a mode_t which is unsigned. Fix it to be signed...
-Erik
2001-08-02 09:58:19 +00:00
Eric Andersen
8a915880e7
Teach libc5 about realpath
...
-Erik
2001-08-02 09:55:58 +00:00
Eric Andersen
95b520110d
Teach libc5 what a sighandler_t is
...
-Erik
2001-08-02 09:52:40 +00:00
Eric Andersen
deba6dea03
multibuild.pl saves us again. unix2dos requires that dos2unix
...
be enabled.
-Erik
2001-08-02 09:21:17 +00:00
Eric Andersen
46bf7de5f6
Ok, if no shell is enabled, don't include any of the SH_IS_<name>
...
options or the build will fail
-Erik
2001-08-02 08:48:03 +00:00
Eric Andersen
ff9b4a8981
Scrub away the last leftovers from BB_FEATURE_<shell>. Good thing
...
for multibuild.pl -- I would have missed this stupid mess otherwise.
-Erik
2001-08-02 08:42:58 +00:00
Eric Andersen
fdbac35b33
Patch from Robert J. Osborne <rj@resourceinternational.com> that fixes
...
a bug in vi where the beginning of the text space was not checked
before dot is decremented for delete and escape sequences on an empty
file.
2001-08-02 05:26:41 +00:00
Eric Andersen
842757dc96
Oops. I forgot to commit this part of vodz' patch.
2001-08-02 05:18:55 +00:00
Eric Andersen
3450636169
Latest patch from vodz. Adds a check for divide by zero in the posix
...
math suport, cleaner math syntax error checking, moves redundant signal
string tables (from kill and ash) into libbb and provides a few
cleanups elsewhere.
2001-08-02 05:02:46 +00:00
Matt Kraai
2d91deba45
Allow multiple shells to be enabled.
2001-08-01 17:21:35 +00:00
Eric Andersen
0034443140
Fix behavior of grep -lc to match GNU grep. SuS2 is ambiguous
...
on the correct behavior, so acting like GNU grep seems best
-Erik
2001-07-31 23:18:49 +00:00
Eric Andersen
af6b40a1ea
Silence some silly warnings
2001-07-31 22:53:36 +00:00
Eric Andersen
f672c9e62f
Silence a silly warning
2001-07-31 22:51:49 +00:00
Eric Andersen
bb9579ffc3
Make formatting match GNU ls (we were including a spare ' ')
...
-Erik
2001-07-31 22:43:50 +00:00
Eric Andersen
fa1c5aac51
Fix the let builtin (so we can close bug #1196 ) and remove the
...
nonstandard exp builtin.
-Erik
2001-07-31 21:38:23 +00:00
Matt Kraai
73f6a1b058
Always write record counts to stderr.
2001-07-31 21:02:19 +00:00
Eric Andersen
221b2ea6c4
I just wrote up a simple pidof applet, closing bug #1197
...
-Erik
2001-07-31 19:06:07 +00:00
Matt Kraai
9a53feaa76
Give credit to Adam Slattery.
2001-07-31 16:44:16 +00:00
Eric Andersen
57c82fe7c4
I think this should be the final changelog update...
...
-Erik
2001-07-31 16:11:41 +00:00
Matt Kraai
51038a3f42
Don't save and restore readonly flag if BB_FEATURE_VI_READONLY isn't enabled.
2001-07-31 15:01:12 +00:00
Eric Andersen
74bcd16425
This incorporates Posix math support into ash. The Posix math support
...
was written by Aaron Lehmann <aaronl@vitelus.com > for busybox. This
patch makes a few trivial changes to Aaron's code so that it can be
used (in theory) by the other shells as well...
-Erik
2001-07-30 21:41:37 +00:00
Eric Andersen
dc6647201d
Simplify/clarify the shell dependant bit of Config.h
2001-07-30 19:33:00 +00:00
Eric Andersen
c126f8ffb6
This depmod script will create a modules.dep file, just like the depmod
...
binary from modutils. This one, however, can be run on the _host_
system (need not be run on the target) and is fully cross platform, so
even if your target is ARM or powerpc or whatever, this will still
work. When used to support the new modprobe applet, this allows
busybox to fully supplant modutils for architectures supported by
busybox insmod.
-Erik
2001-07-30 19:32:03 +00:00
Eric Andersen
3555fd006e
Fix up the sample inittab entry per what is current.
...
-Erik
2001-07-30 19:28:33 +00:00
Matt Kraai
13cb842773
Rework option handling to save space.
2001-07-30 14:43:20 +00:00
Matt Kraai
547e102082
Preserve whether or not the line was previously altered when running a
...
subst command (discovery and patch by Jim Gleason).
2001-07-30 14:05:58 +00:00
Glenn L McGrath
7499918f30
If filename is a '-' then read from stdin to stdout
2001-07-30 04:48:50 +00:00
Glenn L McGrath
14d7ea460f
Note my uuencode work
2001-07-29 06:07:35 +00:00
Glenn L McGrath
b6071b6341
Fix permisions when reading from stdin
2001-07-29 06:04:26 +00:00
Glenn L McGrath
eba260587a
Fix broken logic when wraping encoded data into rows, also simplifies it a bit
2001-07-29 05:47:33 +00:00
Glenn L McGrath
4e664ac51d
The src buffer size has to be a multiple of 3 (as i noted, but didnt do).
2001-07-28 21:34:25 +00:00
Glenn L McGrath
089decab65
Rewrite based on wget uuencode function.
...
Saves aprox. 200 Bytes and in future can use common code between
this and wget if BB_FEATURE_WGET_AUTHENTICATION is defined.
2001-07-28 21:06:13 +00:00
Eric Andersen
220238305f
PArtial Changelog update. I'm still on vacation (I'm at a campground
...
near the Grand Teton Mountains in Montana at the moment and my
connection is terribly slow) so this is a partial update only,
-Erik
2001-07-28 16:35:51 +00:00
Matt Kraai
26eeb0c9da
Shorten static package description.
2001-07-26 14:45:21 +00:00
Matt Kraai
f9d6aa0a86
Rename dirname variable to pathname to eliminate namespace conflict.
2001-07-26 14:26:53 +00:00
Russ Dill
4db35647dd
char renamed can never be negative on ARM (rp->renamed[i] != EMPTY)
2001-07-26 05:58:40 +00:00
Eric Andersen
2835efe3da
Note that m68k is supported
2001-07-25 16:58:58 +00:00
Eric Andersen
1b06419e60
Cleanup some warnings and a really obvious bug.
...
-Erik
2001-07-25 07:23:38 +00:00
Eric Andersen
655584b07a
This fixes dos2unix and unix2dos so they behave as expected. dos2unix
...
was broken in the 0.52 release, and unix2dos was pretty lame...
-Erik
2001-07-25 07:22:55 +00:00
Glenn L McGrath
6c7ac21f3a
Update my email address and applets
2001-07-24 02:46:35 +00:00
Glenn L McGrath
096b151f76
note dpkg rewrite
2001-07-24 02:41:06 +00:00
Matt Kraai
439e3df653
Add support for devfs device names.
2001-07-23 14:52:08 +00:00
Eric Andersen
0139ca92ff
An initial modproble implementation. Quite suboptimal still,
...
but it does work...
2001-07-22 23:01:03 +00:00
Eric Andersen
8d79ce8320
Some patches to make dietlibc work...
2001-07-22 23:00:15 +00:00
Eric Andersen
20aab260e2
Some adjustments, mostly from David McCullough <davidm@lineo.com> to
...
make busybox be more uClinux friendly. I also adjusted Config.h for
uClinux so it will automagically disable apps the arn't going to
work without fork() and such.
-Erik
2001-07-19 22:28:02 +00:00
Matt Kraai
0382eb8865
The -P prefix should only be prepended to filenames which are not explicitly
...
specified.
2001-07-19 19:13:55 +00:00
Matt Kraai
e92895c038
Note that wget fix is important.
2001-07-19 17:46:17 +00:00
Matt Kraai
c8eae6684b
The directory name should only be prepended if one was specified.
2001-07-19 17:29:38 +00:00
Matt Kraai
c1cda4a609
Add a RELEASE_BB_BUFFER macro and use it to fix a memory leak in syslogd.c
...
(noted by Adam Slattery).
2001-07-19 15:00:14 +00:00
Glenn L McGrath
81108e7653
Cleanup (most) memory leaks
2001-07-19 12:15:13 +00:00
Glenn L McGrath
c3fbec73fb
Change read_package_field interface, and rewrite using low level functions
...
Fixes for a few bugs that have crept into dpkg in the last few days
2001-07-18 15:47:21 +00:00
Glenn L McGrath
8d3b0497a4
Fix extract_archive so it doesnt mangle filenames, dont try and extract "./" and strip leading "./" on other files
2001-07-18 13:22:44 +00:00
Glenn L McGrath
778041f8d1
Use the unofficial -C instead of -c to --configure a package, -c conflicts with another dpkg command
2001-07-18 05:17:39 +00:00
Glenn L McGrath
b9e4ce99d8
Update dpkg usage
2001-07-18 05:16:31 +00:00
Glenn L McGrath
ed4492a697
More feedback to user
2001-07-18 05:03:49 +00:00
Glenn L McGrath
7b0241579c
Be more verbose when configureing package, minor changes
2001-07-18 04:33:31 +00:00
Glenn L McGrath
6fc92a506a
Fail silently on failure to read tar header, its unfortunate that many tar implementations must be adding unwanted crap to the end of their archives.
...
It makes error reporting here more trouble than its worth
2001-07-18 03:23:10 +00:00
Glenn L McGrath
4cdc607f72
Use xfopen to abort on error to prevent segfaulting later.
2001-07-18 03:13:49 +00:00
Eric Andersen
bc4c030023
Cleanup from vodz
2001-07-17 01:14:06 +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
Glenn L McGrath
51ded05b3b
enum entry for unarchive to be used by tar
2001-07-14 12:38:55 +00:00
Glenn L McGrath
a868ec89e8
Allow the unarchive() extract_list variable to be NULL, meaning extract all
2001-07-14 08:49:53 +00:00
Glenn L McGrath
58a5bd187d
Tolerate fields with no data, e.g. "Depends: "
2001-07-14 06:25:54 +00:00
Matt Kraai
06ef16563b
Allow featureless ping to compile, and featureful ping to shrink
...
(by Adam Slattery).
2001-07-13 20:56:27 +00:00
Glenn L McGrath
ccd65c9be6
Total rewrite, uses hash tables for speed and low memory use.
2001-07-13 18:35:24 +00:00
Glenn L McGrath
3d46224b78
Return NULL if file doesnt open in deb_extract
2001-07-13 18:16:57 +00:00
Glenn L McGrath
cfeb08a193
Make sure there is a trailing '\0' when extracting to buffer.
2001-07-13 17:59:48 +00:00
Glenn L McGrath
5e66a26eaa
Dont setvbuff in here, must be called just after stream is initialised, glibc tolerates using it later, uclibc doesnt
2001-07-13 06:51:56 +00:00
Glenn L McGrath
26a0d9a945
Call setvbuf from here isntead of gz_open for compatability with uclibc
2001-07-13 06:49:18 +00:00
Glenn L McGrath
b028e08d35
Move setvbuf calls from gz_open() to calling functions, setvbuf is only supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt.
2001-07-13 06:43:03 +00:00
Eric Andersen
7467c8d3b6
Patch from vodz:
...
Changed email address
cmdedit API change
optimizations for traceroute and md5sum
added a new shared create_icmp_socket() function
2001-07-12 20:26:32 +00:00
Matt Kraai
f69bfc76fa
Allow assignments in the export and readonly commands.
2001-07-12 19:39:59 +00:00
Matt Kraai
ab6526c8b3
Remove debugging statement.
2001-07-12 18:44:34 +00:00
Glenn L McGrath
3e94f729a5
Quiet mode, sometimes error messages arent wanted
2001-07-12 10:24:57 +00:00
Glenn L McGrath
c127008840
Allow unarchive to redirect stdout (tobe used by dpkg applet)
2001-07-11 17:32:14 +00:00
Glenn L McGrath
481d19b38e
Fix bug where it wasnt returning the last line of a multiline field
2001-07-11 15:43:03 +00:00
Glenn L McGrath
daf0b78e1a
Reverse part of my previous changes
2001-07-11 15:32:52 +00:00
Glenn L McGrath
93febe672a
free coniditionally, just to make it play nice with dmalloc which is incompatable with standard free()
2001-07-11 07:25:01 +00:00
Eric Andersen
c59fa37d40
Make the obj's generated from libbb/unarchive.c depend on the
...
Makefile, so things like setting DODMALLOC will cause them to
be recompiled
-Erik
2001-07-11 07:24:05 +00:00
Glenn L McGrath
248c57ca43
minor dmalloc inspired cleanups
2001-07-11 07:22:17 +00:00
Glenn L McGrath
59e50f634a
Unpack the filename not the package name
2001-07-11 03:30:11 +00:00
Eric Andersen
8c145dc31b
Fix a stupid search and replace bug...
2001-07-10 16:57:09 +00:00
Eric Andersen
55522080c6
Patch for md5sum from Aaron Lehmann <aaronl@vitelus.com> to slim
...
it down a little bit.
2001-07-10 16:31:29 +00:00
Eric Andersen
5c58d283bb
A traceroute applet from vodz. This could probably be slimmed down,
...
but will do for now...
2001-07-10 16:29:00 +00:00
Eric Andersen
91b84603d3
Cleanup from vodz
2001-07-10 16:25:34 +00:00
Eric Andersen
2a46634617
Make the rev be 0.53pre...
2001-07-10 15:24:16 +00:00
Matt Kraai
5710f9f690
Read 20 512-byte blocks at a time (like GNU tar).
2001-07-10 15:05:39 +00:00
Glenn L McGrath
654944fc36
Reverse my previous change, still cant compile with dmalloc
2001-07-10 14:33:22 +00:00
Glenn L McGrath
c3d2f1287e
When compiling unarchive objects link to $(LIBRARIES) incase using dmalloc
2001-07-10 14:04:30 +00:00
Matt Kraai
6199fa90e5
Update version number to 0.53pre.
2001-07-10 13:57:30 +00:00
Eric Andersen
6248355c6f
vodz' latest update to ash.c
2001-07-10 06:09:16 +00:00
Eric Andersen
5a4a46a251
Patch from vodz to support 'tr a-z A-Z' syntax.
2001-07-09 21:32:29 +00:00
Eric Andersen
f52947ba71
Fix the spec file so it works on redhat systems. At least I think
...
it will work on redhat. At least it now works on my Debian box...
-Erik
2001-07-09 18:34:12 +00:00
Eric Andersen
aa64ba459f
Minor working update
2001-07-07 16:36:29 +00:00
Eric Andersen
ceece81414
Move a bit more to the old news section
2001-07-07 09:38:30 +00:00
Eric Andersen
d0e5f86a10
Enable APPLETS_ALWAYS_WIN
2001-07-07 09:37:28 +00:00
Eric Andersen
d0b4d3dabf
Typo fix.
2001-07-07 08:47:21 +00:00
Eric Andersen
7b2dfc623b
Move some stuff to the oldnews area
2001-07-07 08:44:25 +00:00
Eric Andersen
40ecf7da88
Update web page...
2001-07-07 08:25:03 +00:00
Eric Andersen
5c3070b29c
Update changelogs
2001-07-07 08:13:27 +00:00
Eric Andersen
807bda4a24
Minor update to include file ordering
2001-07-07 08:13:02 +00:00
Eric Andersen
7cd5075908
This is out of date, and Glenn tells me this can be safely deleted.
...
To be useful on Hurd will really require the new build system...
-Erik
2001-07-07 05:25:12 +00:00
Eric Andersen
48dfc56b4a
This patch from Fabio Ferrari <fabio.ferrari@digitro.com.br> enables
...
"broadcast +" for deriving the broadcast address automagically.
2001-07-07 05:19:52 +00:00
Eric Andersen
d9d75555ba
Remove rpmunpack
2001-07-07 04:43:56 +00:00
Eric Andersen
9137f2a2d1
This is obsolete -- replaced by rpm2cpio
2001-07-07 04:33:16 +00:00
Eric Andersen
5a071bcbf2
Avoid a segfault (detected by Fabio Ferrari
...
<fabio.ferrari@digitro.com.br > in the wget applet) when
concat_path_file() or last_char_is() were fed a NULL.
-Erik
2001-07-07 04:27:35 +00:00
Eric Andersen
934c8ecb88
Fix sh.c so it works with DMALLOC
2001-07-07 04:24:28 +00:00
Eric Andersen
1c03923b0b
Add in a shell tagline (per lash/hush behavior) to make it easier
...
to know which shell is in use. Add in 'help' to list available
builtins, and fixup msh so it can do STANDALONE_SHELL.
-Erik
2001-07-07 00:05:55 +00:00
Eric Andersen
b7e6f13b3c
Some minor updates. Bump version number in preparation for release.
...
-Erik
2001-07-07 00:03:00 +00:00
Eric Andersen
0279505e8c
Update the debian packaging stuff
2001-07-06 20:36:57 +00:00
Eric Andersen
d28cb03819
Forgot this
2001-07-06 19:28:49 +00:00
Matt Kraai
c308847274
Remove redundant initialization of lfile to reduce executable size by
...
8192 bytes (noted by Mike Castle).
2001-07-06 19:28:07 +00:00
Eric Andersen
00e56ada9c
Let people select their shell at compile time.
2001-07-06 19:24:27 +00:00
Eric Andersen
3bbcc95ac9
update the ignore list
2001-07-06 19:19:21 +00:00
Eric Andersen
d22b78ff05
Fix a stupid bug revealed by multibuild.pl
2001-07-06 18:33:04 +00:00
Eric Andersen
77b68e6f42
Add woukaround for missing struct _res in uClibc
2001-07-06 17:51:29 +00:00
Eric Andersen
3102ac4b58
This is vodz' latest ash update.
2001-07-06 04:26:23 +00:00
Matt Kraai
5009f90ea2
Removed obsolete function, strdup_substr.
2001-07-05 19:00:47 +00:00
Matt Kraai
44edeff025
Note my activities (how immodest of me).
2001-07-05 18:32:01 +00:00
Eric Andersen
8e75f6daa6
Fix a stupid thinko, and fix killall to cope with the updated
...
find_pid_by_name() interface
-Erik
2001-07-05 16:27:34 +00:00
Eric Andersen
332394b577
Be extra extra careful about what we dereference.
2001-07-05 16:09:32 +00:00
Eric Andersen
d50a61956c
Implement suggestion from Adam Slattery, (don't default to killing closing bug #1190 .
2001-07-05 15:56: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
Eric Andersen
8df319b213
A bit of testing today showed that ASH_BBAPPS_AS_BUILTINS was
...
totally breaking the shell. Simple thinge like 'FOO=100' caused
it to segfault. It turns out that disabling "bltincmd" is a very
bad idea.
-Erik
2001-07-05 05:24:12 +00:00
Glenn L McGrath
ed8495990a
gunzip, zcat were fixed just after 0.51 was released
2001-07-05 03:46:23 +00:00
Glenn L McGrath
bbac261402
ash, hush and msh are new applets to 0.52
2001-07-05 03:42:17 +00:00
Glenn L McGrath
7f3cbdd7fd
Added entries for my commits
2001-07-05 03:28:28 +00:00
Matt Kraai
623cfa99e5
Remove a redundant call to mkdir.
2001-07-03 20:55:30 +00:00
Eric Andersen
dd8500bce7
Cleanups and sinze reduction for the vi applet from Aaron Lehmann
...
<aaronl@vitelus.com >
2001-07-02 18:06:14 +00:00
Eric Andersen
3073dfbf30
Patch from Aaron Lehmann <aaronl@vitelus.com> to scrub a ton of
...
portability junk from gzip.c, making it a zillion times more readable.
2001-07-02 17:57:32 +00:00
Eric Andersen
22ecf049b6
Per patch from vodz, change a couple of consts to defines, since
...
apparently gcc 2.95.4, at least, is too stupid to realize that a
"static const int" is in fact a constant.
2001-07-02 17:32:40 +00:00
Eric Andersen
2870d964f8
Some updates to ash from vodz. Makes ash smaller. I made a few
...
changes, esp describing all the current ash configuration options.
Now ash adds 66k in the default configuration.
2001-07-02 17:27:21 +00:00
Eric Andersen
8f6978405d
Patch from vodz to fix freeing a static in cmdedit.
2001-07-02 15:36:57 +00:00
Eric Andersen
10175a43ee
Simplify a comment
2001-06-30 18:11:52 +00:00
Eric Andersen
0159597bd6
Generalize comment -- no longer ls specific
2001-06-30 18:08:36 +00:00
Eric Andersen
7e516797f9
Pad the human readable output for 'ls -sh' to 6 chars, since we will
...
have numbers printed as XXX.YU, so we need 6 digits not 4.
-Erik
2001-06-30 18:00:26 +00:00
Eric Andersen
8fa1bf7cd6
Fix a silly logic error which caused symlinks to be printed twice, and
...
wrongly caused the return code to be an error.
-Erik
2001-06-30 17:54:20 +00:00
Manuel Novoa III
8f01839386
Fixed scaling problems involving make_human_readable_str.
2001-06-30 07:48:01 +00:00
Manuel Novoa III
a77cfbfd0c
ls -s was reporting bytes instead of blocks.
2001-06-30 07:46:50 +00:00
Manuel Novoa III
d877d44d12
All-integer version (but it does use an unsigned long long) which fixes
...
the problems of the previous version (used floating point, overflowed, didn't
round properly). The comments at the top of the file are worth reading;
especially note 2 concerning "ls -sh".
2001-06-30 07:40:44 +00:00
Eric Andersen
db15cb72e2
A really nice patch from Manuel Novoa III for compile time
...
configurable size/speed tradeoffs.
2001-06-29 20:44:51 +00:00
Manuel Novoa III
a2949aa217
Add some missing includes to kill warnings when building with the default
...
Config.h and using gcc's -fno-builtin. There are probably other files
with the similar problems.
Also, if building against uClibc, don't include asm/unistd.h in syscalls.c
and module_syscalls.c.
2001-06-29 18:59:32 +00:00
Eric Andersen
ff9eee475f
This is a busybox port of the Minix shell. It is reasonably capable,
...
handles all the basic stuff (for, case/esac, while, if/then/else), and
is very small (adds just 38k on x86). It is not as rigorously correct
about Bourne semantics as bash, but for most things it is quite
workable. There is still some work to be done to further shrink it (it
has its own globbing functions instead of using the libc ones, for
example), but it is quite usable as is.
-Erik
2001-06-29 04:57:14 +00:00
Eric Andersen
66ca9480c8
Fix a nasty hard to spot bug found by Ralph Siemsen <ralphs@netwinder.org>.
...
This would cause it to obliterates the end of the strtab section, so
symbol lookups would fail and then it would crash. Ugh. This should
fix things for people having trouble with insmod.
2001-06-28 21:36:06 +00:00
Eric Andersen
029b4a0422
Allow xrealloc to act as a free() when size=0, per SuS2.
...
-Erik
2001-06-28 21:22:19 +00:00
Eric Andersen
ec23c4920f
Remove vodz from credits, per his request
2001-06-28 16:43:57 +00:00
Eric Andersen
df82f611c8
Scrub up the licensing block
...
-Erik
2001-06-28 07:46:40 +00:00
Eric Andersen
cb57d551a2
This a an ash applet I put together. It is similar to the one put
...
together by vodz, but uses newer sources, has the removed features
commented out instead of simply deleted (so they could be re-enabled)
and the builtins all work. This adds 72k.
-Erik
2001-06-28 07:25:16 +00:00
Eric Andersen
184d73636d
Remove unneeded stuff.
2001-06-28 03:22:19 +00:00
Eric Andersen
028b65b060
More thrashing about trying to make hush behave itself wrt job
...
control...
2001-06-28 01:10:11 +00:00
Eric Andersen
07abfe2092
don't whine if all we need to do is remove a bg job
2001-06-27 17:29:11 +00:00
Eric Andersen
0d8cc1670c
Fix a type promotion bug discivered and analyzed by Alan Modra
...
<amodra@bigpond.net.au >, which caused false checksum errors
2001-06-27 06:15:50 +00:00
Eric Andersen
4b6b5e4314
Re-enable globbing (I'd accidentaly removed it) and finish off the last
...
of the job control polishing. Works fine now.
-Erik
2001-06-27 04:30:11 +00:00
Eric Andersen
5c66d06104
Explicitly call setsid()
2001-06-26 23:16:31 +00:00
Eric Andersen
0392b8638e
Minor formatting change
2001-06-26 23:11:44 +00:00
Eric Andersen
a90f20b1c3
Don't choke if /etc/profile is not available
2001-06-26 23:00:21 +00:00
Eric Andersen
d98337a7b4
Fix ps so it doesn't waste space showing group, as it is pretty much
...
meaningless anyways.
-Erik
2001-06-26 22:55:45 +00:00
Eric Andersen
91a6318d55
Make it so we don't segfault when /proc isn't mounted -- guess pid 1...
...
-Erik
2001-06-26 22:44:09 +00:00
Eric Andersen
5ef5614c31
Don't use void * to pass pointers of known type
2001-06-26 16:36:26 +00:00
Eric Andersen
ce98c19dfe
A patch from Erik Meusel <erik@wh58-709.st.uni-magdeburg.de>
...
to fix the behavior of 'tail -f -n 0 FILE'
2001-06-26 15:07:08 +00:00
Glenn L McGrath
78b0e379d7
Vladimir's last_patch_15
2001-06-26 02:06:08 +00:00
Glenn L McGrath
addabd6f16
Patch from Gennady Feldman
...
This should fix "circular buffer" error message shown when running "syslogd -C"
2001-06-26 01:41:59 +00:00
Glenn L McGrath
f8736d251e
rpm2cpio applet by Laurence Anderson
2001-06-26 01:19:34 +00:00
Eric Andersen
6c947d289f
Fix the code for establishing a controlling terminal.
...
-Erik
2001-06-25 22:24:38 +00:00
Eric Andersen
24982c589b
Fix up some warnings that show up on ppc
2001-06-25 19:31:48 +00:00
Eric Andersen
2d848a476a
This should finish off the job control issues with lash. Make certain
...
we have a controlling terminal...
-Erik
2001-06-25 17:11:54 +00:00
Glenn L McGrath
2e6d3cfa82
Nore unarchive (and doc) fixes from Laurence Anderson
2001-06-24 12:36:54 +00:00
Eric Andersen
1557626897
Make the extern NUM_APPLETS be a extern const NUM_APPLETS, to match
...
the actual definition.
-Erik
2001-06-24 06:09:14 +00:00
Eric Andersen
e0c0757d09
These were broken when using dmalloc due to include file ordering
...
problems. busybox.h must be last.
-Erik
2001-06-23 13:49:14 +00:00
Eric Andersen
d9c8acec37
Leave BB_FEATURE_NFSMOUNT disabled by default.
...
-Erik
2001-06-22 15:48:19 +00:00
Glenn L McGrath
8f5b63edea
cpio applet, and changes to associated code
2001-06-22 09:22:06 +00:00
Eric Andersen
52a97ca00c
Some more cleanups. Of special importance, never free a pipe
...
that still has running jobs. Instead, we ignore it and expect
it to be cleaned by the background job stuff.
-Erik
2001-06-22 06:49:26 +00:00
Eric Andersen
c798b07762
Some cleanups for hush. Saves about 350bytes.
...
-Erik
2001-06-22 06:23:03 +00:00
Matt Kraai
a0105713e8
Remove obsolete function declaration.
2001-06-22 04:20:24 +00:00
Eric Andersen
764303f980
stdlib.h defined free(), which this needs
2001-06-22 03:07:19 +00:00
Eric Andersen
30f1eafaaa
Fix the build process so it does not do the evil #ifdef BB_FOO stuff.
...
Build exactly one .o file per function, and let the linker throw away
the junk it doesn't want.
-Erik
2001-06-22 03:00:21 +00:00
Eric Andersen
6b03504441
Add in a missing header file
2001-06-22 02:58:45 +00:00
Glenn L McGrath
76ce7549ce
Dont change date or chmod on symlinks, lchown on symlinks if lchown available
2001-06-22 02:55:16 +00:00
Glenn L McGrath
9f832deecf
remove defines around unarchive, its always used
2001-06-22 02:27:55 +00:00
Tim Riker
7387240ef0
heh
2001-06-22 00:27:21 +00:00
Tim Riker
837097648e
comment cleanup
2001-06-22 00:27:11 +00:00
Tim Riker
fbbd360b3c
create_path -> make_directory
2001-06-22 00:14:20 +00:00
Eric Andersen
8071c02131
Add wget -P support, finishing off bug #1176
...
-Erik
2001-06-21 19:45:06 +00:00
Matt Kraai
ceeff73819
Rewrote mkdir (and touched lots of things in the process).
2001-06-21 19:41:37 +00:00
Eric Andersen
091781e20e
Support tar -C, per bug #1176
...
-Erik
2001-06-21 19:30:10 +00:00
Eric Andersen
8a646dd293
This commit guts lash, restoring it to what it was originally intended to do,
...
just be a simple command line interpreter with basic pipe, redirect, and job
control. For all the more fancy things, people should use hush or ash.
-Erik
2001-06-21 16:38:11 +00:00
Eric Andersen
ea4abff595
Add in (and ignore) tar -p, since we preserver permissions automatically.
...
closes bug #1185
-Erik
2001-06-21 15:17:59 +00:00
Matt Kraai
075228a461
Remove documentation of unsupported sed options.
2001-06-21 14:40:55 +00:00
Matt Kraai
02c40a72b8
Always apply commands with no specified range.
2001-06-21 13:57:51 +00:00
Eric Andersen
fa2661f2e5
Per a suggestion from Tom Oehser, fix up the leading-hyphen hack to
...
make it general. Now all leading single hyphens are ignored for
purposed of applet name matching, while argv[0] is still passed
unaltered to applets, so leading-hyphen sensitive applets (such as sh)
can react accordingly.
-Erik
2001-06-21 04:56:24 +00:00
Eric Andersen
aff5e2eaef
it turs out, there was a nasty tar bug where bb tar would create leading dirs
...
with mode 0777 in all cases due to usask issues. Thanks to Matt Kraai for
noticing and spotting the culprit. This makes bb tar behave just like GNU
tar once again.
-Erik
2001-06-20 20:47:31 +00:00
Glenn L McGrath
06a71cced2
Initialise in_file to stdin, so it wont crash if no source specified
2001-06-20 08:07:34 +00:00
Glenn L McGrath
8e74bf94f3
Changed gz_open to ruturn a stream
2001-06-20 07:54:15 +00:00
Glenn L McGrath
eb1c94078f
Reorganise unarchiving functions, more code re-use, only does single pass(no more linked lists), basis for supporting a cpio (and cheaper untar) applet, but cpio applet isnt included in this.
...
It effects ar, dpkg-deb applets only
2001-06-20 07:48:00 +00:00
Eric Andersen
b4a26e6fc0
For m68k, use __mc68000__ (not __m68k__ ), since that is what the
...
various m68k compilers seem to actually use...
-Erik
2001-06-19 15:00:52 +00:00
Mark Whitley
74c97cdba6
Changed a hard-coded path to a variable defined path.
2001-06-18 16:52:56 +00:00
Eric Andersen
32574a41b4
With a bit of care I was able to save about 100 bytes.
...
-Erik
2001-06-15 20:10:39 +00:00
Mark Whitley
bd4b621e91
Applied patch from Jim Gleason that makes it so busybox will still work even
...
if you rename it.
2001-06-15 16:54:25 +00:00
Glenn L McGrath
6bad1fa1fd
This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.c
2001-06-15 03:13:00 +00:00
Eric Andersen
f429baca86
I reworked make_human_readable_str so it now has a sane interface,
...
and then fixed up df, du, and ls to use the new interface. I also
fixed up some formatting issues in ls while I was in there.
-Erik
2001-06-13 08:02:45 +00:00
Glenn L McGrath
17822cd60a
Reorganise unarchive functions, new files, removed some
2001-06-13 07:34:03 +00:00
Glenn L McGrath
9aff903603
Reorganise archive extraction code
2001-06-13 07:26:39 +00:00
Eric Andersen
dab3d46b9d
A patch from Benjamin Zeckel <bzeckel@cisco.com> to allow
...
nslookup.c to display the correct default nameservers.
2001-06-12 22:21:24 +00:00
Eric Andersen
583e3ca456
Add in Devil-Linux
2001-06-12 22:04:40 +00:00
Matt Kraai
7bd773c9fe
Only use a login shell when it will run on a console.
2001-06-12 20:55:02 +00:00
Mark Whitley
0915c4b985
- Fixed bug where you couldn't mix line number and regexes in two-address cmds
...
- Fixed bug where you couldn't use two addresses for a 'c' cmd
- Moved the do_sed_cmd function into process_file to simplify some things
- Reduced a buncha lines of code in the process
2001-06-11 23:50:06 +00:00
Matt Kraai
bf0a010cf7
Copy files until EOF, not the reported file size, to deal with bad sizes in
...
the proc filesystem.
2001-06-11 13:58:02 +00:00
Matt Kraai
5246225596
Add padding to struct sysinfo needed by m68k (note and patch by Richard
...
Hirst).
2001-06-08 13:57:27 +00:00
Eric Andersen
04407e522b
Another hush update from Larry:
...
Fixes the interaction between if/then/else/fi syntax and variables.
I planned to do it right from the beginning, but my implementation
was buggy. Also adds the relevant test cases. Also adds some old
Matt Kraai variable test cases that got left out somehow.
2001-06-07 16:42:05 +00:00
Eric Andersen
4f3e24979b
Add the Linux Terminal Server Project
2001-06-06 18:21:25 +00:00
Eric Andersen
817e73cb63
A patch from Larry to fix pathological things like '>""'
2001-06-06 17:56:09 +00:00
Matt Kraai
12422ffe3e
Added a new testcase from Larry Doolittle (inspired by a note from Vadim
...
Berkgaut).
2001-06-05 17:48:47 +00:00
Matt Kraai
c616e53ca2
Don't close file descriptors when we are duplicating them.
2001-06-05 16:50:08 +00:00
Eric Andersen
f4dd6e3d1a
Do not purge the .cvsignore files on 'make release' so that
...
people can properly import into their own CVS trees.
-Erik
2001-06-04 17:26:38 +00:00
Eric Andersen
cb2a372c9f
Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to never
...
change permissions on existing directories. This behavior is contrary to SUSv2
and contrary to GNU tar. Thanks to Matt Kraai for pointing this out. I should
have been much more careful about accepting such a patch.
-Erik
2001-06-04 16:54:39 +00:00
Matt Kraai
67a4640333
Loop forever instead of exiting.
2001-06-03 05:55:52 +00:00
Glenn L McGrath
62ebe2e443
Remove space between ar options
2001-06-03 05:41:59 +00:00
Glenn L McGrath
cda5cf1c2f
Correct ar options
2001-06-03 05:15:04 +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
8b113f93b9
Vladimir's last_patch13, containing several bugfixes.
2001-06-01 21:47:15 +00:00
Eric Andersen
4f6753e586
Cope gracefully when people type something, then hit ^C.
...
-Erik
2001-05-31 17:17:12 +00:00
Eric Andersen
4f990533e3
Patch from Vladimir to fix up autocompletion on a files/dirs with spaces in
...
them in the presence of a quoting. Also revert my signal handling patch,
which seems to not solve the problem I thought it solved.
2001-05-31 17:15:57 +00:00
Eric Andersen
f12cc4ee68
Make hush the default shell. Ensure the applets_list gets
...
the axe on a distclean.
2001-05-30 19:09:40 +00:00
Eric Andersen
86f0167e39
grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.
2001-05-29 22:36:39 +00:00
Matt Kraai
6e9e136fcb
Use safe_strncpy.
2001-05-27 14:11:52 +00:00
Mark Whitley
4f6aea807b
More shell / quoting testcases from Larry.
2001-05-24 23:05:13 +00:00
Mark Whitley
8b7a0d807a
Some more patchelttes from Larry Doolittle.
2001-05-24 21:31:09 +00:00
Mark Whitley
0a4f578fdc
'Nother patch from Larry to fix a buglet in how the line gets sed-ified.
...
Also, more testcases and comments on bugs and formatting differences in some
of the testcases.
2001-05-24 21:24:39 +00:00
Mark Whitley
fa43e54b6f
Added support for grep -e and grep -f, closes bug #1164 . Also added some
...
testcases for these new features.
2001-05-24 18:36:18 +00:00
Mark Whitley
04052f96e1
Numerous new testcases from Larry Doolittle and a patch to tester.sh to avoid
...
a bash2-ism and quote variables that contain strings.
2001-05-24 17:15:33 +00:00
Eric Andersen
a813afc24f
Plug another memory leak
2001-05-24 16:19:36 +00:00
Eric Andersen
5a9d441b2c
Fix up some signed char vs int issues that show up on powerpc.
2001-05-24 14:16:28 +00:00
Eric Andersen
1c1f5d3047
Get BB_LASH out of the list...
2001-05-24 14:11:09 +00:00
Eric Andersen
a15dc15f12
Plug another memory leak in hush. This one showed up when backticked
...
commands were run. This one was sure a bugger to find.
-Erik
2001-05-23 23:46:09 +00:00
Eric Andersen
bf7df04ec1
Fix a massive memory leak in the run_list_test() function.
...
Rename run_list_test() as free_pipe_list().
Rename run_pipe_test() as free_pipe().
-Erik
2001-05-23 22:18:35 +00:00
Eric Andersen
77d9268892
Patch from larry to fix some grammar errors.
2001-05-23 20:32:09 +00:00
Matt Kraai
bdd4eced84
Commit a patch by Larry Doolittle which fixes recursive calls to file_peek,
...
and improves some debugging messages.
2001-05-23 17:43:00 +00:00
Matt Kraai
774d135b66
Make more robust (patch by Larry Doolittle).
2001-05-23 14:45:09 +00:00
Eric Andersen
3200f5ac68
It turns out the descriptions of both dos2unix and unix2dos
...
were broken. This fixes.
-Erik
2001-05-22 22:39:10 +00:00
Eric Andersen
57e6a49e5b
Excellent. This patch from Larry fixes the behavior of hush
...
when builtins are included in pipes.
2001-05-22 22:34:51 +00:00
Eric Andersen
9978576f15
Fix this case. No, really this time.
...
unset FOO
export FOO=bar
FOO=baz
echo "global env: " `env | grep ^FOO`
echo "local env: " `set | grep ^FOO`
-Erik
2001-05-22 21:37:48 +00:00
Eric Andersen
aeb44c4da6
Fix a race. Sometimes by the time we got to checkjobs(), the
...
pipe struct had already been freed. Return immediately if the
pipe is NULL.
2001-05-22 20:29:00 +00:00
Eric Andersen
816867858b
Oops. Remove some debug noise I left in.
2001-05-22 19:23:35 +00:00
Eric Andersen
94ac244dea
Updates from both Vladimir and Larry
2001-05-22 19:05:18 +00:00
Matt Kraai
1eb4acfc23
Fixed misnamed rewind command (noted by Tom Oehser).
2001-05-22 14:32:35 +00:00
Matt Kraai
edc806507c
Fixed extra -- lines (noted by Christophe Boyanique).
2001-05-22 14:29:27 +00:00
Matt Kraai
117231c44f
Make - read compressed data from stdin (thanks to Marius Groeger).
2001-05-22 14:23:02 +00:00
Matt Kraai
7f7348b7b2
Correctly remove leading slashes upon extraction (thanks to Marius Groeger).
2001-05-22 14:18:03 +00:00
Mark Whitley
1d9d41150b
Fixed mishandling of -c & -l options and accounted for case when we're
...
grepping only one file.
2001-05-21 21:13:00 +00:00
Eric Andersen
004015e9c4
Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug
...
#1130 (i.e. When you turn on features it should always ADD features)
2001-05-21 20:30:51 +00:00
Eric Andersen
abec344ab7
A couple more minor touchups
2001-05-21 17:58:01 +00:00
Eric Andersen
317827d9e5
Several cleanups for usage messages
2001-05-21 17:50:53 +00:00
Matt Kraai
73991ff925
Fix tell support.
2001-05-21 17:01:32 +00:00
Eric Andersen
ada18ff0f5
The latest patch from Larry
2001-05-21 16:18:22 +00:00
Eric Andersen
8ae319a322
This patch from Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de> is based on
...
the work of Jinux Kim on his "babobox" (derived from busybox-0.42), and enables
kernel module loading and unloading for uClinux/m68k.
2001-05-21 16:09:18 +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
Matt Kraai
13a70ac2ab
Fix open mode for IOCTLs which write to the tape.
2001-05-21 15:00:39 +00:00
Eric Andersen
9ffb7dd9a4
This is a patch from Vladimir:
...
> I rewrite *local_variable* function in hush.c with:
> 1) remove many memory leaks
> 2) add support read_only protect (require write builtin function for set this,
> I write this special for variable HUSH_VERION=0.01)
> 3) commad read set only local variable now
> 4) remove many error messages if "set unset export" not defined variable
> (bash syntax not put and set error code). Hmm, if I set result to -1, you hush
> called waitpid and returned with error "no waitpid" ( i not found place this
> error).
> 5) destroy error in new version check xgetcwd()==NULL and set "(unknow)" -
> this have error: crashe in next call `pwd`, but xgetcwd(not null) called
> free(arg).
> 6) next add integraion with libbb
Valdimir's patch missed two cases of local variable handling
FOO=bar
export FOO=baz
unset FOO
and
export FOO=bar
FOO=baz
which were working before, so I fixed those two cases.
2001-05-19 03:00:46 +00:00
Eric Andersen
6197c51834
Fix an escape problem in the docs. Some \n's didn't have the '\'
...
escaped, and so were messsing the out output.
-Erik
2001-05-18 23:14:53 +00:00
Mark Whitley
b6967635eb
(Almost) brand-new version of cut that supports muitiple lists of positions,
...
per feature request from Tom Oehser.
2001-05-18 23:04:51 +00:00
Matt Kraai
1844770fec
Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.
2001-05-18 21:24:58 +00:00
Matt Kraai
d6ef07406d
Rewrote copyfd to use library functions, terminate, and copy correct data.
2001-05-18 14:14:55 +00:00
Matt Kraai
6943815400
Fix applet_name.
2001-05-17 20:40:21 +00:00
Matt Kraai
231f998aba
Switch from hstrerror to herror for libc5 systems.
2001-05-17 14:19:05 +00:00
Matt Kraai
7cedac567c
Remove unused function. If necessary, we can use remove_file instead.
2001-05-17 04:03:22 +00:00
Matt Kraai
bc0f783a5f
Fix invocation of builtin shell to have proper argc and argv.
2001-05-17 03:54:37 +00:00
Matt Kraai
233817437d
Always print a newline after a matching substitution.
2001-05-17 01:02:58 +00:00
Eric Andersen
bfae2529b8
It turns out job control in both hush and lash was broken by the
...
signal handling in cmdedit.c. Disabling it makes the shells behave
themselves again. hush isn't quite there, but is getting close...
-Erik
2001-05-17 00:14:27 +00:00
Eric Andersen
2439a59828
Remove/replace the "div" call.
2001-05-16 18:53:34 +00:00
Matt Kraai
8f7a4ad442
Add missing include, noted by Larry Doolittle.
2001-05-16 17:05:03 +00:00
Matt Kraai
bf381a0ad8
Whoops. Forgot the x.
2001-05-16 15:52:23 +00:00
Matt Kraai
c55b8d41c1
Add xgethostbyname and herror_msg* functions.
2001-05-16 15:40:51 +00:00
Matt Kraai
59df6f7398
Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c
...
by Larry Doolittle.
2001-05-16 14:21:09 +00:00
Eric Andersen
bc604a2f41
Move init of a bunch of globals into main so we are at least
...
a bit more reentrant.
-Erik
2001-05-16 05:24:03 +00:00
Eric Andersen
f72f562b2f
Fix the behavior of local shell variables to match that of bash and ash.
...
-Erik
2001-05-15 23:21:41 +00:00
Eric Andersen
9abfe85e96
Suggestion from Larry: no format string, use fputs instead.
2001-05-15 20:11:49 +00:00
Eric Andersen
50ae3102fb
Patch from Adam Heath <doogie@debian.org> to add arbitrary header support
...
to wget, so it can now do funky interactive things with cgi scripts.
2001-05-15 17:51:37 +00:00
Eric Andersen
55f9872616
This patch from Adam Heath <doogie@debian.org>, makes print_file
...
(used by cat, grep, sed, etc) quite a bit faster.
2001-05-15 17:48:09 +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
Eric Andersen
15649c11f3
Oops. I left in some debug noise.
2001-05-15 17:28:26 +00:00
Eric Andersen
20a69a77d2
Write set_local_var() and fixup lookup_param() so you can now use
...
shell local variables.
-Erik
2001-05-15 17:24:44 +00:00
Eric Andersen
78a7c99f7f
This patch covers one big part of variable handling.
...
$ a=b foo
should be handled correctly.
$ a=b
is parsed OK, but the actual variable setting is not
yet written. Except for some weird exceptions related
to quoting rules, this code passes (matches ash behavior)
all the tests I threw at it.
If someone now writes set_local_var(), and updates lookup_param()
to match, we can claim success!
- Larry
2001-05-15 16:30:25 +00:00
Matt Kraai
be9f44a7df
Fix incorrect length passed to accept noted by Larry Doolittle.
2001-05-15 03:05:39 +00:00
Mark Whitley
336480fe6f
Added some testcases for grep and sed (many more could still be added)
2001-05-14 21:18:54 +00:00
Mark Whitley
d928accbbd
...Need to print just a few more newlines.
2001-05-14 20:44:26 +00:00
Eric Andersen
2416dfc3c9
A compromise solution for insmod
2001-05-14 20:03:04 +00:00
Mark Whitley
dd527d3c62
...And now that we're chomping lines, we need to re-add the newline later...
2001-05-14 19:53:08 +00:00
Mark Whitley
9de2659264
We will chomp() lines so REG_NEWLINE does not break stuff. Thanks, Matt.
2001-05-14 19:44:44 +00:00
Mark Whitley
35e59bed97
Fixed a subtle bug in the handling of -l and -c flags.
2001-05-14 19:40:32 +00:00
Mark Whitley
452cc1f293
Added REG_NEWLINE as cflags to xregcomp for normal addresses so EOL $ will work
2001-05-14 19:23:02 +00:00
Matt Kraai
9496466044
Follow symbolic links when searching for modules.
2001-05-14 18:27:25 +00:00
Eric Andersen
14d354312a
Per suggestion from Vladimir, eliminate check_wildcard_match(), which
...
was only being used by insmod these days.
Also, I spent a minute adjusting insmod so that it first searches
/lib/modules/`uname -r` and then (if that fails) searches /lib/modules,
which makes bb insmod behave much more like the real insmod, and should
avoid nasty surprises (such as the recent "Modutils vs. Busybox..."
thread).
-Erik
2001-05-14 17:07:32 +00:00
Matt Kraai
cb378a5267
Add missing periods and delete superfluous whitespace.
2001-05-14 06:35:15 +00:00
Eric Andersen
a17b3631fe
Do not ever change permissions on existing directories, only
...
on directories we created while extracting a tarball. Fix
based on bug report and patch from Konstantin Boldyshev
<konst@linuxassembly.org >
-Erik
2001-05-13 15:39:30 +00:00
Eric Andersen
95a349f427
When doing a 'wget -O -' turn on the quiet flag, lest the status bar
...
noise get mingled with the retrieved webpage.
-Erik
2001-05-13 00:55:54 +00:00
Eric Andersen
ddb00545b7
A patch from Aaron Lehmann <aaronl@vitelus.com> to fix a
...
crash on a broken regexp.
2001-05-13 00:48:09 +00:00
Eric Andersen
4819c3d477
Make the locale stuff only do the getpid==1 check if BB_INIT is defined
2001-05-13 00:33:16 +00:00
Mark Whitley
1f3b9f297e
Added support for 'r' command in sed.
2001-05-11 22:27:13 +00:00
Eric Andersen
cfa88ecb72
Fix up some silly warnings
2001-05-11 18:08:16 +00:00
Eric Andersen
5f265b755a
Fix a segfault in lash, hush, and cmdedit. Each of these used
...
xgetcwd, but did not check the return for a NULL, and then continued
to call strlen on the NULL when the cwd had been removed from under it.
-Erik
2001-05-11 16:58:46 +00:00
Eric Andersen
9d94deabd3
Use xgetcwd
2001-05-11 16:36:03 +00:00
Eric Andersen
238da24620
Fix the chown usage text, also thanks to Lars Kellogg-Stedman <lars@larsshack.org>
2001-05-11 16:31:46 +00:00
Eric Andersen
2b02ab9606
This patch from Lars Kellogg-Stedman, fixes the behavior of
...
chown to be consistant with GNU chown, so that it follows
symlinks (who cares about the perms on a link anyways?) unless
the -h option is supplied.
-Erik
2001-05-11 15:55:41 +00:00
Matt Kraai
eb5f433736
Check that putenv succeeded, suggested by Jonas Holmberg.
2001-05-11 15:16:28 +00:00
Matt Kraai
c96381be40
Fix env usage information.
2001-05-11 14:28:17 +00:00
Matt Kraai
5b44f48afc
Fix handling of '-' option and way that variables are added to the
...
environment from Jonas Holmberg <jonas.holmberg@axis.com >. Fix
handling of command options by adding + to getopt string.
2001-05-11 14:26:29 +00:00
Matt Kraai
f3e79ba6e3
Fix symlink removal problem noted by Erik Andersen.
2001-05-11 02:35:36 +00:00
Matt Kraai
6e91f69a0d
Add installation instructions from Tomas Pospisek <tpo_hp@sourcepole.ch>.
2001-05-10 14:12:20 +00:00
Matt Kraai
854125f6e6
Make stdio functions which can be interrupted by the progressmeter timer
...
recover gracefully from EINTR.
2001-05-09 19:15:46 +00:00
Eric Andersen
d283e1cfe9
Bump version to 0.52pre
2001-05-09 17:31:27 +00:00
Eric Andersen
1a6d39b259
A few more structural updates for job control.
...
-Erik
2001-05-08 05:11:54 +00:00
Eric Andersen
0a36de0580
Fix a stupid segfault caused by dereferencing a NULL ptr.
...
-Erik
2001-05-08 04:25:46 +00:00
Eric Andersen
45e92ba2ce
This patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works.
...
This way leaks memory, but oh well. We will probably fix that when we get
around to doing local variables.
2001-05-07 23:53:09 +00:00
Eric Andersen
8cd16d8fd3
This syncs things with Vladimir's latest patches. Also gets
...
rid of useless 'const int' declarations.
-Erik
2001-05-07 23:11:23 +00:00
Eric Andersen
186bf1defc
This is Vladimir's update to last_char_is(). Since 'char *' is
...
the least common denominator, I modified it to use that (not const),
which will minimize the need for casting elsewhere.
2001-05-07 23:10:16 +00:00
Eric Andersen
de0ca0cd9e
Silence cut so it doesn't whine during compilation
2001-05-07 23:07:17 +00:00
Eric Andersen
f3f9f3efa7
A patch from Vladimir to simplify chomp()
2001-05-07 23:02:39 +00:00
Eric Andersen
4ad13e5d95
A patch from Vladimir to simplify concat_path_file() and
...
make it less likely to break.
2001-05-07 23:01:32 +00:00
Eric Andersen
c33ebc9741
A patch from Vladimir to use last_char_is(), and a patch from
...
Larry to fix a silly bug when BB_FEATURE_VI_OPTIMIZE_CURSOR
is not defined.
2001-05-07 22:57:47 +00:00
Eric Andersen
04b0354d8e
Patch from Vladimir to use last_char_is to simplify du.c
2001-05-07 22:49:43 +00:00
Eric Andersen
8f3e51b4ad
Patch from Vladimir to remove testing stuff from stty
2001-05-07 22:47:45 +00:00
Eric Andersen
8d35134ad8
A bug fix from Vladimir for a memory leak I stupidly
...
added to which.c.
2001-05-07 22:45:06 +00:00
Eric Andersen
83a2ae2184
More hush updates from Larry:
...
Update some comments. Generate partial placeholders for the missing
builtins. Write builtin_umask. Properly treat exec without arguments
as a means to open/close files within the running script. Implement
"4<&-" that encodes for file descriptor closure.
2001-05-07 17:59:25 +00:00
Eric Andersen
7e1273edf7
Patch from Jim McQuillan to pass the terminal type to the remote host.
2001-05-07 17:57:45 +00:00
Eric Andersen
238bc4090d
Per comment from Jim McQuillan <jam@mcquil.com>, don't log
...
syslogd startup/shutdown messages as KERN.EMERG, but use
SYSLOG.INFO instead.
2001-05-07 17:55:05 +00:00
Eric Andersen
da7f095c12
Update comment re USE_SYSTEM_PWD_GRP
...
-Erik
2001-05-07 17:51:34 +00:00
Eric Andersen
28355a36da
Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,
...
make xreadlink() return NULL on failure, and make sure everyone
uses the interface correctly.
-Erik
2001-05-07 17:48:28 +00:00
Eric Andersen
822c3837f9
Another vi update from Sterling Huxley:
...
- All of the ESC sequences are now in variables. This should make
re-targeting for other terminals easier.
- The initial screen draw does not force out every single column.
Should be faster.
- The place_cursor() routine trys to be smarter about moving the
cursor. This is optional based on BB_FEATURE_VI_OPTIMIZE_CURSOR.
- The 't' and 'f' intra-line positioning commands were added.
They can now be used as targets in 'c' and 'd' commands, i.e.,
dfx - delete from dot to next 'x'
dtx - delete from dot to the char before next 'x'
- show_status_line() uses a static int checksum to remember what
is currently displayed on the screen and not re-draw the status
line unless it has changed.
- Some of the code in refresh() was moved out to format_line().
refresh() trys to send out the smallest segment containing
the changed chars rather than the whole line.
- Added "flash" to the :set command to specify if error indication
should be by flashing the screen or ringing the bell.
- Changed the rawmode() routine so that it turns off the
NL -> CR NL translation. On output of a NL, the OS will not add
a CR.
- If vi was started as "view", with global read-only mode,
and another file is opened, the file is opened read-only
rather than read+write.
2001-05-07 17:37:43 +00:00
Glenn L McGrath
713b398700
woops, forgot the break statment
2001-05-07 12:06:37 +00:00
Glenn L McGrath
5bcfc9ba1a
Tolerate -q argument, if -q is passed give a warning and continue rather than just fail
2001-05-07 12:01:58 +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
2e6c878763
Rewrite -c and -b processing to shrink code and eliminate buffer overrun.
2001-05-05 16:19:13 +00:00
Glenn L McGrath
6b8c550d88
include libbb.h after other includes
2001-05-05 03:19:12 +00:00
Eric Andersen
2dcfba7117
Larry's variant on Evin Robertson's fix to what I messed up
...
trying to make job control work. This fix makes it so that
hush doesn't error out when init hasn't set up job control,
as in when init=/bin/sh
2001-05-04 22:13:37 +00:00
Eric Andersen
044a72d0d5
Larry suggested using concat_path_file() would be an even safer bet
...
for 'which'. I ageed, so I whipped this up -- which revealed a bug in
concat_path_file. It turns out that that a '/' can be appended from
either the path _or_ the filename, but only the former was checked.
-Erik
2001-05-04 22:04:24 +00:00
Mark Whitley
a0ba9f45fb
Wrote documentation and scripts for creating a busybox boot floppy. Initial revision.
2001-05-04 21:46:00 +00:00
Matt Kraai
d24f878546
Don't reset parents context when we encounter an terminator. Fixes
...
if true; then if true; then true; fi; fi
2001-05-04 21:20:20 +00:00
Eric Andersen
7526f035f4
Fix a buffer overflow. Which accounted for the size of the path, plus the the
...
'/', plus the size of the test command. It did not account for the terminating
NULL, which overwrote the end of the string.
-Erik
2001-05-04 20:47:33 +00:00
Eric Andersen
e5ffb911e8
If it fails to run a builtin, let it fall through to
...
exec the real thing.
-Erik
2001-05-04 16:30:29 +00:00
Matt Kraai
e6bf66eada
Fix two bugs reported by Ralph Jones.
2001-05-04 14:49:58 +00:00
Eric Andersen
b0aca921be
A todo update from larry to acknowledge the existance of hush
2001-05-03 17:35:48 +00:00
Eric Andersen
87d893c04b
devfs does not support creation of regular files. So change the
...
test a bit so as to not possibly create a regular file.
-Erik
2001-05-03 07:01:41 +00:00
Matt Kraai
6689140597
Remove summary header. Not present in GNU or SUSv2.
2001-05-03 04:45:40 +00:00
Matt Kraai
80abc45182
Move up waitpid error check so that errno isn't clobbered by tcsetpgrp.
2001-05-02 21:48:17 +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
Eric Andersen
0fcd447d59
Some more job control updates. It will now sucessfully background
...
stuff. Good luck getting things back into the foreground though...
-Erik
2001-05-02 20:12:03 +00:00
Matt Kraai
20a3069ec0
Don't treat newline as pipe separator when processing substitutions.
2001-05-02 17:52:49 +00:00
Eric Andersen
19ec9ee91e
Use .png for images (removing all .gifs) and make them all 90x36
...
-Erik
2001-05-02 17:19:25 +00:00
Matt Kraai
9f8caf134f
Fix $(...) construction. Noted and patched by Larry Doolittle
...
<ldoolitt@recycle.lbl.gov >. I'm just a patch whore. :)
2001-05-02 16:26:12 +00:00
Eric Andersen
bafd94f154
First pass at getting job control working. This gets the infrastructure
...
in place, but something is still missing/wrong in there. Testing with
'grep foo &' seems to put _hush_ into the background. Pondering...
-Erik
2001-05-02 16:11:59 +00:00
Matt Kraai
1c8a59ab95
Use the current pgrp, not pid, when resetting the foreground process group.
...
Fixes bizarre suspension when executing `echo`.
2001-05-02 15:37:09 +00:00
Matt Kraai
f162e7d09d
Don't segfault if the first word is the empty string.
2001-05-02 14:48:48 +00:00
Eric Andersen
e67c3ce327
Another update from Larry:
...
Makes hush return code equal to that of the last command executed.
Fixes the mode where input comes from a file.
2001-05-02 02:09:36 +00:00
Matt Kraai
e0244b0642
Skip headers with empty filenames, rather than stopping.
2001-05-01 21:12:31 +00:00
Eric Andersen
b9f5b82339
Another refinement, this time from Larry.
2001-05-01 16:24:32 +00:00
Eric Andersen
6d553ef200
Argh. Now we break non-pristine builds. Check a bit more carefully.
...
-Erik
2001-05-01 14:54:35 +00:00
Eric Andersen
abde065935
Oops. The dangers of applying patches by hand...
2001-05-01 14:37:03 +00:00
Eric Andersen
4ed5e37d4b
Another hush update from Larry:
...
Minor improvements. Something is still broken with running
scripts via "hush filename". All the following are now handled
acceptably (matches ash, not bash).
if true; then echo foo1; fi
if
true; then echo foo2; fi
if true; false; then echo bar; else echo foo3; fi
if true || false; then echo foo4; fi
- Larry
2001-05-01 01:49:50 +00:00
Eric Andersen
3f99b567b8
A patch from Larry to fix pristine source builds (again).
...
I just can't seem to _not_ break it. Sigh.
2001-05-01 01:40:34 +00:00
Eric Andersen
aac75e5a78
Some more hush.c updates from Larry Doolittle.
2001-04-30 18:18:45 +00:00
Eric Andersen
0e9aef36fa
Oops. I was a bit too hasty and also changed applet_name.
2001-04-30 18:18:02 +00:00
Mark Whitley
8a633268ef
Made new xreadlink function for libbb and changed applets to use it instead of
...
readlink(2).
2001-04-30 18:17:00 +00:00
Eric Andersen
6f34394454
These messages can be .rodata, so make them even more const.
...
-Erik
2001-04-30 18:08:03 +00:00
Eric Andersen
65504ac12c
These do not need initial values. Let them live in the bss.
...
-Erik
2001-04-30 18:07:24 +00:00
Eric Andersen
defa4f93c2
Per suggestion by Matt, make sh.c a real target. There is no
...
need for the useless sh_link dummy target -- use the real thing.
-Erik
2001-04-30 17:52:36 +00:00
Matt Kraai
218aa370b4
Fix user permissions of copied directories.
2001-04-30 17:32:43 +00:00
Matt Kraai
43ca13714b
Simplify permission handling for FIFOs.
2001-04-30 16:43:21 +00:00
Matt Kraai
24abecc349
Fix exit status when there is an error copying a file.
2001-04-30 16:37:04 +00:00
Glenn L McGrath
af166e7ce0
Logic reversal for last_char_is
2001-04-29 00:50:33 +00:00
David Kimdon
2bf4dad7ec
fix to applet_source_list rule so Debian package continues to build
2001-04-28 16:37:23 +00:00
Eric Andersen
07e462fd6d
Matt was complaining. Hopefully this helps the sh.c link situation
2001-04-27 18:36:43 +00:00
Matt Kraai
72ab975a6b
Terminate source correctly when copying symlink. Report and patch by
...
Brian Webb <webbb@desertscenes.net >.
2001-04-27 15:40:27 +00:00
Eric Andersen
088875fec4
Use BUFSIZ for the_command to match size used in cmdedit
2001-04-27 07:49:41 +00:00
Eric Andersen
af44a0e8f4
An update to hush from Larry:
...
It should recover more smoothly from syntax errors, and it now
has a decent guess when the reserved word construct is over
(or not) to control execution and prompting. I took out all the
redundant standalone test copies of libbb routines, but left in a
hook so I can include those for my testing. I'll post that include
file on my web site.
- Larry
2001-04-27 07:26:12 +00:00
Eric Andersen
0081466925
Be a bit more sneaky about the sh.c symlink so you don't need to
...
do a mke clean for it to happen.
-Erik
2001-04-26 23:29:10 +00:00
Eric Andersen
0f9426edb0
Ignore some generated files
2001-04-26 23:23:04 +00:00
Eric Andersen
25f2703015
This is the initial checkin of Larry Doolittle's hush.c, using his
...
April 25, 2001 snapshot, adjusted a bit by me so it has cmdedit support.
This checkin also removes sh.c. In the future sh.c will be a symlink to
your shell of choice. For now, this symlink will default to pointing to
lash.c (as in the past). If you change the symlink to point to hush.c,
then thats what you will get. This symlink business is a temporary situation,
which will be cleaned up Real Soon Now(tm).
-Erik
2001-04-26 23:22:31 +00:00
Eric Andersen
a1dbc22469
Disable lash
...
-Erik
2001-04-26 23:10:22 +00:00
Eric Andersen
924ab5b7d3
These days busybox.pod is autogenerated, so it should be removed
...
from CVS.
2001-04-26 23:06:39 +00:00
Eric Andersen
7f3b86e7bf
A fix from Larry for a corner case where insmod could end up
...
doing an xrealloc(0).
2001-04-26 19:29:58 +00:00
Matt Kraai
6aabfd5e30
Fix handling of permission addition and removal (e.g., o-r).
2001-04-26 18:55:29 +00:00
Eric Andersen
ca85cdbe4c
Doh. I never allocated storate for the struct stat I am using.
...
There was just a never initialized pointer.
-Erik
2001-04-26 18:43:36 +00:00
Matt Kraai
468f504fd7
Fix handling of -R flag.
2001-04-26 18:27:47 +00:00
Eric Andersen
c1bdffe99b
Another nice cleanup from Larry. This adds a new last_char_is() function and
...
uses it to avoid possible buffer underruns whn strlen is zero, and avoid the
possible space-hogging inline of strlen() in several cases.
-Erik
2001-04-26 15:56:47 +00:00
Eric Andersen
3c3277f0bd
As Larry pointed out, this the off by one canbe fixed much more elegantly.
2001-04-26 15:41:51 +00:00
Eric Andersen
30592a5451
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
...
-Erik
2001-04-26 14:56:45 +00:00
Mark Whitley
e55987896a
Applied patch from Larry Doolittle to fix pristine build breakage.
2001-04-25 23:49:43 +00:00
Mark Whitley
2789906aad
Removed obsoleted BB_FEATURE_RM_INTERACTIVE
2001-04-25 22:08:56 +00:00
Mark Whitley
207587a9b4
Applied patch from I.Q. to add -s to cmp.
2001-04-25 20:41:02 +00:00
Mark Whitley
c29c44c00e
libbb.h now includes ../busybox.h. This way, files in libbb that have
...
BB_[FEATURE] #defines won't be ignored. Credit to Magnus Damm for spotting
this.
2001-04-25 18:06:21 +00:00
Eric Andersen
4f4bcfcd1a
Some more cleanups for insmod from Larry.
...
-Erik
2001-04-25 17:22:32 +00:00
Eric Andersen
c57a75d896
Larry noticed that chown and chgrp has the version numbers off a bit
...
for glibc's lchown support. Thanks Larry.
2001-04-25 17:12:33 +00:00
Mark Whitley
4b541a8817
Moved some #ifdefs down below #include "busybox.h" where they belong.
2001-04-25 17:10:30 +00:00
Mark Whitley
67d7fe66e7
Sync'ed up the olympus section between this and stock Config.h
2001-04-25 17:05:51 +00:00
Mark Whitley
4f3558af17
Fixed a BB_MTAB #define buglet reported by Magnus Damm.
2001-04-25 17:03:40 +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
Eric Andersen
3676374915
Cleanup more carefully after pod2html
2001-04-24 21:46:07 +00:00
Eric Andersen
f227815c3a
Several cleanups from Larry.
2001-04-24 21:41:41 +00:00
Matt Kraai
8810bdbba3
Rewrote rm.
2001-04-24 20:04:18 +00:00
Eric Andersen
9f0fedb8f6
Split up chmod_chown_chgrp.c into 3 separate apps. This unfortunately
...
adds 384 bytes to the overall size. But having each app be standalone
is the Right Thing(tm) so we will just have to live with it.
-Erik
2001-04-24 18:07:19 +00:00
Matt Kraai
3a4aef5a4c
Update applet define from BB_CP_MV to BB_CP and BB_MV.
2001-04-24 15:19:04 +00:00
Matt Kraai
01441036e9
Use generic flag names.
2001-04-24 01:30:02 +00:00
Matt Kraai
9ff9325e60
Move applet_name declaration from busybox.h to libbb.h.
2001-04-24 01:12:33 +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
de1b262942
Remove file obsoleted by cp/mv rewrite.
2001-04-23 19:48:26 +00:00
Matt Kraai
91b2855ba8
Rewrite cp and mv to be SUSv2 compliant.
2001-04-23 18:53:07 +00:00
Mark Whitley
4e9267d76c
Reversed last patch; unnecessary.
2001-04-23 17:56:27 +00:00
Mark Whitley
4b66dabc76
Added a sanity check to fix weird bug exposed when sourcing in commands from a
...
file with lash. Based on report from Heinz Walter.
2001-04-23 17:04:41 +00:00
Matt Kraai
8a24a65d2f
Change link order so that libbb functions use libpwd.a when appropriate.
2001-04-23 16:11:57 +00:00
Eric Andersen
ed424dbf1d
Some patches from Gennady Feldman. Fixed a glob problem such that
...
'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control.
Made cmdedit exit sanely when it cannot read input.
2001-04-23 15:28:28 +00:00
Eric Andersen
d8862928c2
A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)
...
so init will work on serial consoles with 2.4.3+ kernels, thanks
to Fabrice Gautier <gautier@email.enst.fr > for finding this one.
-Erik
2001-04-23 15:14:11 +00:00
Glenn L McGrath
f5c358bc98
Simplify file_prefix handling, and use of *dir variable.
2001-04-23 13:52:02 +00:00
Matt Kraai
782ab3ccf8
Simplify pathname building, in which a bug was noted by Larry Doolittle,
...
a patch was provided by Vladimir Oleynik, and am improved patch commited
by me.
2001-04-23 01:07:00 +00:00
Glenn L McGrath
ee0d93ed04
Fix horrible, horrible memmory leak. I wondered why processes were dying !
2001-04-21 10:26:15 +00:00
Glenn L McGrath
89dc02d944
Clearly define out exclude list code, as recommended by Larry Doolittle
2001-04-21 02:12:13 +00:00
Mark Whitley
56c14a6473
Fixed a buglet where an extra newline was being added after an insert command
...
in some cases.
2001-04-20 23:41:44 +00:00
Mark Whitley
497ef46587
Made a correction to a bad test expression. Props to Larry Doolittle for
...
spotting this one.
2001-04-20 23:27:17 +00:00
Mark Whitley
3e310ac309
Applied patch from Larry Doolittle to give users the third option of putting
...
buffers in BSS (in addition to stack and heap).
2001-04-20 17:40:33 +00:00
Glenn L McGrath
6ebd633829
Set permissions of created file
2001-04-20 05:16:38 +00:00
Eric Andersen
46cd74b9e3
This has two patches. First it moves interface.c to libbb (it is
...
support code after all). It also contains a patch from Larry Doolittle
that removes two instances of "strlen([^)]*) *- *1", un-shadows two
variables, relaxes requirement for a sprintf(3) that returns number of
bytes written, and eliminates a duplicate subroutine.
2001-04-19 16:55:27 +00:00
Matt Kraai
3ce79338e6
Fix buffer underrun noted and solved by Larry Doolittle.
2001-04-19 14:56:23 +00:00
Eric Andersen
0a3bda2c53
Move real_loop.h to libbb, where it belongs.
...
-Erik
2001-04-18 22:23:22 +00:00
Eric Andersen
b5ec61e4f5
Add types for the inline funcs, thanks to Ralph Siemsen <ralphs@netwinder.org>
2001-04-18 20:17:05 +00:00
Matt Kraai
53265546a6
Eliminate spurious warning, convert to getopt, and eliminate redundant check.
2001-04-18 16:05:34 +00:00
Matt Kraai
96dcd19b8a
Fix a number of problems with argument handling.
2001-04-18 15:54:09 +00:00
Matt Kraai
54652230d4
Eliminate a segfault when called on an existing file with out an extension:
...
touch foo && gunzip foo
2001-04-18 15:51:45 +00:00
Matt Kraai
b181056e06
Eliminated seeks so that we work correctly on pipes, and removed reliance on
...
undefined evaluation ordering. Thanks to Anthony Towns for explanation and
solution.
2001-04-18 14:49:55 +00:00
Glenn L McGrath
bcfeb2ac44
Fix zcat/gunzip when reading from stdin
2001-04-18 13:34:09 +00:00
John Beppu
2771d1a574
- updated busybox_header.pod by adding adjtimex to the list.
...
- a new busybox.pod that reflects my fixes, and todays patches
to usage.h
2001-04-17 23:57:23 +00:00
Mark Whitley
fccaa3629b
Applied patch from I.Q. to add sort -u as a feature.
2001-04-17 18:56:18 +00:00
Mark Whitley
6e808ca354
Changed line[strlen(line) - 1] = '\0'; to chomp(line);
2001-04-17 18:26:11 +00:00
Mark Whitley
30ac01cca7
Applied a patch from Laurence Anderson to fix the wget statusbar and a patch
...
to usage.h to document the -q option.
2001-04-17 18:13:16 +00:00
Mark Whitley
3828dbed57
Applied patch from I.Q. to fix problem with sort -n.
2001-04-17 17:47:33 +00:00
Mark Whitley
31868b85be
Added some help messages.
2001-04-17 17:37:47 +00:00
Mark Whitley
59a86cad67
The tiniest of bracket-placement fixes.
2001-04-17 17:30:44 +00:00
John Beppu
5d81768cf1
- usage.h
...
o echo_example_usage
needed to escape some backslashes in an inner quote
o find_full_usage
missing a \n at the end of the -name line
? getopt_full_usage
the -o line has tab issues, but I didn't fix them.
o length_example_usage
removed some double-quotes that were within an inner quotes
o printf_example_usage
needed to escape a backslash in an inner quote
o sort_example_usage
needed to escape some backslashes and double quotes in an inner quote
o tftp_full_usage
s/nameing/naming/;
o umount_full_usage
remove colons after options for consistency w/ other full_usage messages
o uniq_example_usage
needed to escape some backslashes and double quotes in an inner quote
- TODO xargs -l ?
- docs/autodocifier.pl POD && comment updates
- docs/busybox_footer.pod added Larry Doolittle and Sterling Huxley
2001-04-17 17:09:34 +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
Eric Andersen
1c0d311ff4
Several fixes from Sterling Huxley for the vi applet.
2001-04-16 15:46:44 +00:00
Glenn L McGrath
ae1c704c44
Write full status file
2001-04-16 10:26:46 +00:00
Glenn L McGrath
33431ebb9a
dpkg improvements, use full package struct, avoid extracting to tmp dir, rename variable.
...
deb_extract, untar and dpkg_deb modified to make the above possible
2001-04-16 04:52:19 +00:00
Glenn L McGrath
3136904ff6
Document new dpkg-deb funtions
2001-04-15 12:53:24 +00:00
Glenn L McGrath
685f5fd6f4
untar changed to allow deb_extract to extract to memory, allows better operation of dpkg-deb -f
2001-04-15 12:51:59 +00:00
Glenn L McGrath
a529d885d2
NEw functions read_package_field and read_text_file_to_buffer
2001-04-15 12:50:15 +00:00
Glenn L McGrath
5faef74bae
Reads a field from a debian control (status or available) file, handles multi-line fields.
2001-04-15 12:38:12 +00:00
Glenn L McGrath
65708e4cd1
Read a FILE* till an empty line or eof and return it as a char buffer.
...
In future maybe add char *end_str to interface to allow calling function
to specify end point.
2001-04-15 12:36:19 +00:00
Eric Andersen
4a2e463525
Handle endian-ness. Patch from Paul J.Y. Lahaie <pjlahaie@linuxcare.com>
...
-Erik
2001-04-14 03:33:33 +00:00
Matt Kraai
0f50bca9aa
Fix infinite loop and reallocate if too many modules.
2001-04-13 14:40:15 +00:00
Glenn L McGrath
445fb952b8
dpkg-deb -f and partial -I commands, adds 600 bytes
2001-04-13 04:02:57 +00:00
Matt Kraai
1e04ea388f
Fix dos2unix/tr problem noted by Larry Doolittle.
2001-04-12 21:38:06 +00:00
Matt Kraai
d6cde0bcf4
Fix return code and don't output spurious newlines.
2001-04-12 20:51:01 +00:00
Matt Kraai
4ef40c02f4
Another banner consolidation from Larry Doolittle <ldoolitt@recycle.lbl.gov>.
2001-04-12 20:44:21 +00:00
Matt Kraai
8fc364ebd5
Fix comment.
2001-04-12 20:12:16 +00:00
Matt Kraai
6ba1a80c26
Use date -u instead of date --utc and consolidate version string.
...
Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov >.
2001-04-12 20:11:55 +00:00
Glenn L McGrath
5a65413c04
Updates, fixes for handling contents, verbose extract.
...
More updates to come
2001-04-12 16:40:21 +00:00
Glenn L McGrath
47fd219c95
Rename variable that shadows global
2001-04-12 16:37:13 +00:00
Matt Kraai
be66ad3212
Fix handling of '' and "".
2001-04-12 15:42:17 +00:00
Glenn L McGrath
3e2ab88ee2
New dpkg-deb function -t, stands for --fsys-tarfile
2001-04-12 13:49:09 +00:00
Glenn L McGrath
c9cac5be23
Change size to unsinged long long, so if -1 is passed it will read as much as possible.
2001-04-12 13:47:12 +00:00
Glenn L McGrath
6785b51280
dpkg-deb -c works now
2001-04-12 11:48:02 +00:00
Glenn L McGrath
359c106871
Fix dpkg-deb, enum's are cool
2001-04-12 10:19:08 +00:00
Glenn L McGrath
46079a1d77
remove unused clearerr statements
2001-04-12 10:17:22 +00:00
Glenn L McGrath
327175137f
This belongs in dos2unix.c
2001-04-12 02:29:34 +00:00
Glenn L McGrath
a6ce670a87
use tmpfile() and revert my previous changes... convert() belongs here
2001-04-12 02:26:04 +00:00
Glenn L McGrath
2709297f3b
dos2unix and unix2dos are now independent
2001-04-12 00:55:05 +00:00
Glenn L McGrath
50b787cac5
Move convert to libbb
2001-04-12 00:52:29 +00:00
Glenn L McGrath
a283157c38
convert() is used by dos2unix and unix2dos
2001-04-12 00:49:26 +00:00
Glenn L McGrath
c8d9e0604a
Moved from dos2unix
2001-04-12 00:42:53 +00:00
Matt Kraai
da160c0da5
Use putc, and write to stderr as the rest of the progressmeter does.
2001-04-11 20:11:51 +00:00
Matt Kraai
90d7f696d6
Only finish with a newline if we are displaying the progress indicator.
2001-04-11 20:07:27 +00:00
Matt Kraai
65317ea27f
Fix behavior when extracting to stdout. Report and patch by
...
Evin Robertson <nitfol@my-deja.com >.
2001-04-11 20:03:01 +00:00
Glenn L McGrath
ed897e5415
Vladimir's patch to reverse previous patch
2001-04-11 17:20:44 +00:00
Glenn L McGrath
2975a34f23
readTarFile changed from exter nto static
2001-04-11 16:49:07 +00:00
Glenn L McGrath
b3f23d4c6a
Seek to start of an entry inside an ar file
2001-04-11 16:31:20 +00:00
Glenn L McGrath
988be100e2
dpkg, dpkg_deb dont depend on any other applets now
2001-04-11 16:25:45 +00:00
Glenn L McGrath
4949faf4b2
copy_file_chunk uses streams now.
2001-04-11 16:23:35 +00:00
Glenn L McGrath
5b20d02ea9
This is primarily to allow deb_extract to be independent of the tar applet.
...
TODO: This function and its conterpart in tar.c should be merged
2001-04-11 16:14:24 +00:00
Glenn L McGrath
9e966ffed4
Remove unneeded printf statment
2001-04-11 15:11:48 +00:00
Glenn L McGrath
f70f6cef39
Disable sigterm
2001-04-11 15:09:30 +00:00
Glenn L McGrath
48081f81bd
replace getOctal with strtol( , NULL, 8)
...
saves 100 Bytes
2001-04-11 05:01:09 +00:00
Glenn L McGrath
7dc8d227a5
dpkg only dependeds on tar
2001-04-11 03:47:45 +00:00
Glenn L McGrath
528ef50a4a
Gzip is indepenedent of gunzip
2001-04-11 03:45:37 +00:00
Glenn L McGrath
a12131966c
Remove dpkg-deb applet dependencies, still depends on tar
2001-04-11 03:27:06 +00:00
Glenn L McGrath
7fd92949d0
Move unzip, gz_open, gz_close to libbb
2001-04-11 03:11:33 +00:00
Glenn L McGrath
d22e560ad6
Move deb_extract() to libbb, dpkg now independent of dpkg-deb
2001-04-11 02:12:08 +00:00
Glenn L McGrath
9d53c8ab74
Move get_ar_headers to libbb, make dpkg_deb.c independent of ar.c
2001-04-11 01:37:03 +00:00
Eric Andersen
93ffa950bf
Put in a paragraph break
2001-04-10 22:10:42 +00:00
Mark Whitley
efcfe874ea
Added a chart of busybox's growth by Larry Doolittle and put a news
...
announcement for it on the main page.
2001-04-10 21:58:32 +00:00
Eric Andersen
0958093be6
Doc update for the 0.51 release.
...
-Erik
2001-04-10 20:10:55 +00:00
Eric Andersen
3c3430502a
Fix up changelog for 0.51 release
2001-04-10 20:10:14 +00:00
Eric Andersen
b04d744a47
Bring Debian config files into sync with the master one.
2001-04-10 20:07:19 +00:00
Eric Andersen
e703f7ed42
Ha. Regression testing found a bug with uClibc support. Fixed.
...
-Erik
2001-04-10 19:03:03 +00:00
Eric Andersen
b9af894264
Fix up the uClibc compiler name (its format was recently changed slightly)
2001-04-10 18:35:02 +00:00
Eric Andersen
6d7fa438a7
This patch from Laurence Anderson <laurence@zxmail.com> fixes
...
wget HTTP 1.1 support and addes chunked encoding so bb wget
is now fully RFC compliant.
2001-04-10 18:17:05 +00:00
Eric Andersen
fd402941a7
Patch from Valdimir to reduce stack usage, since recursive_action
...
is (as the name implies) is recursive, reducing stack memory usage
is important to avoid exhausting available stack memory.
2001-04-10 17:53:49 +00:00
Matt Kraai
4e853560f5
Fix double quote handling.
2001-04-10 00:00:05 +00:00
Eric Andersen
2f2da90fd4
"I will always compile before I commit" x 100
2001-04-09 23:54:15 +00:00
Eric Andersen
b6b519b416
Update how we detect if libc5 is in use.
...
-Erik
2001-04-09 23:52:18 +00:00
Matt Kraai
d3f97f1971
Fix warning generated by pod2html about unterminated list.
2001-04-09 23:27:51 +00:00
Eric Andersen
303dd28bb0
Make 'grep -l' work
2001-04-09 23:26:31 +00:00
Mark Whitley
4391a16c92
Fixed option parsing. Grep would continue grepping, even when given a bad /
...
invalid option. Closes bug #1146 .
2001-04-09 23:00:07 +00:00
Eric Andersen
e5dfced23a
Apply Vladimir's latest cleanup patch.
...
-Erik
2001-04-09 22:48:12 +00:00
Eric Andersen
a75e286743
Bump version number to 0.51
2001-04-09 22:18:14 +00:00
Eric Andersen
59aa5703ae
Enable freeramdisk and pivot_root, disable lash for the Debian .udeb
...
-Erik
2001-04-09 22:17:10 +00:00
Eric Andersen
fc994d1cb4
make sure we auto-close debian bug #91758
...
-Erik
2001-04-09 22:15:27 +00:00
Eric Andersen
7cf9fed83f
update the changelog, prepatory to the 0.51 release. Please review
...
for correctness!
-Erik
2001-04-09 22:09:41 +00:00
Eric Andersen
3f8688b406
Update changelog
2001-04-09 19:00:29 +00:00
Eric Andersen
5d6f3440e6
use 'USE_SYSTEM_PWD_GRP=false' for the Debian packages so the boot-floppies
...
do not need any of the nss crap installed. As was, things like 'id' would
fail. Fixed now (with thanks to Matt Kraai for his help).
-Erik
2001-04-09 18:42:52 +00:00
Glenn L McGrath
305fdfa755
Reorganise status field to use 3 chars instead of one bit shifted long int.
...
Generates status file properly now, not compatable with full dpkg yet.
2001-04-08 13:27:39 +00:00
Glenn L McGrath
37849f3320
Use create_path instead of mkdir
2001-04-08 07:23:53 +00:00
Glenn L McGrath
13e9c7ad82
It now correctly backs up the (still corrupt) status file
2001-04-08 07:18:08 +00:00
Glenn L McGrath
0e757a2f3f
Some fixes, but still broken... (cont)
...
Make better use of some libbb functions
New remove dir code to avoid depending on the rm applet
dont use copy_file() it doesnt fail elegantly
Use getopt.
Generate correct /var/lib/dpkg/info/ files
Status file is broken, working on it now
2001-04-08 05:27:18 +00:00
Glenn L McGrath
f608da4288
Ignore SIGTERM prior to gz_close()
2001-04-07 02:40:59 +00:00
Glenn L McGrath
e5f3957665
Fix warning
2001-04-07 02:17:36 +00:00
Eric Andersen
8a9b2c6448
Note that insmod now also supports powerpc and mips. Thanks Larry.
2001-04-06 22:02:49 +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
83f173b61e
A first pass at making D_FILE_OFFSET_BITS=64 work, from
...
Jari Ruusu <jari.ruusu@pp.inet.fi >
2001-04-05 23:07:25 +00:00
Eric Andersen
c270ec1fa2
Add support of /W prompts
...
-Erik
2001-04-05 23:00:47 +00:00
Eric Andersen
831ed16efc
Handle glibc 2.0.7 as well
2001-04-05 22:38:32 +00:00
Eric Andersen
79757c9c37
A patch from Dmitry Zakharov <dmit@crp.bank.gov.ua> which adds
...
- support for ftp downloads
- HTTP basic authentication support (as an optional feature)
- handling of http redirections
- protocol version changed to 1.0 (to stop servers from requesting
chunked encoding)
- bugfix: in the case when content-length not given, wget didn't
download anything
- when attempting to continue an aborted download but server doesn't
support restarts, reopen output file in write mode
- changed assumption that existing file should restart an aborted
download. Now the user must explicitly specify this with -c
2001-04-05 21:45:54 +00:00
Eric Andersen
ea9065072c
Some cleanups/fixes for the syslogd circular buffer code
...
from Gennady Feldman.
2001-04-05 20:55:17 +00:00
John Beppu
79359d87e8
- autodocifier.pl :: continuation() was modified such that '#'
...
is handled correctly.
2001-04-05 20:03:33 +00:00
John Beppu
94e505485e
- use docs/autodocifier.pl to merge POD together
2001-04-05 19:42:03 +00:00
John Beppu
5bca0afb31
- split busybox.pod into a header and footer.
...
the body will be generated by docs/autodocifier.pl
2001-04-05 19:41:23 +00:00
John Beppu
9a1395b9fd
- documentation updates and a minor tweak to POD generation
2001-04-05 19:35:17 +00:00
Eric Andersen
4e2439ad27
It seems all the stdout munging was useless anyways, since
...
deb_extract and all its called functions do nothing with
stdout anyways. Axe that stuff.
-Erik
2001-04-05 18:30:38 +00:00
Eric Andersen
911af57ff8
Be more generic for libc5. We don't need to know struct definitions
...
to make the syscall finction -- use a generic pointer instead.
2001-04-05 07:41:51 +00:00
Eric Andersen
64c8b1762c
Another iteration -- adjust the init_module syscall a bit.
...
-Erik
2001-04-05 07:33:10 +00:00
Eric Andersen
acc7757312
*** empty log message ***
2001-04-05 06:24:28 +00:00
Eric Andersen
a2a978ae23
Some further syscall adjustments. Split the module syscalls out of
...
insmod and into libbb. Only enable them for libc5. glibc and
uClibc don't need them.
-Erik
2001-04-05 06:08:14 +00:00
Eric Andersen
fdefbbbe85
dpkg_deb had not been updated for the new gunzip interface. Fix it.
...
-Erik
2001-04-05 06:04:11 +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
3c0364f391
Patch from Larry Doolittle to eliminate needless thrashing
...
about when trimming long strings with lots of trailing white
space.
2001-04-04 22:49:01 +00:00
Eric Andersen
4fd382ea29
Remove unused optarg variable
2001-04-04 19:33:32 +00:00
Eric Andersen
06070532ba
Failed to name "Electric-fence" explicitly
2001-04-04 19:32:00 +00:00
Eric Andersen
d402edfd63
Some cleanups for libc5 support
2001-04-04 19:29:48 +00:00
Eric Andersen
14fe392dde
Fix a warning with libc5.
...
-Erik
2001-04-04 19:26:22 +00:00
Eric Andersen
b2e3e9b0c9
Seems that stupid libc5 doesn't implement daemon(), so conditionally
...
inclde that here.
-Erik
2001-04-04 19:25:57 +00:00
Matt Kraai
2129f97cd9
Avoid segfault when export is invoked with no arguments. Thanks to
...
Gennady Feldman.
2001-04-04 17:50:04 +00:00
Eric Andersen
3f98040554
I said no new features till after the 0.51 release. Well, I lied. This is a
...
vi editor for busybox, contributed by Sterling Huxley <sterling@europa.com >.
It adds 22k to the busybox binary when enabled. Quite impressive!
2001-04-04 17:31:15 +00:00
Eric Andersen
91c9388715
Place a temporary bandaid on the ls/du/df human-readable issue. This method is
...
not going to scale up as well as I would like, and Matt Kraai and I have
discussed a better long term solution. But for now this will at least make all
the human-readable apps give correct answers.
Please test the human readable/non-human readable options on your systems!!!
-Erik
2001-04-03 23:14:29 +00:00
Eric Andersen
24073c7665
Add in easy-to-use electric-fence support.
...
-Erik
2001-04-03 22:53:19 +00:00
Eric Andersen
60b2d8d2c8
if strlen(s) was 0, it would then end up using s[-1] as an array index. Bad,
...
bad, bad. This was crashing the shell on powerpc boxes, though all other archs
seem to have a much more forgiving malloc implementations. I finally found
this bug using electric-fence on a powerpc box.
-Erik
2001-04-03 22:50:52 +00:00
Eric Andersen
c97ec34370
A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Now
...
you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior
needing to be a reboot.
2001-04-03 18:01:51 +00:00
Eric Andersen
0f0c0b41ce
Make 'busybox --help' work as expected, closing bug #1139
...
-Erik
2001-04-03 17:05:01 +00:00
Eric Andersen
c0c502e172
Fix for bug 1143 from Larry Doolittle
...
-Erik
2001-04-03 16:38:37 +00:00
Eric Andersen
c4cef5ab06
Move the mtab support stuff into libbb
...
-Erik
2001-04-01 16:01:11 +00:00
Eric Andersen
f77d88641d
Formatting change
2001-04-01 04:49:41 +00:00
Glenn L McGrath
1e117b4752
Dont try and automount devfs, rename some variables
2001-03-30 01:28:13 +00:00
Eric Andersen
84e229cfbe
Add in a new standalone env applet for fixing up app's environments
...
-Erik
2001-03-29 22:48:33 +00:00
Eric Andersen
e5c24dfd01
Use daemon() to spawn syslogd and klogd daemons.
...
-Erik
2001-03-29 21:58:33 +00:00
Eric Andersen
3a6da8c183
gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.
...
Fix that.
2001-03-29 14:22:45 +00:00
Glenn L McGrath
5f2ef46d6d
Fix zcat
2001-03-29 01:07:54 +00:00
Glenn L McGrath
ed7a776538
gunzip -c works again
2001-03-29 00:57:20 +00:00
Glenn L McGrath
ae8ad35590
Fixes from Robert Kaiser
2001-03-28 23:57:51 +00:00
Mark Whitley
e0a7f917c2
Applied patch from David Douthitt to re-add -print option to find.
...
Closes bug #1144 .
2001-03-28 22:04:42 +00:00
Eric Andersen
c835567914
Fix ls so it uses make_human_readable_str() the same way already
...
used by 'du' and 'df'. Now we just need to fix make_human_readable_str
so it behaves they way it used to before Matt fixed it.
2001-03-28 20:26:51 +00:00
Matt Kraai
d98e574d41
Patch bass ackwards behavior of hr flag.
2001-03-28 20:10:25 +00:00
Matt Kraai
7cd0cfeab6
Rewrite to fix bug #1140 and make it slightly smaller.
2001-03-28 16:42:27 +00:00
Glenn L McGrath
f957c77910
Enable tar -z support again by default
2001-03-28 07:48:10 +00:00
Glenn L McGrath
02cebebc3b
Remove cruft
2001-03-28 07:37:48 +00:00
Glenn L McGrath
9233959940
Remove tar_unzip_init() not needed any more, uses gz_open instead
2001-03-28 07:31:37 +00:00
Glenn L McGrath
018e9e6799
Fix tar -z, calls gz_open now
2001-03-28 07:27:26 +00:00
Glenn L McGrath
ee79ca1ba6
Disable tar -z for now
2001-03-28 06:13:15 +00:00
Glenn L McGrath
0cbc8cf4c9
Gunzip changes broke tar -z support (woops)
2001-03-28 05:47:26 +00:00
Glenn L McGrath
58e42d5356
Major cleanup to better adhere to style guide and use standard busybox functions
2001-03-28 05:38:24 +00:00
Glenn L McGrath
f58efb57d1
Add functions that were shared with gunzip.c, gunzip about to change.
2001-03-28 05:35:16 +00:00
Matt Kraai
a2e68fc233
Change BB_FEATURE_TRIVIAL_HELP to BB_FEATURE_VERBOSE_USAGE (per bug #1130 ).
2001-03-27 21:57:29 +00:00
Mark Whitley
5b8939b147
Some more words on sending patches to the bug-tracker.
2001-03-27 21:20:05 +00:00
Mark Whitley
9a2144663a
Applied patch from David Douthitt to fix problem where ls reports half the
...
file size. Should close bug #1140 .
2001-03-27 20:59:14 +00:00
Mark Whitley
cc7b4f39fc
Some more tests for cut. Craig Matsuura said he saw some problems along these
...
lines. "Works for me", but we'll keep these tests around for regression.
2001-03-27 20:48:01 +00:00
Mark Whitley
bff6b18bf9
Applied patch from Gennady Feldman to fix a single-threaded syslogd bug that
...
turned up. This code needs to be tested on an embedded system, since that's
where the bug turned up in the first place.
2001-03-27 20:17:58 +00:00
Mark Whitley
2b549c3be0
Fixed the Makefile so busybox can link against libc5 again. Putting libbb.a at
...
the end broke it.
2001-03-27 18:22:41 +00:00
Mark Whitley
5cd2a2d53e
In fact, socklen_t *is* defined by libc5.
2001-03-27 18:22:00 +00:00
Mark Whitley
a82a00397f
Fix to last patch: locale code should be 9, not 7.
2001-03-27 17:07:15 +00:00
Mark Whitley
1c6581a865
Applied patch from Vladimir N. Oleynik to add locale support to the shell per
...
bug report from Ralph Jones.
2001-03-27 16:35:16 +00:00
Mark Whitley
af633757d3
Applied patch from Anthony Towns that he posted to Debian bug tracking.
2001-03-26 16:47:57 +00:00
Manuel Novoa III
049dc25fe7
Fix in_ether bug regarding hex digits reported by Jonas Holmberg <jonas.holmberg@axis.com>.
2001-03-26 16:26:16 +00:00
Eric Andersen
36eff9ac55
Bump version number to 0.51pre
2001-03-24 06:34:59 +00:00
Eric Andersen
6f3240abf9
xstrdup xargs cleanup from Jeff Garzik
2001-03-23 17:11:22 +00:00
Eric Andersen
6b2c23d847
xstrdup tftp cleanup from Jeff Garzik
2001-03-23 17:10:19 +00:00
Eric Andersen
21af752b04
Patch to use xfopen from Jeff Garzik
2001-03-23 17:09:15 +00:00
Eric Andersen
f6aa13d403
-Wshadow tr fix from Jeff Garzik
2001-03-23 17:08:21 +00:00
Eric Andersen
82ab8da245
-Wshadow sh fix from Jeff Garzik
2001-03-23 17:06:01 +00:00
Eric Andersen
8ffaf8d139
-Wshadow logread fix from Jeff Garzik
2001-03-23 17:04:47 +00:00
Eric Andersen
c54f9530ee
-Wshadow loadacm fix from Jeff Garzik
2001-03-23 17:03:28 +00:00
Eric Andersen
08ff8a49ba
includes cleanup from Jeff Garzik
2001-03-23 17:02:05 +00:00
Mark Whitley
0b4d73a53c
Some minor wordsmithing, an extra item in the list of "things Busybox doesn't
...
need", example of a testcase, more janitorial items, and a whole new section
with guidelines on committing changes to CVS.
2001-03-22 22:59:33 +00:00
Eric Andersen
82bb8a2bf8
Patch from Dirk Behme <dirk.behme@de.bosch.com> to
...
add EM_MIPS_RS3_LE for mips
-Erik
2001-03-22 19:01:16 +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
Mark Whitley
7447642a47
Added a section on the available Busybox boot-floppy image. Also provided some
...
linkes to a Wired article on Midori Linux.
2001-03-20 19:57:30 +00:00
Mark Whitley
6f93277f56
Added adjtimex applet from Larry Doolittle.
2001-03-20 19:18:10 +00:00
Eric Andersen
ba372620c2
Force applet_name to be "sh" when command prefaced by "-"
2001-03-20 17:39:53 +00:00
Eric Andersen
7ef1a5beb2
Fix up command line munging in init. Postpone the askfirst thing till
...
a bit later in run().
2001-03-20 17:39:08 +00:00
Eric Andersen
4ef37d0c17
chown was missing a ] in its usage msg
2001-03-20 01:06:14 +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
8269396491
Simpify detection of no options.
2001-03-19 19:40:43 +00:00
Eric Andersen
2ccfef2004
Patch from Vladimir to move struct applet from busybox.c to applets.c,
...
which looks like the right place for such things to live.
2001-03-19 19:30:24 +00:00
Eric Andersen
23c1a18126
Per suggestion from Vladimir, no need to initialize these -- let the bss
...
do it.
-Erik
2001-03-19 19:28:24 +00:00
Eric Andersen
7ef54de672
locale correction patch from Vladimir
2001-03-19 19:25:49 +00:00
Eric Andersen
b183dfad2d
Split error messages into separate files.
...
Update libbb.h, per suggestion from Vladimir, to include __attribute__((format
(printf ...))) stuff
-Erik
2001-03-19 19:24:06 +00:00
Eric Andersen
cc165b9083
Should exclude "i" option when not enabled.
2001-03-19 18:59:01 +00:00
Eric Andersen
00b0496e69
Doesn't need a "-" option -- getopt does that for us.
2001-03-19 18:57:08 +00:00
Eric Andersen
16f7015722
Patch from Vladimir to force interactiveFlag=FALSE when forceFlag=TRUE
2001-03-19 18:54:38 +00:00
Eric Andersen
7c25441792
getopt-ify rm so that BB_FEATURE_RM_INTERACTIVE will work
2001-03-19 18:52:37 +00:00
Eric Andersen
c75586e06d
Split libbb/pwd_grp_wrappers.c into 5 different libbb/my_* files.
...
-Erik
2001-03-19 18:37:42 +00:00
Eric Andersen
61173a5371
Fix to cmdedit.c from Vladimir
2001-03-19 17:48:55 +00:00
Eric Andersen
fa513aab48
Some configuration adjustments from Vladimir
2001-03-19 17:25:21 +00:00
Eric Andersen
8b96032139
Fix a bug pointed out by Rob Landley <rlandley@austin.rr.com>, where
...
setup_sockaddr_in was zeroing the sizeof a pointer, not the sizeof the struct,
which was obviously what was intended. Thanks Rob,
-Erik
2001-03-17 05:43:39 +00:00
Eric Andersen
341744781a
Patch from Larry and Vladimir to clean up sh.c and fix
...
shell expansion to work in non POSIX locales.
2001-03-17 00:20:10 +00:00
Eric Andersen
1a6f8cfadf
update .cvsignore files to note new location of loop.h
2001-03-17 00:15:02 +00:00
Eric Andersen
8a6dbf6709
Patch from Pierre PEIFFER <pierre.peiffer@sxb.bsf.alcatel.fr>
...
that copes with the fact that processes may have been swapped
out.
2001-03-17 00:05:42 +00:00
Eric Andersen
e2a3cd15a8
Stupid thinko. egrep tried to call init. Sigh. Fix from Christophe Boyanique
2001-03-16 23:49:20 +00:00
Eric Andersen
aad1a88c76
Convert utility.c into libbb.a. It is now a whole pile of .c
...
files. Clean up the resulting damage and fix up the makefile.
-Erik
2001-03-16 22:47:14 +00:00
Eric Andersen
dfba13d199
A few minor touchups.
2001-03-16 08:30:00 +00:00
Eric Andersen
704b2c2122
There was an unwanted extra newline, which prevented building
...
uudecode. How did this sneak through the testing until now?
-Erik
2001-03-16 08:06:30 +00:00
Eric Andersen
53b55ac08d
Fix the make release target.
2001-03-16 07:43:53 +00:00
Eric Andersen
c36c2ba598
Update webpage noting 0.50 release.
2001-03-16 07:16:12 +00:00
Eric Andersen
7f1978570f
A patch from Andreas Neuhaus to be especially careful to not dup
...
any env variables when spawning child processes.
2001-03-16 01:14:04 +00:00
Eric Andersen
4aaefc2a50
Fix from Larry for glob problems.
...
-Erik
2001-03-15 23:01:19 +00:00
Eric Andersen
c5b3242d3d
Remove the "GPL2" bit, since it hung over the end of the line.
2001-03-15 22:58:11 +00:00
Mark Whitley
056960d8dc
Applied patch from Larry Doolittle to fix problem where multibuild.pl would
...
build the wrong files. Made the same changes to multifeat.pl.
2001-03-15 22:14:26 +00:00
Eric Andersen
0d5051def0
Update files and version number prepratory to cutting a release.
...
-Erik
2001-03-15 22:12:43 +00:00
Eric Andersen
3a0057e2c5
Fix egrep
2001-03-15 21:33:33 +00:00
Mark Whitley
f71378c4ad
One tiny little missing newline that confused pod.
2001-03-15 21:20:25 +00:00
Mark Whitley
0a6f1d31e7
One tinly, little, missing newline that confused Pod.
2001-03-15 21:19:09 +00:00
John Beppu
e708cb5f9a
- generated middle section of busybox.pod w/ autodocifier.pl
...
- updated autodocifier.pl to use tab to indent example section
2001-03-15 21:08:01 +00:00
Eric Andersen
a4edd0e946
A better fix. Read nextPtr before mem gets freed.
...
-Erik
2001-03-15 21:04:18 +00:00
Eric Andersen
f9ff8a7d90
cmdedit.c bugfix patch from Vladimir.
...
-Erik
2001-03-15 20:51:09 +00:00
John Beppu
af9e533a54
- properly indent Examples section in pod generator
2001-03-15 20:49:25 +00:00
Eric Andersen
48dcc16548
Don't confuse people. If the run 'ifconfig' and they didn't
...
compile with BB_FEATURE_IFCONFIG_STATUS turned on, it will
now print a message telling them as much.
-Erik
2001-03-15 20:48:45 +00:00
Mark Whitley
730cdb1904
Reversed previous patch. The right way is to fix uClibc.
2001-03-15 19:39:40 +00:00
Eric Andersen
0d4e51d390
Prevent init from potentially using already freed memory when
...
deleting an initAction, fixing a bug pointed out by Andreas Neuhaus
-Erik
2001-03-15 19:18:21 +00:00
Mark Whitley
0b57e28373
Applied patch from Andreas Neuhaus to fix namespace conflict that made busybox
...
not compile with uClibc.
2001-03-15 19:12:06 +00:00
Mark Whitley
b0c2b7dfe3
dos2unix logread.c
2001-03-15 19:05:59 +00:00
Eric Andersen
2825ee8c2c
Fix linuxrc define
2001-03-15 18:58:06 +00:00
Eric Andersen
a8035a51be
Move the warning msg after features.h gets pulled in.
...
-Erik
2001-03-15 18:20:23 +00:00
Mark Whitley
7384d7dce0
Added some tests for some recently found / fixed bugs in the shell.
2001-03-15 18:19:13 +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
Eric Andersen
670bea210e
Update the changelog, in preparation for making the 0.50 release
2001-03-15 17:56:44 +00:00
Eric Andersen
d8adaa279e
Update the olympus sections
2001-03-15 17:54:56 +00:00
Mark Whitley
3bf60aa723
If only BB_DPKG was enabled in Config.h, busybox would not build; it'd say:
...
dpkg.c:18: #error It looks like you are using libc5, which does not support
dpkg.c:19: #error tfind(). tfind() is used by busybox dpkg.
dpkg.c:20: #error Please disable BB_DPKG. Sorry.
This was fixed by changing the || to an && in the preprocessor.
(We've changed the logic in there too many times.)
Found using multibuild.pl.
2001-03-15 17:39:29 +00:00
Mark Whitley
e110ccb672
Removed leftover BB_FEATURE_KLOGD per report from Giulio Orsero
2001-03-15 17:30:07 +00:00
Manuel Novoa III
0e0883e0e9
Fix stupid cut-and-paste bug... output RX/TX bytes instead of RX/RX bytes.
2001-03-15 15:37:48 +00:00
Mark Whitley
038c8eb5a9
Applied patch from Erik Habbinga to fix a problem with an uninitialized
...
substitution delimiter.
2001-03-14 21:11:49 +00:00
Mark Whitley
7ddaf7caae
Added a section to describe how to convert variables to K&R style using the
...
mk2knr.pl script. Also some minor cleanups.
2001-03-14 21:04:53 +00:00
Mark Whitley
bac75ac2d5
Script that generates a script that will convert oddball variable names to K&R
...
style.
2001-03-14 21:04:07 +00:00
Eric Andersen
1ef92685cf
Yesterday I make strsep_space include post-token whitespace,
...
so we should not be adding another " " between tokens.
-Erik
2001-03-14 19:33:45 +00:00
Eric Andersen
ce4a586edb
I forgot to malloc space for the NULL.
...
-Erik
2001-03-14 18:57:54 +00:00
Mark Whitley
40e5e7c7ea
Applied patch from Christophe Boyanique to add an egrep alias for grep.
2001-03-14 17:45:45 +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
44a9914709
Applied patch from Larry Doolittle to fix '>\na\n' bug. Should close bug #1132
2001-03-14 17:26:37 +00:00
Mark Whitley
2892c35bdb
Applied patch from Giulio Orsero to fix some preprocessor bugs.
2001-03-14 17:18:52 +00:00
Eric Andersen
82d8502409
Fix from Manuel for a silly thinko on my part.
2001-03-14 17:15:45 +00:00
Eric Andersen
53f5061c7e
Fix init so that checking for terminal devices is delayed until the
...
devices are actually used, thereby allowing devfsd based systems to
work. This should fix bug #1133
-Erik
2001-03-14 09:01:11 +00:00
Eric Andersen
bdc8db9685
Use the system passwd and group stuff by default
2001-03-14 01:49:10 +00:00
Eric Andersen
741f2c9898
Fix mtab so it works on libc5
2001-03-14 01:48:10 +00:00
Eric Andersen
b9a1e56a80
No reason to include fstab. It breaks libc5, does nothing for glibc.
...
-Erik
2001-03-14 01:43:29 +00:00
Eric Andersen
2b1c367a98
Amazing the difference between an "and" and an "or".
2001-03-14 01:36:52 +00:00
Eric Andersen
3c0b425cde
dpkg used tfind, which doesn't work with libc5. Print a friendy error
...
should someone try to use it...
-Erik
2001-03-14 01:31:11 +00:00
Eric Andersen
14e9e9d1ca
Fix socklen_t for libc5
2001-03-14 01:23:07 +00:00
Eric Andersen
9c09e0eeaa
The IPC_SYSLOG stuff should be off by default.
...
-Erik
2001-03-14 01:16:41 +00:00
Eric Andersen
c319601db5
Some updates for libc5
2001-03-14 01:15:06 +00:00
Eric Andersen
4e7244e6b2
libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE
...
-Erik
2001-03-14 00:49:52 +00:00
Mark Whitley
8658816f71
Added a dependency on BB_MKFS_MINIX to xfopen().
2001-03-14 00:43:16 +00:00
Mark Whitley
f594986b37
- Changed name of BB_FEATURE_SIMPLE_PROMPT to BB_FEATURE_SH_SIMPLE_PROMPT
...
- Set BB_FEATURE_SH_STANDALONE_SHELL and BB_FEATURE_SH_APPLETS_ALWAYS_WIN to
be off by default
- Set BB_FEATURE_SH_SIMPLE_PROMPT to be on by default
- Added some more magic to the Olympus section to make all the dependencies
on the shell, cmdline editing, tab completion and friend work properly.
- Tidied up the Olympus section with some whitespace. Checked the various
scrips that parse through there and the extra whitespace shouldn't break
anything.
2001-03-14 00:29:14 +00:00
Mark Whitley
c75f83d874
Some new testcases, some improvements to the tester.sh script.
2001-03-13 23:30:18 +00:00
Eric Andersen
b3d6e2df95
Update the lash shell (hopefully the last time...) so things like
...
echo "foo bar" and echo -n "foo\t\\\\\tbar" work as expected.
Merge prompt printing work from Vladimir.
-Erik
2001-03-13 22:57:56 +00:00
Mark Whitley
798ab301c7
Added Midori Linux to the list of known projects that use Busybox.
2001-03-13 17:08:54 +00:00
Mark Whitley
f6ba2da29f
Credited Christophe Boyaniqu for interactive patch to rm.
2001-03-13 16:35:55 +00:00
Mark Whitley
e0bf91d7c6
Applied patch from Christophe Boyanique to add -i support to rm.
2001-03-13 00:40:19 +00:00
Mark Whitley
53737c5421
Some fixlets that didn't get added in the last 'syslogd split' patch:
...
- BB_LOGREAD should not be in the applet section
- BB_FEATURE_IPC_SYSLOG added to the feature section
- Some voodoo added to the Olympus section
2001-03-12 23:55:56 +00:00
Mark Whitley
6bff9cc487
Added some comment lines in the header indicating that Gennady Feldman is the
...
maintainer of these three applets.
2001-03-12 23:41:34 +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
Mark Whitley
94fd480bab
Applied patch from John Lombardo to fix OOM in insmod.
2001-03-12 23:08:34 +00:00
Mark Whitley
6317c4baf7
Applied patch from Gennady Feldman to split up syslogd.c into syslogd and
...
klogd (as it should be).
2001-03-12 22:51:50 +00:00
Eric Andersen
4987bbf979
A fix from Larry Doolittle for some nasty segfaults when sh.c tried to free a
...
corrupted cmd pointer, and where it would truncate a command line at the first
double space.
-Erik
2001-03-12 21:36:49 +00:00
Mark Whitley
5ec5415402
Program for testing concurrent access to syslogd.
2001-03-12 20:00:00 +00:00
Mark Whitley
1a49fc5e92
Applied patch from Gennady Feldman to use single-thread instead of forking.
2001-03-12 19:51:09 +00:00
Manuel Novoa III
fe4e13fb97
Add missing dependency -- interface.c needs get_kernel_revision.
2001-03-12 10:00:17 +00:00
Manuel Novoa III
22b889a998
Adjust ifconfig usage message for selected options and current functionality.
2001-03-12 09:58:51 +00:00
Manuel Novoa III
68ea1d0325
Reduced code size of interface. Support ifconfig -a and ifconfig interface
...
display. Change %llu to %Lu in ifconfig for hacked unsigned long long support
in uClibc scanf.
2001-03-12 09:57:59 +00:00
Eric Andersen
1365bb7861
When using wordexp, only try to use the expand command
...
when something actually got expanded. Skip it otherwise.
-Erik
2001-03-10 07:12:12 +00:00
Manuel Novoa III
78f57460f2
Quick mod to enable option -a for ifconfig.
2001-03-10 02:00:54 +00:00
Mark Whitley
d2117e9c82
Created new regression testing framework with a number of testcases (many more
...
can be added). Also changed 'test' target in makefile to run the new
tester.sh. (Hopefully, we should be able to remove all the tests/*.mk files
soon.)
2001-03-10 00:51:29 +00:00
Mark Whitley
09f4af5afd
/* getopt not needed */
2001-03-10 00:13:20 +00:00
Mark Whitley
827e45c518
Added some more '/* getopt not needed */' lines.
2001-03-09 23:59:51 +00:00
Manuel Novoa III
fa45f22e50
Use perror_msg_and_die function where appropriate.
2001-03-09 23:06:15 +00:00
Eric Andersen
d92168486b
Fixed df.c so that nfs volumes will display properly (fixing bug #1113 ).
...
Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then
cast the result back to an int after the math is done, letting C's type
promotion do its magic for the rest.
-Erik
2001-03-09 22:42:26 +00:00
Eric Andersen
4aaf89f49f
Silence a silly warning
2001-03-09 22:17:59 +00:00
Mark Whitley
f90c28dd1e
Applied patch from Jeff Garzik to getopt-ify rmmod.
2001-03-09 21:49:12 +00:00
Eric Andersen
8d4c397d9d
Patch from Jeff Garzik marking a few 'getopt not needed' apps.
2001-03-09 21:28:09 +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
dd91724aa0
patch from Larry to fix pristine source builds
2001-03-09 20:47:27 +00:00
Eric Andersen
74e056bfc8
Fixed a couple more cases. $FOO/bar ${FOO} and such now work
...
without wordexp. Of course for stuff like ${1:-foo} you still
need wordexp for them to work.
-Erik
2001-03-09 20:34:46 +00:00
Eric Andersen
3c7361f53a
Allow wordexp to be used if available
2001-03-09 19:45:26 +00:00
Eric Andersen
ce89871ff7
Urg. Remove the debug noise
2001-03-09 19:43:57 +00:00
Eric Andersen
195743f195
Ok, sh.c should be working now. Many thanks to Larry Doolittle
...
for his timely help -- nearly all of the work in this patch is
his.
-Erik
2001-03-09 19:21:37 +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
Mark Whitley
9ba5bce06f
Added script that tests turning on features in busybox one at a time and
...
compiling to see if things break. Initial revision.
2001-03-09 01:46:45 +00:00
Eric Andersen
01658a3eec
Fix sh.c for the glab case. I was messing things up for
...
single argument commands. It should now work as expected...
-Erik
2001-03-09 01:24:02 +00:00
Eric Andersen
3dbf1e877a
A '.' is a legal seperator.
2001-03-09 01:08:06 +00:00
Mark Whitley
afffbfe8c4
Fix to trim to make it trim properly.
2001-03-09 00:55:34 +00:00
Eric Andersen
b180dd9e50
Cleanup patch from Larry
2001-03-09 00:42:46 +00:00
Eric Andersen
13d1fa1d01
Add in 'trim' routine. Fix up sh.c so it works when wordexp
...
is not available.
-Erik
2001-03-08 23:59:45 +00:00
Manuel Novoa III
df351d6109
Improved port of ifconfig... smaller and with more features.
2001-03-08 22:57:00 +00:00
Eric Andersen
39eea898c4
Per Vladimir's suggestion, force the locale to POSIX for all
...
the scripts so busybox will install properly.
2001-03-08 21:42:11 +00:00
Mark Whitley
7e5291f111
Whitespace / formatting / bracket cleanup.
2001-03-08 19:31:12 +00:00
Eric Andersen
32f8c170b0
Remember to delete un-expandable variables, and do a better job of expanding
...
shell-specific things in case the wordexp implementation is broken (ie. the
stubbed out wordexp in uClibc).
-Erik
2001-03-08 17:44:37 +00:00
Eric Andersen
ca6045955d
Rework environment variable handling to use wordexp, per a suggestion from
...
Larry Doolittle a couple of months ago. This makes the stuff-expansion in lash
be ever so standards compliant. This change needs testing by everyone, but
appears to be solid enough to let us close bug #1090 .
It works for me; however, please test this change!
-Erik
2001-03-08 17:17:13 +00:00
Mark Whitley
e2c44fc966
Applied patch from Vladimir to fix bug where find would stop as soon as it hit
...
a perms error. Closes bug 1124.
2001-03-08 16:54:44 +00:00
Matt Kraai
5de909873a
Eliminate superfluous test.
2001-03-07 21:45:13 +00:00
Mark Whitley
4cc8f31ffe
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
2001-03-07 18:00:44 +00:00
Mark Whitley
ae5612ca6e
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of
...
'format' function to 'make_human_readable_str'.
2001-03-07 17:42:07 +00:00
Mark Whitley
ae20128e9f
Applied patch from Christophe Boyaniqu to remove double-slashes printed in
...
recursive_action.
2001-03-07 17:27:04 +00:00
Eric Andersen
26d53eb197
This patch by Vladimir and Larry saves a few bytes.
2001-03-07 06:33:01 +00:00
Eric Andersen
ec9fad9a49
Static-ify a variable. make du work with all the human-readable variants
...
since my last pass only fixed 'du -h' but left the others broken.
2001-03-07 06:04:08 +00:00
Eric Andersen
a7db19bb81
Fix up du so it behaves itself also.
...
-Erik
2001-03-07 03:53:40 +00:00
Eric Andersen
11ae573320
remove an unused variable
2001-03-07 03:51:27 +00:00
Eric Andersen
7850f1e2ac
Rewrite of format so it behaves itself
...
-Erik
2001-03-07 03:50:57 +00:00
Eric Andersen
5986f8d1c6
Fix up df so it works properly
...
-Erik
2001-03-07 03:50:03 +00:00
Eric Andersen
651f8c04ef
Fix up ls.c to ensure human readable works properly in all cases
2001-03-07 03:48:02 +00:00
Mark Whitley
6c563bc1a1
Thought of another janitorial item for the list.
2001-03-06 23:16:13 +00:00
Eric Andersen
8b728a25a3
I made these little simplifications a while back, bug forgot to
...
check this stuff in.
-Erik
2001-03-06 23:14:43 +00:00
Eric Andersen
702ec5926f
Fix the memory leak. No really this time.
...
-Erik
2001-03-06 22:17:29 +00:00
Mark Whitley
8bb7df49c2
Applied patch from Vladimir Oleynik via Magnus Damm that removes newlines from
...
error_msg() calls and uses 'return EXIT_SUCCESS' instead of return 0.
2001-03-06 20:58:48 +00:00
Eric Andersen
0f430e34af
Fix up some silly macros and use xmalloc and friends exclusively.
2001-03-06 20:54:43 +00:00
Eric Andersen
36278b9576
Fix func prototype
2001-03-06 20:47:31 +00:00
Eric Andersen
54851d3c65
Fixed a memory leak in lash. It seems that close_all was calling close()
...
directly instead of calling mark_closed(), which allowed the memory allocated
by mark_open() to never be freed.
-Erik
2001-03-06 20:44:39 +00:00
Eric Andersen
07f2f3917a
Close open files before calling builtin_exec(). I've tested this
...
and it fixes bug #1121 .
-Erik
2001-03-06 20:28:22 +00:00
Eric Andersen
1a046d5f9d
Bug 1110 reported that the LOOP_GET_STATUS ioctl apparently returnes non-zero
...
error messages, contrary to the documentation. Whatever. This patch from
zhaoway <zw@debian.org > looks safe enough.
-Erik
2001-03-06 19:35:58 +00:00
John Beppu
138ece09b5
minor cleanup
2001-03-06 19:25:25 +00:00
Eric Andersen
e6c4de03c6
First pass at trying to retrofit a changelog for 0.50. Please everyone
...
look over this and if I forgot something, misattributed your work, or
spelled something badly, please let me know.
-Erik
2001-03-06 18:46:10 +00:00
Eric Andersen
f15d4dad66
Add in a first pass at ifconfig status reporting. It took a long while
...
hacking on the mess in net-tools-1.59, but it currently adds 12k and
supports ethernet, loop, ppp, and treats everything else as a generic
interface. Works ok for me.
-Erik
2001-03-06 00:48:59 +00:00
Eric Andersen
5efa2291aa
Fix up the freshmeat appindex record.
2001-03-05 18:26:50 +00:00
Eric Andersen
c27b9544b6
Make sure libpwd.a is linked _last_ so it overrides the system pwd/grp
...
implementation. It wasn't doing that as expected...
2001-03-05 17:57:34 +00:00
Eric Andersen
47cdcdd359
Try to do a little better at documenting how to use
...
alternate C libraries, thanks to David Douthitt.
2001-03-05 17:08:52 +00:00
David Kimdon
21b7459add
add wget, tr, telnet, ping, md5sum and loadkmap to .deb
2001-03-05 08:43:26 +00:00
Eric Andersen
afbff22e6e
Enable INSTALLER for the deb
2001-03-05 04:00:06 +00:00
Eric Andersen
452fd33ffa
Patch from Vladimir to make sure PATH is set correctly.
2001-03-04 06:47:33 +00:00
Eric Andersen
076cdc24fc
If umount2 is not available, stub it out.
2001-03-04 06:07:34 +00:00
Mark Whitley
9ead68975c
Added some words on use of getopt in applets.
2001-03-03 00:44:55 +00:00
Glenn L McGrath
323434be42
Dont try to automount some specific filesystem types
2001-03-02 22:21:34 +00:00
Mark Whitley
446dd27843
Applied patch from Vladimir N. Oleynik that fixes incorrect behaviour in
...
recovery_mode and changed option processing.
2001-03-02 20:00:54 +00:00
Mark Whitley
42ab250709
Removed section on testing that is now in contributing.txt.
2001-03-02 19:15:01 +00:00
Mark Whitley
3b565cdf91
Added 'How to contribute to Busybox' doc.
2001-03-02 19:14:25 +00:00
Mark Whitley
85adecb668
Whoops! BB_TFTP should prolly be off by default.
2001-03-02 19:11:26 +00:00
Mark Whitley
450736cd3c
Added Magnus Damm's tftp applet to Busybox.
2001-03-02 19:08:50 +00:00
Mark Whitley
016771834a
Changed exit code from -1 to 0 when busybox is invoked with no args.
...
(Closes bug #1114.)
2001-03-02 17:47:17 +00:00
Mark Whitley
39842defda
Applied patch from David Douthitt to fix build error in df.c when
...
BB_FEATURE_HUMAN_READABLE was disabled.
2001-03-01 18:51:33 +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
Eric Andersen
1b6cff3df4
libpwd was getting added twice.
2001-02-27 22:24:45 +00:00
Mark Whitley
4f76bb6f3e
Little patchlet to make linking against libc5 work a little better
2001-02-27 19:53:48 +00:00
Eric Andersen
4142d4dc66
Patch from Vladimir N. Oleynik to save 128 bytes by moving error
...
checking for some my_* functions to utility.c
2001-02-27 18:22:03 +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
John Beppu
d11578f916
- changed the way POD is generated such that the dashed
...
line appears at the bottom instead of the top. The
indentation semantics of POD make the first item in
the (=over,=back) block look weird the other way.
- implemented a way to encode example usage into usage.h
One would define a macro called "${applet}_example_usage"
which would expand to the example text.
- The example usage is considered optional, but trivial and
full usage are not.
Here's an example using chown.
---- before
#define chown_trivial_usage \
"[OPTION]... OWNER[<.|:>[GROUP] FILE..."
#define chown_full_usage \
"Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
"\nOptions:\n" \
"\t-R\tChanges files and directories recursively."
#define chown_example_usage \
"\t$ ls -l /tmp/foo\n" \
"\t-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
"\t$ chown root /tmp/foo\n" \
"\t$ ls -l /tmp/foo\n" \
"\t-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" \
"\t$ chown root.root /tmp/foo\n" \
"\tls -l /tmp/foo\n" \
"\t-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
---- after
=item I<chown>
chown [OPTION]... OWNER[<.|:>[GROUP] FILE...
Change the owner and/or group of each FILE to OWNER and/or GROUP.
Options:
-R Changes files and directories recursively.
Example:
$ ls -l /tmp/foo
-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
$ chown root /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo
$ chown root.root /tmp/foo
ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
-------------------------------
2001-02-26 02:50:11 +00:00
Eric Andersen
2bf658d5cd
This patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support
...
to busybox insmod. Thanks Quinn!!!
-Erik
2001-02-24 20:01:53 +00:00
Eric Andersen
afeb96547f
Make output match the real lsmod -- print (autoclean) type
...
stuff first not last.
-Erik
2001-02-24 19:51:54 +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
dc12190ba2
The usage message for syslogd had stuff longer then 80 chars and wrapped.
2001-02-24 18:52:36 +00:00
John Beppu
37977622c4
...
2001-02-24 14:44:25 +00:00
John Beppu
7d597c4833
refinement
2001-02-24 14:37:48 +00:00
John Beppu
dbfff6cbde
formatting ...
2001-02-23 17:55:03 +00:00
John Beppu
e6967b20cb
Added some documentation and made --sgml use sgml_from_usage().
...
pod_from_usage() is the default generator.
2001-02-23 17:51:08 +00:00
Eric Andersen
3757f98d86
Another usage cleanup from kent robotti
2001-02-23 17:47:51 +00:00
John Beppu
8373e70c55
During POD generation, it inserts a blank line before lines
...
that were intended to be indented.
2001-02-23 17:41:41 +00:00
Eric Andersen
7a9cc2dcdd
More cleanups
2001-02-23 16:58:44 +00:00
John Beppu
15f9b92127
forgot to remove some debugging noise
2001-02-23 16:16:08 +00:00
John Beppu
df1e9daf30
This one should be able to deal with the USAGE macros a little
...
more robustly. I also blow away any USAGE_NOT_\w+ macros.
2001-02-23 16:15:34 +00:00
Eric Andersen
ed0d958c3e
Make HUMAN_READABLE be single argument like the others.
2001-02-23 13:23:03 +00:00
John Beppu
2498b155fd
forgot a comma.
2001-02-23 13:04:39 +00:00
Eric Andersen
a0cfe94c4e
More usage cleanups from kent robotti. I know some of these were
...
applied previously but apparently lost with some of the latest changes.
2001-02-23 10:07:09 +00:00
Eric Andersen
b83ffafc15
Fix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>
2001-02-23 06:36:53 +00:00
David Kimdon
56082dc2ae
space after \ make preprocessor sad
2001-02-23 06:03:22 +00:00
David Kimdon
68c1d8400c
utility.c must include stdarg.h
2001-02-23 03:55:24 +00:00
John Beppu
b249fbb1dc
I can't leave it alone.
2001-02-23 03:12:45 +00:00
John Beppu
8c16bc5012
minor cleanup... all that's left to do is
...
* make headers and footers for both the POD and SGML content
* make an SGML generator
* finish the command-line handling
Also, some of the documentation in usage.h will have to
be adjusted. expr needs some lines to be indented, and
ls has a stray comma. I may have missed some things...
but it looks OK for the most part.
2001-02-23 02:54:31 +00:00
John Beppu
4a25d8c9c3
This is the remixed autodocufier.pl.
2001-02-23 02:33:28 +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
3574b70efc
Somewhere along the line, MAKE_LINKS got broken, thereby breaking
...
'make install'. Fix that.
2001-02-23 02:16:29 +00:00
Eric Andersen
8079b155c2
Argh. I should know to compile first.
2001-02-23 02:04:33 +00:00
Eric Andersen
bbc8e4789f
Only default to BB_FEATURE_NEW_MODULE_INTERFACE when
...
BB_FEATURE_OLD_MODULE_INTERFACE is not defined.
-Erik
2001-02-23 02:00:35 +00:00
Eric Andersen
2f3105725f
Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
...
is enabled.
-Erik
2001-02-23 01:58:18 +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
41492d6c23
I should be more careful...
2001-02-23 00:05:56 +00:00
Eric Andersen
c163e5107f
Turn off the printf attribute for the ?error_msg* functions, since it
...
is ok to pass them a NULL, unlike printf. This silences a pointless
warning message.
-Erik
2001-02-22 23:38:48 +00:00
Eric Andersen
544891dd26
Add in kent robotti's updated dos2unix.c
2001-02-22 23:37:30 +00:00
Eric Andersen
adea7a6101
Fix up Makefile -- uClibc nfs works these days
2001-02-22 23:36:30 +00:00
Eric Andersen
4b2e69a1cf
Commit a few updates to the usage messages.
2001-02-22 23:32:59 +00:00
Eric Andersen
e13bc0bc68
First pass at making up an automagical usage message extractor, which
...
will be used (when it works) to autogenerate documentation. Based on
code written by Mark Whitley.
2001-02-22 22:47:06 +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
b2007bffc5
Make busybox and busybox-static conflict/replace each other
2001-02-22 05:21:35 +00:00
Eric Andersen
5d9cad0253
Fix malformed build-depends. Update list of bugs to close
...
-Erik
2001-02-22 05:08:16 +00:00
Eric Andersen
7aa1f5c42a
Make md5sum not display filename when reading stdin
...
-Erik
2001-02-22 04:59:16 +00:00
Eric Andersen
dbcd8ce464
Make init compile when DEBUG_INIT is enabled
...
-Erik
2001-02-22 04:55:33 +00:00
Eric Andersen
7e9276b50a
Another update to the way usage messages are done by Evin Robertson
...
<nitfol@my-deja.com >, which makes things just a little bit smaller, but makes
usage.h more readable/maintainable IMHO.
-Erik
2001-02-22 01:15:47 +00:00
Eric Andersen
8fc300976f
Revert my change to do extra termType checking. That is done elsewhere.
...
Silly me.
-Erik
2001-02-22 00:50:20 +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
54006bce25
Oops! I left in my debug noise.
2001-02-21 00:27:22 +00:00
Eric Andersen
7c3e7ac940
df was totally broken. So I fixed it.
...
-Erik
2001-02-21 00:24:51 +00:00
Mark Whitley
8d7bdc9deb
Small patch from Kent Robotti to show megabytes in human-readable output.
2001-02-20 21:57:55 +00:00
Eric Andersen
9e37007edb
Minor cleanup.
2001-02-20 21:52:49 +00:00
Eric Andersen
90fe7fea10
Apply a patch from Magnus Damm <damm@opensource.se> to support
...
powerpc with busybox insmod
-Erik
2001-02-20 20:47:08 +00:00
Eric Andersen
477aedd77f
Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
...
environment variables set from the kernel command line to be inherited
bu application programs. Slightly changed to special case handling of
TERM, so that it has sane defaults when on a serial console.
-Erik
2001-02-20 18:01:50 +00:00
Eric Andersen
5165fbed63
Oops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
...
after busybox.h is included.
2001-02-20 06:42:29 +00:00
Eric Andersen
caeeb36784
This fixes lash so it handles environment variable expansion, regardless
...
of where the environment variables are located in an argument. This allows
things like 'echo foo$1$SHELL' to expand the same way bash would expand it.
Of course, to make this work I introduced a memory leak, and I am too tired
to find a way to fix it.
-Erik
2001-02-20 06:38:44 +00:00
Eric Andersen
a183f05825
Cleanup the use of 'find' to prevent error msgs.
...
-Erik
2001-02-20 06:22:54 +00:00
Eric Andersen
f1142c5b11
Oops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS
...
-Erik
2001-02-20 06:16:29 +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
94456f5984
Put back Vladimir's testing defines, which I mistakenly removed.
2001-02-18 20:26:48 +00:00
Eric Andersen
12dceb1147
A few more cleanups from Vladimir.
2001-02-18 20:15:36 +00:00
Eric Andersen
963791a9e9
Another patch from Vladimir to eliminate obsolete junk.
2001-02-18 20:13:18 +00:00
Eric Andersen
f1bbb22dca
A small cleanup by Vladimir
2001-02-18 20:12:25 +00:00
Eric Andersen
f57a832063
Remove leftover junk
2001-02-18 20:11:38 +00:00
Eric Andersen
b50da53e0c
Get rid of long stale usage message code.
...
-Erik
2001-02-17 16:52:35 +00:00
Eric Andersen
3d20f772c2
A bunch of usage clenups from kent robotti <robotti@metconnect.com>
...
-Erik
2001-02-17 16:49:00 +00:00
Eric Andersen
966b3a6f79
More updates from Larry Doolittle. Don't use basedir, Don't assume
...
random makefiles are going to work with busybox.
2001-02-17 15:56:52 +00:00
Eric Andersen
1cf8166329
More updates.
2001-02-17 15:55:15 +00:00
Eric Andersen
47aea4ee71
Ignore applet_source_list
2001-02-17 03:08:32 +00:00
Eric Andersen
19f86207f5
Update the build system for pristine source directory builds. This
...
update is primarily work done by Larry Doolittle, but I did some
touchups of my own to make it work for me,
-Erik
2001-02-17 00:42:47 +00:00
Eric Andersen
69c8572f29
Update the debian build stuff
...
-Erik
2001-02-17 00:41:05 +00:00
Eric Andersen
f6a7227fd6
Throw out the obsolete INIT_CHROOT junk
2001-02-17 00:40:32 +00:00
Eric Andersen
28a78ab62c
Several features were hard coded on. Stop that. List tab completion
...
as working (thanks Vladimir!) and taking 4k.
-Erik
2001-02-16 20:26:50 +00:00
Eric Andersen
6faae7deb4
Commit Vladimir's latest cmdedit. I modified it slightly to ensure
...
parse_prompt() would be called before cmdedit_init(), since cmdedit_init()
calls cmdedit_setwidth() which uses cmdedit_prmt_len, which is set by
parse_prompt(). Also, added a mod, so very narrow terminals should now wrap
properly... This is working very nicely for me -- Vladimir has done some
very good work.
2001-02-16 20:09:17 +00:00
Eric Andersen
361ee514c6
Revert multibuild.pl change.
2001-02-16 19:07:21 +00:00
Eric Andersen
ca0f458ada
Regression testing bugfixes from Larry Doolittle. As an aside,
...
can I just say how much I am looking forward to having 0.50
released, so we can address this #define stupidness properly
by building a static libbusybox, and then letting the linker
sort out the dependancies.... Ahh, that will be much nicer.
-Erik
2001-02-16 18:43:54 +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
Eric Andersen
fa4f146d7d
Patch from Larry Doolittle to cross things in multibuild.pl
2001-02-16 18:37:00 +00:00
Eric Andersen
5f2c79d8c7
Make ar be crossed.
2001-02-16 18:36:04 +00:00
Eric Andersen
af12bc6de4
Make dpkg require dpkg-deb
2001-02-16 18:35:06 +00:00
Glenn L McGrath
3f5bcbfa3c
Fix warning for implicit declaration of time()
2001-02-16 10:33:30 +00:00
Glenn L McGrath
a9c69762ba
Fix compile error, sync() always returns 0 anyway.
2001-02-16 10:21:35 +00:00
Mark Whitley
825ae5a166
Another small formatting change from Larry Doolittle.
2001-02-15 23:31:40 +00:00
Mark Whitley
99806ad2bd
Applied patch from Larry Doolittle that does the following:
...
- style changes
- It actually returns the code computed by INET_setroute (wasn't being done
properly before)
- The displayroute() format string now matches net-tools
2001-02-15 23:00:48 +00:00
Eric Andersen
11b7a1deb7
Acknowledge Kenneth Chalmers ln fix.
2001-02-15 20:13:59 +00:00
Eric Andersen
d69d2da165
use perror_msg instead of perror to print the applet name.
...
-Erik
2001-02-15 20:12:05 +00:00
Eric Andersen
b50d707633
fix a few mallocs to be xmallocs.
...
-Erik
2001-02-15 19:50:11 +00:00
Eric Andersen
02b9f42a27
Patch from Matt Kraai to fix bug #1103 . I've tested it,
...
and it indeed seems to fix things.
-Erik
2001-02-15 19:07:43 +00:00
Eric Andersen
81bcc92c32
Fixed 'ls -s' so it actually displays block sizes again.
...
-Erik
2001-02-15 18:59:02 +00:00
Eric Andersen
8305006f7c
Make usage.c depend on usage.h
...
-Erik
2001-02-14 21:52:18 +00:00
Eric Andersen
c1c43113b4
Fins find message.
2001-02-14 21:51:54 +00:00
Eric Andersen
3ec8ffb121
I forgot to add usage.h, so here it is, with a few extra cleanups.
...
Also update show_usage to handle the updated usage.h. Again,
nearly all the work to get usage.h into shape was done by
Manuel Novoa III.
-Erik
2001-02-14 21:46: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
68be2ab914
implemented displayroute() based on a patch from Vladimir N. Oleynik,
...
so now route behaves as expected w/o any arguments.
2001-02-14 19:26:39 +00:00
Eric Andersen
98e599ca06
Commit Vladimir's latest version of stty.c. Nice work.
...
-Erik
2001-02-14 18:47:33 +00:00
Eric Andersen
ec45595300
Add in ifconfig and route
2001-02-14 08:11:27 +00:00
Eric Andersen
88a5ceb450
Bump rev to 0.50pre.
2001-02-14 07:55:19 +00:00
Eric Andersen
fc83c4c353
Several cleanups from Manuel Novoa III.
...
get_kernel_revision -- size reduction
NOTE: may want to combine with get_kernel_version in insmod???
parse_mode -- size reduction, multiple settings with "," now work correctly,
sticky-bit setting now implemented
process_escape_sequence -- size reduction, octal code to big for char bug fixed
format -- size reduction, val > LONG_MAX and hr = 1 printing bug fixed (was %ld),
2001-02-14 07:15:30 +00:00
Eric Andersen
6fd8c664c1
Apply a patch from Evin Robertson -- new pivot_root applet.
...
-Erik
2001-02-13 20:04:30 +00:00
Glenn L McGrath
3af1f88725
Closer integration with dpkg-deb and other busybox functions.
...
Hopefully simplified some code (works for me).
2001-02-12 11:33:09 +00:00
Glenn L McGrath
dadf9c6dcd
New dpkg-deb option, warning about dpkg usage
2001-02-12 11:27:45 +00:00
Glenn L McGrath
821fbf0f42
New option 'list' produces output that can be used for the packages .list file.
...
Will be used be bb dpkg
2001-02-12 11:16:26 +00:00
Glenn L McGrath
bc9afadecd
New function, deb-extract to be used by dpkg, code cleanups. saves some bytes
2001-02-11 03:32:41 +00:00
Glenn L McGrath
728875f340
Consmetic changes
2001-02-11 03:15:57 +00:00
Glenn L McGrath
631064613f
More style changes
2001-02-11 01:40:23 +00:00
Glenn L McGrath
0c9d77ccfd
Style changes; use get_line_from_file from utilities
2001-02-11 00:17:22 +00:00
Glenn L McGrath
de556615dc
BB_DPKG uses copy_file
2001-02-10 14:53:44 +00:00
Glenn L McGrath
510f0ddafa
Use copy_file from utilty.c, remove some char defines
2001-02-10 14:53:08 +00:00
Glenn L McGrath
649968ceb1
Bug fix, rename status file, cleanups
2001-02-10 14:26:48 +00:00
Glenn L McGrath
af8c65deaa
Replace status defines with const int to conform to sytle guide, adds 32 bytes
2001-02-10 03:19:51 +00:00
Glenn L McGrath
c900575dc4
Initial import
2001-02-10 02:05:24 +00:00
Glenn L McGrath
c30ab0f4a8
New applet: dpkg
2001-02-10 02:04:40 +00:00
Matt Kraai
e78fd0f721
Fix typo.
2001-02-09 18:10:53 +00:00
Mark Whitley
2fd52989f7
Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.
2001-02-09 00:41:10 +00:00
Mark Whitley
d238a7bcc8
Minor cleanups and clarifications.
2001-02-09 00:28:59 +00:00
Matt Kraai
1d70267450
Add listening support.
2001-02-07 04:09:23 +00:00
Matt Kraai
df8ccb6350
Added documentation for new find options.
2001-02-07 04:05:35 +00:00
Matt Kraai
096370d349
Reworked find with David Douthitt to support -type, -perm, -mtime, and
...
other improvements.
2001-02-07 03:52:38 +00:00
Matt Kraai
a164c647ac
Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.
2001-02-05 17:50:03 +00:00
Mark Whitley
925edb828d
Added some more on paren spacing and a section on testing guidelines.
2001-02-03 00:20:14 +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
29cff26f32
After testing multi-build, I stupidly committed Config.h
...
with nearly everything turned off. Doh!
-Erik
2001-02-02 01:08:22 +00:00
Mark Whitley
76c5e60d54
Patch from Chris Jaeger that makes turning on and off options in the makefile
...
a bit less error prone by calling 'strip' on makefile vars before performing
truth tests against them.
2001-02-02 01:07:17 +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
b5c29850e3
Tightened things up a bit, saved 20 bytes, and made the code a bit clearer in
...
the process.
2001-02-01 21:02:41 +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
Mark Whitley
9b300d0b1f
Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.
2001-02-01 19:39:43 +00:00
Matt Kraai
f2cc2762bb
Create find_applet_by_name function. Save 32 bytes.
2001-02-01 19:21:20 +00:00
Matt Kraai
05e782ddd3
Fix wget error message and add (and use) chomp library function.
2001-02-01 16:49:30 +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
Mark Whitley
63ec273245
Added floppyfw to list of known projects using BusyBox.
2001-01-31 18:33:20 +00:00
Eric Andersen
82d5e59ea2
xfopen now used by wget
...
-Erik
2001-01-31 17:50:35 +00:00
Eric Andersen
79e898ac0e
Patch from Vladimir N. Oleynik to simplify wget file opening
...
using xfopen (which is what everything should be using).
2001-01-31 17:49:47 +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
Eric Andersen
53cfb7e231
Patch from Vladimir N. Oleynik to simplify/cleanup a few things in init.c
2001-01-31 17:29:47 +00:00
Eric Andersen
704d2a6c43
Patch from Vladimir N. Oleynik to simplify how it decides which
...
app was invoked. This removes several strcmp calls.
2001-01-31 17:29:12 +00:00
Eric Andersen
39573f7130
Wrap a table (bg set to black, width=80%) around the screenshot
...
so it doesn't look like crap in Netscape. Should look fine in
Mozilla either way. I think.
-Erik
2001-01-31 17:14:17 +00:00
Matt Kraai
18d5064c47
Make it validate.
2001-01-31 02:13:05 +00:00
Matt Kraai
9ba0daf4ba
Close IMG tag.
2001-01-31 01:59:46 +00:00
Eric Andersen
93a8e2e64b
Patch from Larry Doolittle to reduce the chance that fussing with VPATH will
...
break cross-compilation.
-Erik
2001-01-31 01:38:05 +00:00
Eric Andersen
306f4fe480
If the ioctl fails to tell us the winsize, default to 79.
...
-Erik
2001-01-31 00:30:45 +00:00
Eric Andersen
22332fd26f
Patch from Bryan Rittmeyer -- be more conservative by default
...
with the lash prompt.
-Erik
2001-01-30 23:40:39 +00:00
Mark Whitley
ac21e93a3f
Added a new screenshot of Busybox. :-)
2001-01-30 23:37:15 +00:00
Eric Andersen
4bbdd788e0
Fix the pwd and group functions. The bb_ stuff was a leftover from
...
a brief past that mercifully (except for this) never made it into CVS.
-Erik
2001-01-30 22:23:17 +00:00
Eric Andersen
30f64c3aa2
Fix a stupid typo -- bug found by Larry Doolittle.
2001-01-30 19:23:46 +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
e57d54b456
Fix ls behavior for broken or very narrow terminals. Fix my_*
...
functions so they comply with the original interface (i.e. don't
exit on error, stringify uids and gids when no amtching name found).
-Erik
2001-01-30 18:03:11 +00:00
Matt Kraai
201dc0d5a9
Test applets containing numbers in their name. Thanks to Larry Doolittle.
2001-01-29 19:00:48 +00:00
Matt Kraai
ceade5c856
Fix missing header file.
2001-01-29 18:41:12 +00:00