Bernhard Reutner-Fischer [Thu, 29 Dec 2005 16:53:47 +0000 (16:53 -0000)]
- use HOSTCC instead of a hardcoded cc
"Vladimir N. Oleynik" [Mon, 26 Dec 2005 17:26:59 +0000 (17:26 -0000)]
remove buffer overflow by Erik and decodeString problem by Glenn, add error check of decodeString as Apache
Rob Landley [Wed, 21 Dec 2005 17:00:25 +0000 (17:00 -0000)]
When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.
Rob Landley [Wed, 21 Dec 2005 16:53:57 +0000 (16:53 -0000)]
Trying to losetup a device as a regular user shouldn't result in an endless
loop, and the error messages should display correctly now.
Rob Landley [Wed, 21 Dec 2005 16:33:41 +0000 (16:33 -0000)]
Second attempt to simplify the login menu. Shadow password stuff at the top,
with no dependencies (since depending on 9 of the 13 apps in the menu gets
a bit silly). And fix my attempt to make internal shadow password support
automatically depend on internal password support plus shadow password
support.
Bernhard Reutner-Fischer [Wed, 21 Dec 2005 15:07:30 +0000 (15:07 -0000)]
- fix check for group and user, remove some whitespace while at it.
Rob Landley [Tue, 20 Dec 2005 17:25:51 +0000 (17:25 -0000)]
Fix chroot, leave console alone if -c not specified, and yank debug code.
(I still haven't set up a test environment to confirm this works...)
Rob Landley [Tue, 20 Dec 2005 17:18:01 +0000 (17:18 -0000)]
Some minor cleanups/bugfixes split off from the big remount work:
Shorten GPL boilerplate.
Enabling FEATURE_CLEAN_UP broke things in two places.
Move the NFS with uClibc check to nfsmount.c
Rob Landley [Tue, 20 Dec 2005 15:25:25 +0000 (15:25 -0000)]
Shadow password support went beyond the dependency event horizon, just make
it an independent menu. And make internal shadow password support a subset
of the other internal password function support.
Rob Landley [Tue, 20 Dec 2005 15:23:20 +0000 (15:23 -0000)]
Actually, static buffers look like _this_...
"Vladimir N. Oleynik" [Tue, 20 Dec 2005 11:02:54 +0000 (11:02 -0000)]
remove debug feature for production
Rob Landley [Mon, 19 Dec 2005 16:30:33 +0000 (16:30 -0000)]
Make a few warnings go away.
Rob Landley [Mon, 19 Dec 2005 16:29:19 +0000 (16:29 -0000)]
Do an svn log -v, the information in this changelog is stunningly
obsolete.
Rob Landley [Mon, 19 Dec 2005 02:52:48 +0000 (02:52 -0000)]
Shadow password support involves vlock too.
Rob Landley [Mon, 19 Dec 2005 02:50:10 +0000 (02:50 -0000)]
Patch from Tito to make vlock much smaller.
Rob Landley [Sun, 18 Dec 2005 20:34:41 +0000 (20:34 -0000)]
strncmp isn't automatically superior to strcmp. Especially when it isn't
used right.
Rob Landley [Sat, 17 Dec 2005 10:54:17 +0000 (10:54 -0000)]
Sigh. Left the debug path in. Fixed.
Rob Landley [Sat, 17 Dec 2005 10:52:30 +0000 (10:52 -0000)]
Added /etc/mdev.conf support. Adds about 1.9k to mdev.
Rob Landley [Fri, 16 Dec 2005 21:33:10 +0000 (21:33 -0000)]
Bug 601: When we fork an archiver and feed stuff to it through a pipe, if
we don't close the pipe the child process won't exit, and we'll hang in
waitpid().
Rob Landley [Fri, 16 Dec 2005 08:03:34 +0000 (08:03 -0000)]
Ahem. Vladimir checked in a different fix bug didn't close out the bug.
Reverting...
Rob Landley [Fri, 16 Dec 2005 08:02:11 +0000 (08:02 -0000)]
Less would segfault if it had no tty. (Bug 600.)
Rob Landley [Fri, 16 Dec 2005 06:18:06 +0000 (06:18 -0000)]
I screwed up the last commit: if dt is null when ENABLE_MULTIPLE_OPTIONS is
off, we'd dereference the null. Oops.
Rob Landley [Fri, 16 Dec 2005 06:12:46 +0000 (06:12 -0000)]
Stephane Billiart said:
the attached patch makes applet list in busybox.links
correctly include tr and watchdog.
Currently, they don't appear because they are prefixed
with ENABLE_ in include/applets.h
"Vladimir N. Oleynik" [Thu, 15 Dec 2005 12:01:49 +0000 (12:01 -0000)]
sync license from mainstream
"Vladimir N. Oleynik" [Thu, 15 Dec 2005 11:53:22 +0000 (11:53 -0000)]
fopen(TTY...) to bb_xfopen(), close bug 600
Bernhard Reutner-Fischer [Thu, 15 Dec 2005 11:47:16 +0000 (11:47 -0000)]
- Stephane Billiart writes:
Fix the compilation of head and tail.
thanks!
Bernhard Reutner-Fischer [Thu, 15 Dec 2005 11:44:31 +0000 (11:44 -0000)]
- remove duplicate entry for switch_root
Rob Landley [Thu, 15 Dec 2005 08:04:17 +0000 (08:04 -0000)]
Add a fflush(stdout).
Rob Landley [Thu, 15 Dec 2005 07:42:13 +0000 (07:42 -0000)]
Better use of the ENABLE guards.
Rob Landley [Thu, 15 Dec 2005 07:25:54 +0000 (07:25 -0000)]
The rest of Yann E. Morin's install revamp.
Rob Landley [Thu, 15 Dec 2005 06:51:52 +0000 (06:51 -0000)]
Eliminate unnecessary allocation from md5sum that was leaked without ever being used.
Rob Landley [Thu, 15 Dec 2005 05:42:55 +0000 (05:42 -0000)]
Fix -g and -p options. Patch from Traceman. (I don't know who that is,
it's the darn bug generator again.)
Rob Landley [Thu, 15 Dec 2005 05:29:48 +0000 (05:29 -0000)]
Patch from dlively (whoever that is, see bug 591) to fix
"ip link set <dev> addr".
Bernhard Reutner-Fischer [Wed, 14 Dec 2005 14:13:15 +0000 (14:13 -0000)]
- several functions depend on IPv4 or IPv6 od IPX support.
removes warning about unused code for allbareconfig.
Bernhard Reutner-Fischer [Wed, 14 Dec 2005 08:32:44 +0000 (08:32 -0000)]
- remove warning (thanks Yann E. MORIN) and switch to ENABLE_
- typo: s/begining/beginning/g
"Vladimir N. Oleynik" [Tue, 13 Dec 2005 13:24:23 +0000 (13:24 -0000)]
remove sigsetmask, noticed by Bernhard
Bernhard Reutner-Fischer [Tue, 13 Dec 2005 11:52:46 +0000 (11:52 -0000)]
- check if CC supports -funsigned-char
- add CC_MAJOR and CC_MINOR variables. (gcc centric for now)
Bernhard Reutner-Fischer [Tue, 13 Dec 2005 10:48:45 +0000 (10:48 -0000)]
- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warning
about unused label.
Bernhard Reutner-Fischer [Tue, 13 Dec 2005 10:28:25 +0000 (10:28 -0000)]
- do away with superfluous keyword.
"Vladimir N. Oleynik" [Tue, 13 Dec 2005 08:44:41 +0000 (08:44 -0000)]
remove strange bloat dup2() usage, sync this code with mainstream login-utils, size reduce
Rob Landley [Tue, 13 Dec 2005 08:21:33 +0000 (08:21 -0000)]
Nothing to see here. Move along.
Not buying it, eh?
I know I said new features before 1.1, but, well... (I was weak!)
The config file and hotplug modes aren't implemented yet. Might take a stab at
those tomorrow. (I _should_ go back to focusing on the bug triage list.)
Rob Landley [Tue, 13 Dec 2005 04:06:22 +0000 (04:06 -0000)]
Minor fix: if(CONFIG) breaks the build when that CONFIG is disabled, it has
to be if(ENABLE). (Make allbareconfig is a good testing thing.)
Rob Landley [Mon, 12 Dec 2005 19:38:44 +0000 (19:38 -0000)]
Patch from Yann E. Morin, something to do with bugs 276 and 272.
Bernhard Reutner-Fischer [Mon, 12 Dec 2005 11:20:39 +0000 (11:20 -0000)]
- typo: s/sucess/success/g
What's up with loginutils/su.c line 42: "SYSLOG_SUCESS" ? Please have a look..
Bernhard Reutner-Fischer [Mon, 12 Dec 2005 10:21:35 +0000 (10:21 -0000)]
- fix zcip for IMA compile mode.
rename usage() to zcip_usage, make struct arp_packet static. This applet is
not ISO C89 compatible due to the use of C99-style comments ("c++ comments).
Rob Landley [Mon, 12 Dec 2005 07:04:59 +0000 (07:04 -0000)]
Flush output to log promptly (bug 389).
Rob Landley [Mon, 12 Dec 2005 07:02:15 +0000 (07:02 -0000)]
Flush input when prompting for a password (bug 373).
Rob Landley [Mon, 12 Dec 2005 06:58:53 +0000 (06:58 -0000)]
Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally
modifying permissions or ownership when twiddling symlinks.
Rob Landley [Mon, 12 Dec 2005 06:52:45 +0000 (06:52 -0000)]
Uninitialized variable causing intermittent syntax errors (bug 449).
Rob Landley [Mon, 12 Dec 2005 06:49:33 +0000 (06:49 -0000)]
printf() arguments shouldn't be passed straight from user supplied data.
(Security thingy.)
Rob Landley [Mon, 12 Dec 2005 04:28:17 +0000 (04:28 -0000)]
Change CONFIG_MODPROBE_MULTIPOLE_OPTIONS to
CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS.
Rob Landley [Sun, 11 Dec 2005 20:20:05 +0000 (20:20 -0000)]
Patch from Yann E. Morin to reorganize module config options.
Rob Landley [Sun, 11 Dec 2005 20:14:12 +0000 (20:14 -0000)]
Make insmod quiet by default (patch from Yann E. Morin).
Rob Landley [Sun, 11 Dec 2005 20:12:24 +0000 (20:12 -0000)]
Yann E. Morin's update to modprobe usage.
Rob Landley [Sun, 11 Dec 2005 19:46:50 +0000 (19:46 -0000)]
Patch from Yann E. Morin to make rmmod report failure properly.
Glenn L McGrath [Sun, 11 Dec 2005 03:09:05 +0000 (03:09 -0000)]
Add build options to control SuS compatability, allows numeric
option handling to be disabled.
Defaults to enabled, so no changes in default behaviour
Bernhard Reutner-Fischer [Sat, 10 Dec 2005 20:13:54 +0000 (20:13 -0000)]
- remove unused variable have_read_stdin
- use FLAG_WIDTH
Paul Fox [Thu, 8 Dec 2005 18:48:20 +0000 (18:48 -0000)]
avoid mixed declarations, to support older compilers just a little longer.
Rob Landley [Wed, 7 Dec 2005 23:17:28 +0000 (23:17 -0000)]
Macro was wrong, name(void) vs name(x), and apparently gcc 2.95 cares about
matching up macro arguments even when the macro substitutes to nothing...
Rob Landley [Wed, 7 Dec 2005 22:45:28 +0000 (22:45 -0000)]
uClibc can't handle anonymous MAP_SHARED. Since we're treating it as
read only data anyway, MAP_PRIVATE shouldn't make a major difference.
Rob Landley [Tue, 6 Dec 2005 22:48:29 +0000 (22:48 -0000)]
Tito is using broken kernel headers that pollute the namespace with every
CONFIG_ symbol in the kernel, and this clashes with busybox's CONFIG_TR
and CONFIG_WATCHDOG, causing applets.h to barf if they're not switched
on (since the broken headers don't affect kconfig or the makefiles).
Since such broken kernel headers are common enough to crop up every few
months, a simple work around is to move TR and WATCHDOG from CONFIG_
to ENABLE_ early.
"Vladimir N. Oleynik" [Tue, 6 Dec 2005 12:20:57 +0000 (12:20 -0000)]
reduce 3 warning if compile with -W
"Vladimir N. Oleynik" [Tue, 6 Dec 2005 12:00:39 +0000 (12:00 -0000)]
restore compare_string_array new interface (make broken by landley)
Rob Landley [Fri, 2 Dec 2005 18:27:39 +0000 (18:27 -0000)]
Install links patch from Yann E. Morin. (Another thing hanging around in my
tree forever. Tweaked the docs a bit.)
Rob Landley [Fri, 2 Dec 2005 17:57:23 +0000 (17:57 -0000)]
If we really _need_ an #ifdef like this, then we should be using the libbb
getopt infrastructure instead.
Rob Landley [Fri, 2 Dec 2005 17:55:45 +0000 (17:55 -0000)]
Another cleanup patch that's been in my tree for a while. Again I think it's
originally from Bernhard Fischer...
Rob Landley [Fri, 2 Dec 2005 17:54:01 +0000 (17:54 -0000)]
A cleanup patch I've had lying around in my tree for a while, I think it
was from Bernhard Fischer?
"Vladimir N. Oleynik" [Fri, 2 Dec 2005 10:10:28 +0000 (10:10 -0000)]
reduce signedness warning
"Vladimir N. Oleynik" [Fri, 2 Dec 2005 10:06:04 +0000 (10:06 -0000)]
reduce signedness warning
"Vladimir N. Oleynik" [Fri, 2 Dec 2005 09:46:04 +0000 (09:46 -0000)]
remove warnings if compile with -W, use ENABLE_FEATURE vs CONFIG_FEATURE
Rob Landley [Thu, 1 Dec 2005 17:01:43 +0000 (17:01 -0000)]
Make char default to "unsigned" on all platforms so we have a consistent base
to deal with all the new gcc 4.0.2 warnings from.
Rob Landley [Tue, 29 Nov 2005 23:47:10 +0000 (23:47 -0000)]
Fix losetup so that it A) actually works again, B) has much better error
messages, C) can show the current association (if any) when called
with only one argument. Update the documentation a lot too.
Remind me to add a test suite for this thing. I think I've figured out
how to handle root-only testsuites...
"Vladimir N. Oleynik" [Tue, 29 Nov 2005 12:32:33 +0000 (12:32 -0000)]
getopt -> getopt_ulflags. noticed by Rob Sullivan
Mike Frysinger [Tue, 29 Nov 2005 02:53:52 +0000 (02:53 -0000)]
update license
Mike Frysinger [Tue, 29 Nov 2005 02:52:25 +0000 (02:52 -0000)]
ShaneAnderson writes in Bug 565:
need to include .config file before setting CROSS otherwise
TARGET_ARCH isnt set properly
Paul Fox [Mon, 28 Nov 2005 21:06:00 +0000 (21:06 -0000)]
add "-C" format to hexdump
fixes bug #113 and satisfies a personal need at the same time.
output compares identically to util-linux version. (with
exception of whitespace differences on last lines of output with
non-uniform length, which are neither fixed nor worsened by this
change.)
Paul Fox [Mon, 28 Nov 2005 18:07:53 +0000 (18:07 -0000)]
fix bug #474:
0000474: vi crashes often
problem was that the buffer used for "." command ("last_modifying_cmd")
wasn't being maintined correctly -- the recording code was walking back
over the front of that buffer when a repeatable insert command
included backspacing (e.g. "i\b\b\bfoo"). the fix is to simply
record the backspaces along with the rest of the command.
also, cleaned up start_new_cmd_q() slightly.
Paul Fox [Mon, 28 Nov 2005 16:29:45 +0000 (16:29 -0000)]
eliminate mixed declaration, to support older compilers a little longer.
"Vladimir N. Oleynik" [Mon, 28 Nov 2005 15:54:22 +0000 (15:54 -0000)]
use libbb/get_kernel_revision(), reduce stack usage, add loses -w -f option for getopt, convert to bb_getopt_ulflags(), reduce memory usage - xmalloc to bb_common_bufsiz1, size reduce over 200 bytes
Rob Landley [Sun, 27 Nov 2005 19:01:53 +0000 (19:01 -0000)]
Patch from Cristian Ionescu-Idbohrn to deal with _ vs - better.
"Vladimir N. Oleynik" [Sat, 26 Nov 2005 11:01:23 +0000 (11:01 -0000)]
remove bug: fsck do not know path
"Vladimir N. Oleynik" [Sat, 26 Nov 2005 10:45:26 +0000 (10:45 -0000)]
change the interface of libbb/compare_string_array (unsigned short to int), usaging for e2fsprogs/fsck
"Vladimir N. Oleynik" [Sat, 26 Nov 2005 10:33:55 +0000 (10:33 -0000)]
more use const for interface of libbb/compare_string_array, example usage for e2fsprogs/fsck
"Vladimir N. Oleynik" [Fri, 25 Nov 2005 11:36:36 +0000 (11:36 -0000)]
more use libbb/bb_msg_read_error
"Vladimir N. Oleynik" [Thu, 24 Nov 2005 12:10:13 +0000 (12:10 -0000)]
reduce bss
Rob Landley [Wed, 23 Nov 2005 04:55:02 +0000 (04:55 -0000)]
Update to modprobe usage from Yann E. Morin
Rob Landley [Tue, 22 Nov 2005 17:09:14 +0000 (17:09 -0000)]
Can't store a pointer in an int on 64 bit platforms.
Rob Landley [Tue, 22 Nov 2005 07:52:54 +0000 (07:52 -0000)]
Move interface.c to networking directory since it's only used by ifconfig.
Rob Landley [Sun, 20 Nov 2005 07:44:35 +0000 (07:44 -0000)]
Support # comments after s/// option list.
Mike Frysinger [Tue, 15 Nov 2005 05:53:00 +0000 (05:53 -0000)]
Quote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marinkovic in Bug 544
Rob Landley [Tue, 15 Nov 2005 00:08:29 +0000 (00:08 -0000)]
Yann Morin's modprobe multiple options patch. There's more work to be done,
but let's ship 1.1 first...
Rob Landley [Sat, 12 Nov 2005 11:04:11 +0000 (11:04 -0000)]
My last change to this file broke tar x. Sigh. (Trying to make sure we work
on file sizes between 2 and 4 gigs on 32 bit machines. For supporting >4 gigs,
just use a 64 bit machine already...)
Rob Landley [Sat, 12 Nov 2005 02:54:06 +0000 (02:54 -0000)]
I noticed that "tar tvjf file.tbz" was segfaulting. This fixed it.
Rob Landley [Thu, 10 Nov 2005 22:37:40 +0000 (22:37 -0000)]
telnetd -b (bind to specific address) support from Iuri Gomes Diniz.
Rob Landley [Thu, 10 Nov 2005 06:26:40 +0000 (06:26 -0000)]
Ok, I've converted the contents of the "testing/sed" directory into a
sed.tests file. My brain hurts now. (Lots of boggling at sed minutiae and
corner cases and going "why is gnu giving that output". The behavior of N
and n with regard to EOF are only understandable if you read the Open Group
spec, not if you read the sed info page, by the way...)
Some of the existing sed tests are just nuts. For example, sed-next-line is
testing for our behavior (which is wrong), and would fail if run against gnu
sed (which was getting it right. Again, this was a spec-boggling moment,
with much head scratching. I've got to add a debug mode where the stuff
output by the p command is a different color from the stuff output by normal
end of script printing (when not suppressed by -n).)
As for sed-handles-unsatisifed-backrefs: what is this test trying to _do_? I
ran it against gnu sed and got an error message, and this behavior sounds
perfectly reasonable. (It _is_ an unsatisfied backref.) The fact we
currently ignore this case (and treat \1 as an empty string) isn't really
behavior we should have a test depend on for success.
The remaining one is sed-aic-commands, which is long and complicated. I'm
trying to figure out if I should chop this into a number of smaller tests, or
if having one big "does-many-things" test is a good idea.
In any case, the _next_ step is to go through the Open Group standard and
make tests for every case not yet covered. (And there are plenty. There
are few comments in the file already.) Plus I have notes about corner
cases from development that I need to collate and put into here. This file
is maybe the first 1/3 of a truly comprehensive sed test.
Rob
"Vladimir N. Oleynik" [Wed, 9 Nov 2005 09:19:29 +0000 (09:19 -0000)]
change osbolete sigpause() to sigsuspend()
Rob Landley [Tue, 8 Nov 2005 00:52:31 +0000 (00:52 -0000)]
Patch from Tomasz Mateja: don't try to CWD to a _filename_, just send the full
path to the STOR command.
Rob Landley [Mon, 7 Nov 2005 09:06:34 +0000 (09:06 -0000)]
It was a bit out of date.
Rob Landley [Mon, 7 Nov 2005 08:50:53 +0000 (08:50 -0000)]
Fix the test suite so that individual *.tests files can be run ala
COMMAND=sort ./sort.tests
So we can compare against non-busybox versions, and possibly our testsuite
will be useful to somebody like the Linux Test Project someday.
Redid testing.sh to add new command, "optional", to skip tests that require
certain features. (use: `optional FEATURE_SORT_BIG`, or `optional ""` to
stop skipping.) Note that optional is a NOP if the environment variable
"OPTIONFLAGS" is blank, so although we're marking up the tests with busybox
specific knowledge, it doesn't interfere with running the tests without
busybox.
Moved setting the "OPTIONFLAGS" environment variable to runtest. Philosophy:
busybox-specific stuff belongs in runtest; both testing.sh and the tests
themselves should be as busybox-agnostic as possible.
Moved detecting that a command isn't in busybox at all (hence skipping the
entire command.tests file) to runtests. Rationale: optional can't currently
test for more than one feature at a time, so if we clear anything with
optional "" we might perform tests we don't want to.
Marked up busybox.tests to know which tests need CAT enabled. Fixed up other
tests to be happy with new notation.
I suspect egrep should be appended to grep. It's a sub-feature, really...
Rob Landley [Sun, 6 Nov 2005 23:37:47 +0000 (23:37 -0000)]
Yann E. Morin pointed out that rpcsvc/nfs_prot.h isn't needed with any
reasonably recent glibc, and breaks with uClibc. So yank it.