Commit Graph

50515 Commits

Author SHA1 Message Date
John Polstra
fa0c86aadc If a directory is world-writable or is not owned by root, skip it
and emit a warning.  This is a security measure since ldconfig
influences the shared libraries used by all programs.

I think the check should be made even more stringent by also
ignoring group-writable directories.  I will make that change soon
unless we encounter a good reason not to do it.

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>
2000-07-26 04:47:17 +00:00
John Baldwin
dc2475c540 Take a lesson from picoBSD: symlink /bin and /sbin to /stand in the mfsroot
and install dhclient-script in stand/.
2000-07-26 04:28:21 +00:00
John Polstra
44a028c369 Revamp the code that calls shared libraries' init and fini functions.
Formerly the init functions were called in the opposite of the
order in which libraries were loaded, and libraries were loaded
according to a breadth-first traversal of the dependency graph.
That ordering came from SVR4.0, and it was easy to implement but
not always sensible.

Now we do a depth-first walk over the dependency graph and call
the init functions in an order such that each shared object's needed
objects are initialized before the shared object itself.  At the
same time we build a list of finalization (fini) functions in the
opposite order, to guarantee correct C++ destructor ordering whenever
possible.  (It may not be possible if dlopen and dlclose are used
in strange ways, but we come as close as one can come.)

The need for this renovation has become apparent as more programs
have started using multithreading.  The multithreaded C library
libc_r requires initialization, whereas the standard libc does not.
Since virtually every other object depends on the C library, it is
important that it get initialized first.
2000-07-26 04:24:40 +00:00
John Baldwin
e8aeec4639 Bump an upper limit test so the xterm termcap selection actually works. 2000-07-26 02:51:47 +00:00
John Baldwin
56b0238f1d Since the XFree86 port builds and installs some extras not found in the
3.3.6 base distribution, some of the packing lists needed hacking so that
they would pack up everything in the right place.  As a result, go ahead and
just add a directory for the packing lists.  These are the i386 packing lists.
2000-07-26 01:39:22 +00:00
John Baldwin
e44bce4159 This script uses the other scripts in this directory to build XFree86
3.3.6 in a work directory and package it up into a set of tarballs that
can be used in a release.
2000-07-26 01:37:23 +00:00
John Baldwin
ca4c7dfbf6 This script takes the packing lists we generated earlier and generates the
corresponding tarball from it.  It uses the packing list name to determine
the tarball name.  If the tarball name ends in 'gz', it will be gzipped, if
it ends in 'bz', it will be bzip2'd.
2000-07-26 01:36:22 +00:00
John Baldwin
62f26f9acd This script uses the XFree86 and XFree86-contrib ports to build and install
XFree86 3.3.6 into a scratch directory.  The patch file patches the XFree86
port to not ask any questions and to actually be able to install some things
like the i810 server link kit bits.  If you want XF86Setup to build, you
should have tk80 (not tk82) installed.  If you want to XF86Setup_jp to build
you need to have ja-tk80 installed.
2000-07-26 01:31:47 +00:00
John Baldwin
1de9415aed This script uses an existing set of XFree86 distribution tarballs to
generate a packing list for each tarball.  We can later use these
packing lists to roll our own tarballs.
2000-07-26 01:27:24 +00:00
Nick Hibma
9d6eda11bc Remove the preliminary support for ATAPI. It does not work and breaks
(physically) IBM Microdrives.
2000-07-26 01:01:01 +00:00
David E. O'Brien
4c2629aec8 Don't give the DEC Alpha user the chance to install the X servers that are
non-existant on non-i386 platforms.
2000-07-25 23:54:35 +00:00
Nick Sayer
b14e438ed8 Change to support vmware... SIOCSIFADDR on the character device
sets the (notional) "remote" ethernet address.

Submitted by:	vsilyaev@mindspring.com
2000-07-25 23:50:30 +00:00
John Baldwin
ab21e668ee Use a much saner method of locating the release directory on an FTP server.
Now, if a release is specified, instead of just looking for a directory
with the same name as the release, try several possible directories (each
suffixed with the release name) relative to the base directory including
".", "releases/MACHINE", "snapshots/MACHINE", and each of those prefixed
with "pub/FreeBSD/".  This will allow us to remove the evil symlinks under
pub/FreeBSD/releases/MACHINE/ to the snapshots on the ftp site.
2000-07-25 23:22:16 +00:00
John Baldwin
edf6db6217 style(9)'ify all the function prototypes by protecting all the parameter
names with a leading underscore.  Notably, the 'stat' parameter in the
kld_stat() prototype conflicted with stat() and generated a BDE warning.

Approved by:	peter
2000-07-25 22:58:52 +00:00
John Baldwin
1596ed11ca Grrr, build a non-crypto version of tcpdump to stick in the bin distribution.
Submitted by:	kris
2000-07-25 22:30:09 +00:00
Mark Murray
d80939f44d Forgot from last commit:
o if the device is being written to, and the user is not root, or
  the securelevel is greater than 0, then fail with EPERM.
