Glenn L McGrath
aa5a602689
Patch by Rob Landley, work in progress update, fixes lots of bugs,
...
introduces a few others (but they are being worked on)
2003-10-01 03:06:16 +00:00
Glenn L McGrath
eebcc1d98a
Add the "install" applet, move get_ug_id to libbb as its used by chown,
...
chgrp and install.
2003-09-24 03:22:57 +00:00
Eric Andersen
8efe967018
Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)
...
to ensure proper fallback behavior on, i.e. serial consoles.
-Erik
2003-09-15 08:33:45 +00:00
Glenn L McGrath
2af30446f1
Typo.
2003-09-12 10:58:54 +00:00
Glenn L McGrath
99bd5adf99
more crond+crontab integrating with loginutil libbb functions and deleted
...
patch from Thomas Gleixner to init.
Viodz last_patch_108
2003-09-03 12:18:42 +00:00
Glenn L McGrath
dc4e75ef7c
move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as one
...
constant.
Vodz last_patch_107
2003-09-02 02:36:18 +00:00
Glenn L McGrath
2ce002a732
Help for date -I when CONFIG_FEATURE_DATE_ISOFMT is enabled.
...
Patch by Steven Scholz
2003-08-29 14:18:26 +00:00
Glenn L McGrath
a6b7bdcf8c
Vodz, last patch 105
...
Busybox "mount" applet unsupport "user" option and
result: must have _BB_SUID_NEVER applet option (my bug).
Last patch have reducing 216 bytes for "su" applet also.
2003-08-29 07:38:56 +00:00
Glenn L McGrath
4cee66d5a8
Dont unlink when testing !
...
Always preserve creation date
Disable the -p option its for modification date
Remove some cpio header debugging noise
Syncronise file listing behaviour with upstream.
2003-08-28 19:12:23 +00:00
Eric Andersen
97e2426582
"staywithu" writes:
...
In BusyBox v1.00-pre2,
commands like ls, df with -h option report a wrong file size for files larger than 4GBtye!!
For example,
when I execute 'ls -l', it reports
-rw-r--r-- 1 root root 5368709120 Aug 17 2003 large_stream.tp
when I execute 'ls -lh', I expect that
-rw-r--r-- 1 root root 5.0G Aug 17 2003 large_stream.tp
but it reports
-rw-r--r-- 1 root root 1.0G Aug 17 2003 large_stream.tp
I fixed this bug that...
Line 31 in libbb/human_readable.c and line 275 include/libbb.h
const char *make_human_readable_str(unsigned long size
=> const char *make_human_readable_str(unsigned long long size
It's OK!
2003-08-22 23:08:37 +00:00
Eric Andersen
2e9c257000
Implement a minimalist 'last' which allows the LEAF project to
...
no longer need dumtp. Remove the 'dumtp' applet.
-Erik
2003-08-08 22:26:06 +00:00
Eric Andersen
92fb9395f7
Kent Robotti noted that mt.c uses "rewind" not "rew"
2003-08-08 20:09:03 +00:00
Eric Andersen
0a57a79e38
Patch from Steven Scholz:
...
should we rename the define into CONFIG_FEATURE_HDPARM_HDIO_DMA and
use it for "set" and "get" ???
Since although CONFIG_FEATURE_HDPARM_HDIO_GET_DMA is _not_ set I still
can use "hdparm -d 1 /dev/hda" to switch the DMA on.
Is this desireable or meant to be like that?
So how about the applied patch?
2003-08-06 08:57:35 +00:00
Eric Andersen
546f21aa2d
Remove code that too agressively disabled inlines
2003-08-01 22:27:57 +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
4052051864
Patch from vodz to update httpd usage
2003-07-28 09:59:05 +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
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
85e5e72bc1
Remove remaining libc5 support code
2003-07-22 08:56:55 +00:00
Eric Andersen
725db196c3
Very minor rdate updates
2003-07-22 08:26:05 +00:00
Eric Andersen
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
335816bc4c
Fix a silly typo
2003-07-14 22:14:49 +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
f890f9dd16
This declaration no longer needs to hide when using dmalloc
2003-07-07 06:10:31 +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
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
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
Glenn L McGrath
655d814d75
New applet: patch, applies a unified diff
2003-06-22 15:32:41 +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
c9e7024924
Add prototype update missing from last_patch89. Fix screwy
...
formatting in cut.
2003-06-20 09:16: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
Glenn L McGrath
24833430bc
Vodz, last_patch_88
2003-06-10 17:22:49 +00:00
Eric Andersen
82ab3d7c3e
Make all syscall declarations use the syscall() function
2003-05-26 18:48:56 +00:00
Glenn L McGrath
393183dccc
Vodz, last_patch_86
2003-05-26 14:07:50 +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
1e11c34be4
minit, a Minimal init system.
2003-05-11 14:52:39 +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
Manuel Novoa III
4baef0c77f
Minor cleanups. Document the cmp -l option.
2003-03-19 18:40:42 +00:00
Manuel Novoa III
cad5364599
Major coreutils update.
2003-03-19 09:13:01 +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
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
Eric Andersen
18d8a3b7e3
udhcpc is supposed to be in /sbin, not /usr/sbin/
2003-02-10 09:22:36 +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
a88cb5025c
Patch from mathuria, compatability with solaris
2003-02-08 23:36:16 +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
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
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
a9adef0394
Dont use getopt_long, minor usage changes, patch by Nick Fedchik
2003-01-19 13:34:21 +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
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
e0716ba23b
Fixup addgroup help text
2003-01-14 06:42:56 +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
Glenn L McGrath
9e59841375
arping applet by Nick Fedchik
2003-01-09 10:06:01 +00:00
Glenn L McGrath
58c708af23
New applet: httpd, by Glenn Engel
2003-01-05 04:01:56 +00:00
Glenn L McGrath
87444efbab
Add usage for tar -j and -z
2002-12-27 00:45:35 +00:00
Tim Riker
cf93274663
rmmod -a removed modules recursively
2002-12-14 01:58:59 +00:00
Glenn L McGrath
25fe94fd32
Merge copyfd and copy_file_chunk
2002-12-13 08:20:44 +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
6d07432b2f
Support the o, f and p options, patch by Magnus M�rtensson
2002-12-12 10:31:53 +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
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
f0a360ea19
Usage for klogd -c
2002-12-05 20:56:31 +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
062c74f710
last_patch_68 from Vladimir N. Oleynik
2002-11-27 09:29:49 +00:00
Glenn L McGrath
441e7efc72
fdisk applet by Vladimir N. Oleynik
2002-11-26 22:00:21 +00:00
Glenn L McGrath
efe7889086
Headers for the read_gz changes
2002-11-19 21:07:17 +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
f57674e9a9
Rewrite of xargs by Vladimir N. Oleynik
2002-11-10 21:47:17 +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
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
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
Russ Dill
0288c8e543
typo in udhcpc help
2002-11-05 20:13:41 +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
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
6ab32eb34c
Move data_extract_all_prefix to dpkg, its only used there.
2002-11-03 11:57:10 +00:00
Glenn L McGrath
60bce4905c
Move bunzip2 idecompression code to libunarchive
2002-11-03 07:28:38 +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
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
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
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
Russ Dill
61fb48930f
added full udhcp integration
2002-10-14 21:41:28 +00:00
Eric Andersen
e0f5500bb5
Fix init docs
2002-09-30 20:59:33 +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
Glenn L McGrath
2e41d0cb77
Fix compress support and prevent a segfault
2002-09-27 06:46:02 +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
7ca04f328e
New common unarchive code.
2002-09-25 02:47:48 +00:00
Eric Andersen
420b208a45
Add a new top applet
...
-Erik
2002-09-17 22:14:58 +00:00
Glenn L McGrath
18b76e6f80
Watch applet by Michael Habermann
2002-09-16 09:10:04 +00:00
Eric Andersen
c38678d14b
Apply vodz' last_patch52
2002-09-16 06:22:25 +00:00
Glenn L McGrath
061c900176
mesg applet by Manuel Novoa III
2002-09-16 04:21:46 +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
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
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
4176972db5
Run through indent, use /* */ style comments
2002-08-22 13:25:12 +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
8eb0dc1d10
New applet, udhcp client
2002-08-21 10:27:58 +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
1cd0445495
Initial checkin of a very primitive hwclock replacement
2002-07-21 16:50:49 +00:00
Robert Griebl
d378c3149c
Applied vodz' patches #49 and #50 (with a small correction in runshell.c)
...
#49 : I found one memory overflow and memory leak in "ln" applet.
Last patch reduced also 54 bytes. ;)
#50 : I found bug in loginutils/Makefile.in.
New patch have also new function to libbb and
aplied this to applets and other cosmetic changes.
2002-07-19 00:05:54 +00:00
Eric Andersen
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
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
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
7234c3a0b6
Cleanup shadow.h stuff so it behaves as intended
...
-Erik
2002-07-03 04:47:43 +00:00
Eric Andersen
abc9568690
Silly spelling fix
...
-Erik
2002-07-03 02:52:35 +00:00
Eric Andersen
27f64e1f4e
Port over the last of the tinylogin applets
...
-Erik
2002-06-23 04:24:25 +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
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
d77601178d
Added support for -Y|--proxy=on/off to wget
2002-05-14 23:36:45 +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
Eric Andersen
ef38b39262
Support noerror option
2002-04-27 01:31:43 +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
9fe5f98de4
Patch from Jim Treadway -- fix a missing "\" in usage.h
2002-04-13 14:48:51 +00:00
Eric Andersen
db7d5fca5f
Stupid gcc always includes its own builtin strlen()...
2002-04-13 13:02:03 +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
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
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
c7a3fb96d0
Fix devfs loop device support
2002-03-20 15:25:25 +00:00
Eric Andersen
38ddbed4c1
Try to pull in PATH_MAX properly
2002-03-16 02:12:30 +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
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
Eric Andersen
20d739adf7
If PATH_MAX isn't defined, define it outselves
2002-01-26 23:58:22 +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
Glenn L McGrath
87ac7028e0
unzip applet by Laurence Anderson
...
----------------------------------------------------------------------
2002-01-02 13:52:26 +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
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
6925d50176
Some minor usage cleanups from David Douthitt <ssrat@mailbag.com>
2001-12-16 09:23:09 +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
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
c3657428d3
Add in a 'time' applet. Adds 4.5k.
...
-Erik
2001-11-30 07:54:32 +00:00
Glenn L McGrath
fff11f1ab7
bzcat and bunzip -c support from Thomas Lundquist
2001-11-18 14:20:25 +00:00
Eric Andersen
c223ced0ea
I forgot to add these. Part of the patch from vodz
2001-11-10 12:18:42 +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
Eric Andersen
1552ff7efb
Move usage.h to include/usage.h
2001-10-31 11:07:12 +00:00
Eric Andersen
6cf47a79ac
Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>
2001-10-31 10:24:36 +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
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
e9fc781570
libunarchive, and recovery from my previous commit
2001-10-25 14:57:14 +00:00
Glenn L McGrath
0d2fb76c11
Modify applets to use libunarchive
2001-10-25 14:26:05 +00:00
Matt Kraai
258bd3d971
Split true and false into separate applets.
2001-10-24 19:00:20 +00:00
Eric Andersen
b36e684fd7
Ignore generated files
2001-10-24 06:53:33 +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
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
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
3550753445
Remove duplicate tftp -l option help
2001-10-05 10:11:28 +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
Matt Kraai
4c557bf576
Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.
2001-10-05 01:35:10 +00:00
Matt Kraai
3be34309e3
Fix tftp usage information ( closes : #1216 ).
2001-09-21 14:42:30 +00:00
Tim Riker
4c67c596d1
closes bug#1215?
2001-09-16 02:00:09 +00:00
Matt Kraai
91631011cc
Remove traces of rpmunpack (patch by Laurence Anderson).
2001-08-27 18:55:10 +00:00
Matt Kraai
80f6d55836
Eliminate improper consts and allow standard version to override.
2001-08-24 20:35:45 +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
a7cecbc917
Commit Vladimir's simplify_path.
2001-08-10 15:05:27 +00:00
Eric Andersen
be0c36009a
More libc5 fixups
...
-Erik
2001-08-02 10:55:32 +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
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
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
221b2ea6c4
I just wrote up a simple pidof applet, closing bug #1197
...
-Erik
2001-07-31 19:06:07 +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
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
Matt Kraai
439e3df653
Add support for devfs device names.
2001-07-23 14:52:08 +00:00
Eric Andersen
8d79ce8320
Some patches to make dietlibc work...
2001-07-22 23:00:15 +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
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
b9e4ce99d8
Update dpkg usage
2001-07-18 05:16:31 +00:00
Glenn L McGrath
51ded05b3b
enum entry for unarchive to be used by tar
2001-07-14 12:38:55 +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
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
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
d22b78ff05
Fix a stupid bug revealed by multibuild.pl
2001-07-06 18:33:04 +00:00
Matt Kraai
5009f90ea2
Removed obsolete function, strdup_substr.
2001-07-05 19:00:47 +00:00
Eric Andersen
5ef5614c31
Don't use void * to pass pointers of known type
2001-06-26 16:36:26 +00:00
Glenn L McGrath
78b0e379d7
Vladimir's last_patch_15
2001-06-26 02:06:08 +00:00
Glenn L McGrath
f8736d251e
rpm2cpio applet by Laurence Anderson
2001-06-26 01:19:34 +00:00
Glenn L McGrath
2e6d3cfa82
Nore unarchive (and doc) fixes from Laurence Anderson
2001-06-24 12:36:54 +00:00
Glenn L McGrath
8f5b63edea
cpio applet, and changes to associated code
2001-06-22 09:22:06 +00:00
Matt Kraai
a0105713e8
Remove obsolete function declaration.
2001-06-22 04:20:24 +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
Matt Kraai
075228a461
Remove documentation of unsupported sed options.
2001-06-21 14:40:55 +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
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
9aff903603
Reorganise archive extraction code
2001-06-13 07:26:39 +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
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
Eric Andersen
8b113f93b9
Vladimir's last_patch13, containing several bugfixes.
2001-06-01 21:47:15 +00:00
Eric Andersen
77d9268892
Patch from larry to fix some grammar errors.
2001-05-23 20:32: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
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
Eric Andersen
2f6e1f880b
Patch from Gernot Poerner <gp@it-netservice.de>. Adds in
...
mount bind support.
2001-05-21 15:59:34 +00:00
Eric Andersen
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
Matt Kraai
d6ef07406d
Rewrote copyfd to use library functions, terminate, and copy correct data.
2001-05-18 14:14:55 +00:00
Matt Kraai
c55b8d41c1
Add xgethostbyname and herror_msg* functions.
2001-05-16 15:40:51 +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
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
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
238da24620
Fix the chown usage text, also thanks to Lars Kellogg-Stedman <lars@larsshack.org>
2001-05-11 16:31:46 +00:00
Matt Kraai
c96381be40
Fix env usage information.
2001-05-11 14:28:17 +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
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
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
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
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
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
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
Matt Kraai
91b2855ba8
Rewrite cp and mv to be SUSv2 compliant.
2001-04-23 18:53:07 +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
Eric Andersen
b5ec61e4f5
Add types for the inline funcs, thanks to Ralph Siemsen <ralphs@netwinder.org>
2001-04-18 20:17:05 +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
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
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
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
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
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
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
359c106871
Fix dpkg-deb, enum's are cool
2001-04-12 10:19:08 +00:00
Glenn L McGrath
a283157c38
convert() is used by dos2unix and unix2dos
2001-04-12 00:49:26 +00:00
Glenn L McGrath
4949faf4b2
copy_file_chunk uses streams now.
2001-04-11 16:23:35 +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
b6b519b416
Update how we detect if libc5 is in use.
...
-Erik
2001-04-09 23:52:18 +00:00
Eric Andersen
303dd28bb0
Make 'grep -l' work
2001-04-09 23:26:31 +00:00
Eric Andersen
e5dfced23a
Apply Vladimir's latest cleanup patch.
...
-Erik
2001-04-09 22:48:12 +00:00
Eric Andersen
250a221768
more FILE_OFFSET_BITS == 64 adjustments.
2001-04-05 23:26:44 +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
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
b2e3e9b0c9
Seems that stupid libc5 doesn't implement daemon(), so conditionally
...
inclde that here.
-Erik
2001-04-04 19:25:57 +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
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
c4cef5ab06
Move the mtab support stuff into libbb
...
-Erik
2001-04-01 16:01:11 +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
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
Matt Kraai
d98e574d41
Patch bass ackwards behavior of hr flag.
2001-03-28 20:10:25 +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
5cd2a2d53e
In fact, socklen_t *is* defined by libc5.
2001-03-27 18:22:00 +00:00
Mark Whitley
6f93277f56
Added adjtimex applet from Larry Doolittle.
2001-03-20 19:18:10 +00:00
Eric Andersen
4ef37d0c17
chown was missing a ] in its usage msg
2001-03-20 01:06:14 +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
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
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
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
3a0057e2c5
Fix egrep
2001-03-15 21:33:33 +00:00
Mark Whitley
0a6f1d31e7
One tinly, little, missing newline that confused Pod.
2001-03-15 21:19:09 +00:00
Eric Andersen
2825ee8c2c
Fix linuxrc define
2001-03-15 18:58:06 +00:00
Eric Andersen
0d3a02eba7
Update the documentation so examples are autoincluded in the output text.
...
Fix up docs/busybox.pod with the latest autogenerated output.
-Erik
2001-03-15 18:14:25 +00:00
Mark Whitley
40e5e7c7ea
Applied patch from Christophe Boyanique to add an egrep alias for grep.
2001-03-14 17:45:45 +00:00
Eric Andersen
2b1c367a98
Amazing the difference between an "and" and an "or".
2001-03-14 01:36:52 +00:00
Eric Andersen
c319601db5
Some updates for libc5
2001-03-14 01:15:06 +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
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
Manuel Novoa III
22b889a998
Adjust ifconfig usage message for selected options and current functionality.
2001-03-12 09:58:51 +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
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
450736cd3c
Added Magnus Damm's tftp applet to Busybox.
2001-03-02 19:08:50 +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
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
Eric Andersen
dc12190ba2
The usage message for syslogd had stuff longer then 80 chars and wrapped.
2001-02-24 18:52:36 +00:00
Eric Andersen
3757f98d86
Another usage cleanup from kent robotti
2001-02-23 17:47:51 +00:00
Eric Andersen
7a9cc2dcdd
More cleanups
2001-02-23 16:58:44 +00:00
Eric Andersen
ed0d958c3e
Make HUMAN_READABLE be single argument like the others.
2001-02-23 13:23:03 +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
David Kimdon
56082dc2ae
space after \ make preprocessor sad
2001-02-23 06:03:22 +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
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
4b2e69a1cf
Commit a few updates to the usage messages.
2001-02-22 23:32:59 +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
3d20f772c2
A bunch of usage clenups from kent robotti <robotti@metconnect.com>
...
-Erik
2001-02-17 16:49:00 +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
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
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
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
c30ab0f4a8
New applet: dpkg
2001-02-10 02:04:40 +00:00
Matt Kraai
a164c647ac
Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.
2001-02-05 17:50:03 +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
ed3ef50c23
Fix header file usage -- there were many unnecessary header files included in
...
busybox.h which slowed compiles. I left only what was needed and then fixed up
all the apps to include their own header files. I also fixed naming for pwd.h
and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc.
-Erik
2001-01-27 08:24:39 +00:00
Eric Andersen
ab050f5522
Add in a patch to make busybox use the normal pwd.h and grp.h
...
functions. Add in simple implementations of these functions,
which can, optionally, be used instead of the system versions.
-Erik
2001-01-27 06:01:43 +00:00
Eric Andersen
d35c21587a
Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.
...
-Erik
2001-01-25 23:49:09 +00:00
Eric Andersen
ffde8673fe
Add in spoon's watchdog timer app.
...
-Erik
2001-01-25 23:40:32 +00:00
Richard June
6d0921cc0b
Add HUMAN_READABLE define for -m and -h support in du, df, and ls
...
Add support for -k in du, df, and ls(no define, it's for compatibliity with the GNU utils as bb does -k by default)
Fix bug #1084
2001-01-22 22:35:38 +00:00
Glenn L McGrath
7541e3a812
add dpkg-deb command
2001-01-02 23:41:50 +00:00
Eric Andersen
01bda5de6b
Better dmalloc handling
2001-01-02 01:16:38 +00:00
Matt Kraai
a1f9775981
Fix tar handling of absolute paths and excluded directories.
2000-12-19 06:24:08 +00:00
Matt Kraai
24ac017961
Rewrote dd.
2000-12-18 21:38:57 +00:00
Matt Kraai
bfa7967c4a
Rewrite nc to be simpler, smaller, and to check syscalls for errors.
2000-12-15 22:34:34 +00:00
Mark Whitley
f57c944e09
Changed names of functions in utility.c and all affected files, to make
...
compliant with the style guide. Everybody rebuild your tags file!
2000-12-07 19:56:48 +00:00
Mark Whitley
ab147f608d
Removed isBlank and isWildCard macros that were totally unused (should anyone
...
need isBlank, please use isblank() in ctype.h). Converted isDecimal and
isOctal into inline functions. Compiled, tested, worked.
2000-12-05 20:42:48 +00:00
Mark Whitley
4758368505
Fixed the comments to match the code and renamed the function to a (hopefully)
...
more descriptive name, and as per the style guide.
2000-12-05 20:03:17 +00:00
Eric Andersen
2187adc619
Flag day warning!
...
Change TRUE and FALSE defines to normal C style TRUE=1, FALSE=0.
-Erik
2000-12-04 20:31:45 +00:00
Eric Andersen
868c057d25
Patch from Larry Doolittle so it will build the newdocs right.
2000-12-02 00:44:48 +00:00
Eric Andersen
87559829ff
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
...
so no point acting like we do.
2000-12-01 19:02:24 +00:00
Eric Andersen
8c725e624a
Patch from Larry Doolittle (with minor touchups from me so everything compiles
...
and works) to use the applet definitions in applets.h to autogenerate the applet
function and usage prototypes.
2000-11-30 00:27:06 +00:00
Eric Andersen
e500d20835
Apply a patch fromkent robotti:
...
Renamed unrpm to original rpmunpack, so you can use an included shell script
called unrpm as a front end to it.
There's also a shell script called undeb included for debian packages.
Change undeb and unrpm scripts to work with the busybox tar and gunzip.
2000-11-29 21:38:11 +00:00
Eric Andersen
a683ee81d9
"I will always compile before I commit."
...
"I will always compile before I commit."
"I will always compile before I commit."
-Erik
2000-11-17 18:51:45 +00:00
Eric Andersen
e5aef92e22
Fix up builtin overrides, and hack in the binary search for finding
...
matching applets into the shell.
2000-11-17 18:25:26 +00:00
Matt Kraai
ef5529b278
Added a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSE
...
uses, and other minor fixes.
2000-10-25 17:00:36 +00:00
Matt Kraai
324a778f31
Added a fatalPerror function to simplify error handling.
2000-10-25 15:10:08 +00:00
Mark Whitley
130005cd89
Applied patch from Gaute B Strokkenes <gs234@cam.ac.uk> to use a binary search
...
to locate applets, rather than a linear search. Also, broke out the listing of
applets into it's own file: applets.h.
2000-10-25 00:28:27 +00:00
Mark Whitley
6050618096
Put getopt_usage where it belongs and added *_usage entries in busybox.[ch]
2000-10-19 22:28:06 +00:00
Mark Whitley
872138de50
Added cmp and readlink applets from Matt Kraai.
2000-10-09 18:56:47 +00:00
Matt Kraai
c0321f9bc6
Rewrote head to perservere when it can't open a file, and share code
...
with cat.
2000-09-27 04:09:22 +00:00
Matt Kraai
e0bcce09ba
Rewrote uniq to be less than a third of the size, and fixed some other
...
minor problems.
2000-09-27 02:29:39 +00:00
Eric Andersen
f6b7139971
Add in busybox.h. I renamed it, and forgot to commit the newky named version.
...
-Erik
2000-09-26 01:09:18 +00:00