d9768d7cb9
Disable debugging
Glenn L McGrath
2002-08-21 11:44:31 +00:00
1ff58b6570
Clean up udhcpd a bit. Constify. Staticize. Remove these functions and inline their contents: print_usage, pidfile_delete, and background.
Aaron Lehmann
2002-08-21 11:21:19 +00:00
8eb0dc1d10
New applet, udhcp client
Glenn L McGrath
2002-08-21 10:27:58 +00:00
3d184586a7
Fix dietlibc test condition
Glenn L McGrath
2002-08-15 03:29:56 +00:00
938e982c4d
Try to be a bit more dietlibc friendly
Eric Andersen
2002-08-13 09:57:44 +00:00
1d23f3a492
Enable support for the old tar header format, enable via menu's
Glenn L McGrath
2002-08-13 05:06:43 +00:00
6069441bd2
minor fixes for fbset bloat
Aaron Lehmann
2002-08-13 04:19:23 +00:00
91a0aac110
Added Familiar Linux to the projects list
Robert Griebl
2002-08-09 22:54:39 +00:00
2ab6ff95e0
Patch from Rusell Nelson to document the -C switch for syslogd
Robert Griebl
2002-08-07 21:24:33 +00:00
65d415d847
Added a help text for the -C option to syslogd
Robert Griebl
2002-08-07 21:10:19 +00:00
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)
Robert Griebl
2002-08-06 23:13:31 +00:00
7940147e25
Added the \CregexpC syntax as an alternative for /regexp/ (like GNU sed)
Robert Griebl
2002-08-06 21:07:17 +00:00
edcac5572f
Fix silly typo. addgroup was using /etc/shadow for /etc/gshadow.
Manuel Novoa III
2002-08-06 20:39:23 +00:00
f8277ca992
Move #define MAXLINE so this compiles without circ buffers.
Manuel Novoa III
2002-08-06 20:12:56 +00:00
74b007f7cc
Oops. Code things so it actually works this time around... -Erik
Eric Andersen
2002-08-05 11:56:25 +00:00
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.
Eric Andersen
2002-08-05 11:14:30 +00:00
6859d761d3
- updated a few copyright/left file headers - documented most of my 0.61 changes in the ChangeLog
Robert Griebl
2002-08-05 02:57:12 +00:00
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)
Robert Griebl
2002-08-03 14:49:03 +00:00
49c024addd
Remove ckfree, and replace all references with free. Remove freefunc, which is also equivilent to free. Remove some if(x)free(x) redundancies.
Aaron Lehmann
2002-08-02 06:39:47 +00:00
e85dbfdd80
Joseph Chiu <josephc@idealab.com> found an off-by-one bug. oops!
Eric Andersen
2002-08-01 01:31:17 +00:00
a71389bfe8
Applied a patch from Philip Blundell <pb@nexus.co.uk>: Added support for ":x" as an alias for ":wq" to vi
Robert Griebl
2002-07-31 21:22:21 +00:00
7373e485d3
A couple of small bugfixes from Marshall M. Midden <m4@brecis.com>
Eric Andersen
2002-07-31 04:04:47 +00:00
87715170cc
Be more portable with 'find' for those that prefer programming on *BSD, etc. Formatting fixes, etc.
Eric Andersen
2002-07-31 03:45:05 +00:00
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
Robert Griebl
2002-07-30 23:13:51 +00:00
df03932b7e
Added the -I (isofmt) options to date, which comes in handy for scripts (this is a confiureable option)
Robert Griebl
2002-07-30 23:11:00 +00:00
70112da81a
Fixed a bug that I had introduced with the new "options" handling.
Robert Griebl
2002-07-29 20:28:38 +00:00
e707806894
Kill a silly warning
Eric Andersen
2002-07-29 08:00:16 +00:00
3bc2b206b0
Patch from Tim Riker to allow tty* in inittab if the tty actually exists -- serial console is not the issue...
Eric Andersen
2002-07-29 06:39:58 +00:00
aead70b4d1
modprobe now also uses "options" from /etc/modules.conf
Robert Griebl
2002-07-26 15:54:20 +00:00
d0dd3d31e2
Fix for bug #1255 -- support for mount -t <type>
Robert Griebl
2002-07-25 14:17:19 +00:00
2a4a8d8ffb
Add support for /etc/filesystem when searching for an "auto" filesystem This is bug #1246
Robert Griebl
2002-07-24 01:41:30 +00:00
31a2e20bd3
Commited patch from bug #1182 Although ssrat@mailbag.com says this is not GNU behaviour, it really *is* (man nslookup)
Robert Griebl
2002-07-24 00:56:56 +00:00
41369af3f2
Patch for bug #1183: Added a -xdev option to find (configurable)
Robert Griebl
2002-07-24 00:34:48 +00:00
80cd3cfdbc
Fix indentation. Support killall -q, for pcmcia-cs -Erik
Eric Andersen
2002-07-23 23:45:11 +00:00
f2f26e7fdd
Added tar -cz support (creating gzipped tar files without a gzip pipe)
Robert Griebl
2002-07-23 22:05:47 +00:00
967c3d4406
Fixed two compiler warnings
Robert Griebl
2002-07-21 17:33:27 +00:00
1cd0445495
Initial checkin of a very primitive hwclock replacement
Robert Griebl
2002-07-21 16:50:49 +00:00
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.
Robert Griebl
2002-07-19 20:52:21 +00:00
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.
Robert Griebl
2002-07-19 20:27:11 +00:00
d378c3149c
Applied vodz' patches #49 and #50 (with a small correction in runshell.c)
Robert Griebl
2002-07-19 00:05:54 +00:00
88947dd05e
Added a compile time option to suppress the "Using fallback.." message if no busybox.conf file is existant.
Robert Griebl
2002-07-18 23:59:17 +00:00
2c0d0f0051
Fix for the totally broken adduser applet (parts/ideas from vodz and tito)
Robert Griebl
2002-07-16 23:50:05 +00:00
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)
Robert Griebl
2002-07-16 21:53:59 +00:00
0fe3e62e2c
Doh!
Eric Andersen
2002-07-14 15:39:05 +00:00
d2fd0d5869
Better clarify the CVS tree situation -Erik
Eric Andersen
2002-07-13 06:24:58 +00:00
acc257e994
Try to be more clear about the current two-CVS-trees situation. -Erik
Eric Andersen
2002-07-13 06:08:39 +00:00
e8fcf4bd69
Accept the --passive-ftp cmd.line option. We always use passive ftp mode, so it doesn't hurt (adds compatibility though)
Robert Griebl
2002-07-12 00:04:46 +00:00
2276d83639
Fixup warnings and undefined operations that show up in gcc-3.1 -Erik
Eric Andersen
2002-07-11 11:11:56 +00:00
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
Eric Andersen
2002-07-11 10:40:43 +00:00
1785ddcae2
Some minor bits of scrubbing
Eric Andersen
2002-07-08 01:40:02 +00:00
0826b6b0b3
This is last_patch48 from vodz. More cleanups, kills a bit of dead code, fixes one blatent bug.
Eric Andersen
2002-07-03 23:50:16 +00:00
887ca79f04
Scrub pwd.h and grp.h handling so we don't have to play any silly games. -Erik
Eric Andersen
2002-07-03 23:19:26 +00:00
360e254954
tito <farmatito@tiscali.it> noticed that delgroup was actually setting CONFIG_DELUSER. Oops.
Eric Andersen
2002-07-03 19:50:23 +00:00
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!
Eric Andersen
2002-07-03 11:51:44 +00:00
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!
Eric Andersen
2002-07-03 11:46:38 +00:00
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.
Eric Andersen
2002-07-03 11:08:10 +00:00
935daf2d0d
hide shadow using stuff when CONFIG_FEATURE_SHADOWPASSWDS is not set -Erik
Eric Andersen
2002-07-03 09:13:21 +00:00
7f90ed4460
Patch from Martin Volf <volf@dragon.cz> to fix where I had screwed up the usage messages
Eric Andersen
2002-07-03 05:55:14 +00:00
796446718d
Fix from vodz so that complex init commands actually work
Eric Andersen
2002-07-03 05:44:18 +00:00
5222d31a15
Patch from till busch <buti@gmx.at> -- unblock all signals in exec_signal() before calling exec()
Eric Andersen
2002-07-03 05:15:23 +00:00
549df2ebc3
Fix text alignment, thanks to Sander Klein <s.klein@quicknet.nl>
Eric Andersen
2002-07-03 04:54:52 +00:00
7234c3a0b6
Cleanup shadow.h stuff so it behaves as intended -Erik
Eric Andersen
2002-07-03 04:47:43 +00:00
009ae1f17d
Little fix to avoid overflow
Eric Andersen
2002-07-03 04:24:08 +00:00
abc9568690
Silly spelling fix -Erik
Eric Andersen
2002-07-03 02:52:35 +00:00
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
Eric Andersen
2002-07-02 19:14:23 +00:00
69d4178708
Remove advertising clauses in accordance with ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
Aaron Lehmann
2002-06-23 22:25:24 +00:00
9031481ac3
inline many functions that are only called once. saves about 300 bytes on i386. also staticify most functions.
Aaron Lehmann
2002-06-23 22:13:22 +00:00
8c26fbe537
remove cleanUpAndFail, and replace it with exit(). because that's what it does unless srcMode was set, and srcMode is never set.
Aaron Lehmann
2002-06-23 21:56:13 +00:00
5b0f9e417e
Rework optimization code. Be more compiler aware. -Erik
Eric Andersen
2002-06-23 04:50:49 +00:00
27f64e1f4e
Port over the last of the tinylogin applets -Erik
Eric Andersen
2002-06-23 04:24:25 +00:00
0fbff134f4
Several login cleanups from vodz
Eric Andersen
2002-06-22 17:49:29 +00:00
b0c39a8a8d
Apply vodz' last_patch44 -- cleanup several chars to be const, fix rotten error handling, kill spare \n's, etc
Eric Andersen
2002-06-22 17:32:58 +00:00
3ece93ba0f
Kill dead email address -Erik
Eric Andersen
2002-06-22 17:23:45 +00:00
8b1aa4d749
Apply last_patch46 from vodz, to fix buffer overflows noted by Gerardo Puga, and to optimize for size a little bit. Thanks vodz
Eric Andersen
2002-06-22 17:20:50 +00:00
61f83059c1
Apply vodz' cleanup for insmod buffer overflows, which was cleaner than my first effort.
Eric Andersen
2002-06-22 17:15:42 +00:00
9f92d5f2a2
Major revamp. I've been trying to clean up the code. the bzerror stuff still needs major attention (i.e. removal).
Aaron Lehmann
2002-06-22 06:35:29 +00:00
2d34215456
As noted by Yves Lavoie ing. <yves.lavoie.ing@sympatico.ca>, don't lose the last letter of the module name.
Eric Andersen
2002-06-18 05:16:25 +00:00
b0fd2b06a3
Fix a potential macro expansion problem... isspace can be a macro causing a double decrement...
Eric Andersen
2002-06-15 14:37:46 +00:00
a7d0b41c08
Don't use pointless GNU-isms
Eric Andersen
2002-06-15 14:33:06 +00:00
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.
Robert Griebl
2002-06-11 23:43:27 +00:00
3ad88ccf2d
* testsuite/sed/sed-recurses-properly: Mark XFAIL.
Matt Kraai
2002-06-11 13:29:08 +00:00
9ef2ea27d4
* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.
Matt Kraai
2002-06-11 13:25:26 +00:00
360060252a
vodz' last_patch42_2, which is an updated fix for buffer overflows noted by Gerardo Puga
Eric Andersen
2002-06-08 12:44:17 +00:00
0c789a4255
If config file can not be parsed, use compiled in BB_SUID_... values as a fallback method
Robert Griebl
2002-06-06 17:30:16 +00:00
fe1ef2bc62
Fix buffer overflows noted by Gerardo Puga -Erik
Eric Andersen
2002-06-06 14:36:07 +00:00
6fb4e4877a
Fix buffer overflows noted by Gerardo Puga -Erik
Eric Andersen
2002-06-06 14:24:57 +00:00
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
Eric Andersen
2002-06-06 12:11:55 +00:00
1a92376f00
Patch from vodz to only setenv PATH when PATH changes, which is much smarter than my quick fix.
Eric Andersen
2002-06-06 12:07:28 +00:00
e90e741b1e
Per discussion with vodz, Tim's changes do not seem to make sense. Revert them. -Erik
Eric Andersen
2002-06-06 11:47:00 +00:00
fc059090b6
last_patch41 from vodz to fix stty -F and similar
Eric Andersen
2002-06-06 11:35:29 +00:00
ff7661d9de
plug fd leak noticed by Russ Dill -Erik
Eric Andersen
2002-06-05 07:11:32 +00:00
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]
Robert Griebl
2002-06-04 20:45:46 +00:00
ea1a63a201
Fix for broken handling off BusyBox's own pwd/grp implementations [Parts of this patch may overlap with my other two patches]
Robert Griebl
2002-06-04 20:10:23 +00:00