2000-07-25 21:22:17 +00:00
Mark Murray
7aa4389a6c o Fix a horrible bug where small reads (< 8 bytes) would return the
wrong bytes.

o Improve the public interface; use void* instead of char* or u_int64_t
  to pass arbitrary data around.
Submitted by:	kris ("horrible bug")
2000-07-25 21:18:47 +00:00
Justin T. Gibbs
f94bf02fdb Properly handle the case where the residual is 0, but, as the target
didn't bother to send a saved data pointers after the last transfer,
is not recorded in sgptr.  This was only a problem if the target
reported non-zero status as we always check the residual in that case.
2000-07-25 20:40:34 +00:00
Warner Losh
c96eb6d2e8 Add -q. this will cause the warning messages about missing
directories to not be printed.  This is from OpenBSD (and I think
NetBSD also) and makes our mtree more compatible with other BSDs.
This makes cross compilation easier than it was before.  Other changes
will be needed to allow NetBSD or OpenBSD to cross build on FreeBSD,
but this is a start.

Reviewed by: andrey
Obtained from: OpenBSD
Concentric Red Circles by: My own stupidity
2000-07-25 19:05:09 +00:00
Archie Cobbs
da010626df Followup to previous commit..
- It's worthwhile to use untimeout(9), even though we must still protect
  against "false" timeouts, because most of the time it saves having to
  handle a dummy timeout event.
- Slight tweaks to the delayed ACK algorithm paramters.
2000-07-25 18:57:20 +00:00
Matthew Dillon
01ba8e704f MFC 1.11.2.3 from -stable to -current 2000-07-25 18:50:22 +00:00
Kirk McKusick
54e53ebda7 Now that buffer locks can be recursive, we need to delete the panics
that complain about them.

Obtained from:	Brian Fundakowski Feldman <green@FreeBSD.org>
2000-07-25 18:28:46 +00:00
Mark Ovens
2abceb0402 Committed, Thanks!!
PR:		20108
Submitted by:	Doug Lee
2000-07-25 16:49:48 +00:00
Jeroen Ruigrok van der Werven
8259bcdff2 Document IPFILTER_DEFAULT_BLOCK.
PR:		20075
Submitted by:	Arjan de Vet <Arjan.deVet@adv.iae.nl>
2000-07-25 15:40:19 +00:00
Dag-Erling Smørgrav
63428824c9 If the server reports the size as 0, treat it as unknown. This works around
a bug in some ftp servers (most notably ftp.vmunix.com) which report the
size of a file correctly in ascii mode, but report it as 0 in binary mode.

Reported by:	asmodai

Also remove an unneeded initialization.
2000-07-25 14:41:02 +00:00
Wilko Bulte
0d58a2010e sync with the RELENG_4 HARDWARE.TXT 2000-07-25 13:15:54 +00:00
Sheldon Hearn
1727cb4cae Fix a bug introduced in rev 1.8, where special files ended up
being treated like regular files because of missing braces.

PR:		20143
2000-07-25 13:01:34 +00:00
Dag-Erling Smørgrav
10851dc4ad Centralize the default port finding code.
Work around YA Apache bug: don't send port in Host: header if it's the
default port.
2000-07-25 11:45:38 +00:00
Hajimu UMEMOTO
8bf72aef7c Workaround to avoid panic during detach pccard nic. 2000-07-25 11:21:01 +00:00
Bill Fumerola
78a40870e5 s%LINT%NOTES%g 2000-07-25 08:25:48 +00:00
Jordan K. Hubbard
b81dd6afa5 Actually make the date printing hack work. 2000-07-25 08:16:10 +00:00
Jordan K. Hubbard
3db81c0d49 Restore the screen after possibly spamming it.
Reported by:	Brian J. McGovern <mcgovern@spoon.beta.com>
2000-07-25 07:38:22 +00:00
Paul Saab
42f6636213 kern_accf.c is now uipc_accf.c after repo copy. 2000-07-25 07:32:15 +00:00
Kirk McKusick
aec3bbe11c Do not need vrele(nd.ni_vp) as that is done by NDFREE(&nd, 0);
Submitted by:	Peter Holm <pho@freebsd.org>
2000-07-25 05:38:54 +00:00
Kirk McKusick
55ba28c60a Add stub for softdep_flushworklist() so that kernels compiled
without the SOFTUPDATES option will load correctly.

Obtained from:	John Baldwin <jhb@bsdi.com>
2000-07-25 05:28:59 +00:00
Kirk McKusick
d56bdab31c Eliminate periodic 'mfs_badop[vop_getwritemount] = 45' messages.
Submitted by:	Sheldon Hearn <sheldonh@uunet.co.za>
2000-07-25 05:11:57 +00:00
Robert Watson
e2e45aa8a0 o Add missing function return types from capability syscall call stubs,
fix compiler warning.

Submitted by:	jake
2000-07-25 03:37:36 +00:00
Kris Kennaway
abe829c0e3 Don't build crypto-enabled telnetd if NO_OPENSSL is defined, since it
attempts to link against libcrypto.
2000-07-25 01:11:17 +00:00
Archie Cobbs
678f9e335e Several fixes:
- Fix slowness when operating over fast connections, where the timeout(9)
  granularity is on the same order of magnitude as the round trip time.
  timeout(9) can happen up to 1 tick early, which was causing receive
  ack timeouts to happen too early, causing bogus "lost" packets.
- Increase the local time counter to 64 bits to avoid roll-over.
- Keep statistics on memory allocation failures.
- Add a new option to always include the ack when sending data packets.
  Might be useful in high packet loss situations. Might not.
2000-07-25 00:23:19 +00:00
Justin T. Gibbs
c27eebfde8 aic7xxx.c:
Correct the BUILD_TCL macro.  It was placing the target id
	in the wrong bits.  This was only an issue for adapters that
	do not perform SCB paging (aha-3940AUW for instance).

	Don't bother inlining ahc_index_busy_tcl.  It is never
	used in a performance critical path and is a bit chunky.

	Correct ahc_index_busy_tcl to deal with "busy target tables"
	embedded in the latter half of 64byte SCBs.

	Don't initialize the busy target table to its empty state
	until after we have finished extracting configuration
	information from chip SRAM.  In the common case of using
	16 bytes of chip SRAM to do untagged target lookups,
	we were trashing the last 8 targets configuration data.
	(actually only target 8 because of the bug in the
	BUILD_TCL macro).

	Cram the "bus reset delivered" message back under bootverbose.

	Fix the cleanup of the SCB busy target table when aborting
	commands.  If the lun is wildcarded, we must loop through
	all possible luns.

aic7xxx.h:
	Only bother supporting 64 luns right now.  It doesn't seem
	like either this driver or any peripherals will be doing
	information unit transfers (where the lun number is a
	32 bit integer) any time soon.

aic7xxx.seq:
	Fix support for the aic7895.  We must flush the data
	FIFO if performing a manual transfer that is not
	a multiple of 8 bytes.  We were doing this quite
	regularly for embedded cdbs.

	Manaually flush the fifo on earlier adapters when
	dealing with embedded cdbs too.  We were stuffing
	the FIFO with 16 bytes instead, but triggering
	the flush is more efficient and allows us to
	remove two instructions from the "copy_to_fifo"
	routine.
2000-07-24 22:27:40 +00:00
Sheldon Hearn
fbf29924ba Rev 1.4 shut up warnings about uninitialized (not unused) variables. 2000-07-24 21:54:52 +00:00
Sheldon Hearn
0b113423f2 Avoid the need to capitalize an extraneous argument to the Nm macro
and be more precise about the handling of command-line arguments.

Reviewed by:	ps
2000-07-24 21:53:04 +00:00
Sheldon Hearn
b86e825a0c Simplify some conditionals. 2000-07-24 21:50:38 +00:00
Sheldon Hearn
dee82c612a Shut an optimizing compiler up about possibly (but never) unused
variables.

Submitted by:	charnier
2000-07-24 21:46:12 +00:00
Mitsuru IWASAKI
df56ce3e40 Fix a bug so that we have correct number of pccard instances in pcic_attach().
pcic_attach() got a wrong pointer to pcic_slots since device haven't
set correct unit number yet, so always accessed elements of pcic_slots
which belong to pcic0 (unit number 0).

Now we set unit number to pcic device first, then access to pcic_slots
based on the unit number we've just set.
2000-07-24 21:44:00 +00:00
Kenneth D. Merry
cf8432359c Allocate major number 153 for the character device interface for the ti(4)
driver.
2000-07-24 21:21:03 +00:00
David E. O'Brien
cfcf9e97c9 Back out rev 1.12 (safe quoting) until I have a chance to rework the change
and get wider testing.  Too many people are having problems with the
script in its current form.
2000-07-24 20:50:18 +00:00
Paul Saab
176e822873 Typos and spelling fixes.
Submitted by:	charnier
2000-07-24 20:35:19 +00:00
Philippe Charnier
8ad08d33c1 Start enumerate option with `The following options are available' like
most of the utilities.
.Nm prog -> .Nm
Remove unused include
Make use of getopt() instead of parsing params by hand.
2000-07-24 20:22:49 +00:00
Kirk McKusick
91ea161570 If the lost+found directory is created by fsck, it will do a cacheino()
which sets the inoinfo's i_parent and i_dotdot to 0, but they never get
set to ROOTINO. This means that propagate will never find lost+found and
its descendents, subdirectories will remain DSTATE (instead of DFOUND)
even though they *are* correctly linked in, and pass4.c will try to
clear them unsuccessfully, thinking that there is no link count from the
DSTATE directory's parent. The result is that you need to run fsck twice
and get link count increasing errors (which are unexpected and fatal
when running in preen mode). The fix is to set i_parent and i_dotdot to
"parent" after the second cacheino() call in dir.c:allocdir().

Obtained from:	"Ethan Solomita" <ethan@geocast.com> (of the NetBSD Project)
2000-07-24 19:50:20 +00:00