FreeBSD src
Go to file
bde 92601bdd3f Guard against a block size of 0 in the label. When the first
superblock is invalid, fsck looks at the label to help guess where
the next superblock should be.  If the partition type is 4.2BSD,
fsck assumed that the block size was valid and divided by it, so
it dumped core if the size was 0.

Initialization of the label was broken almost 3 years ago in rev.1.9
of newfs/newfs.c.  Newfs does not change the label at all, so there
is no problem (except the breakage of the automatic search for
backup superblocks) unless something else sets the partition type
to 4.2BSD.  However, it is too easy to set partition types to
4.2.BSD by copying an old label or by using a disktab entry to
create the label.

PR:	2537
1998-01-19 16:28:29 +00:00
bin Fixed syntax error in normally-unconfigured code in previous commit. 1998-01-17 13:39:29 +00:00
contrib Removed redundant declarations. Keymap functions are declared in 1998-01-16 09:12:05 +00:00
crypto MFC: no \n in syslog strings. Change -P to -p in flags. EOF -> -1. Use err(3). 1997-12-08 07:41:13 +00:00
etc Add an example for busy mail servers, commented out. 1998-01-18 22:28:06 +00:00
games Fixed long lines in install rule. Fixed other bogons while I was here: 1998-01-16 09:43:47 +00:00
gnu Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally 1998-01-19 15:27:56 +00:00
include Added missing declaration of signanosleep(). 1998-01-16 12:44:20 +00:00
kerberos5 Fix a break in the includes where the build blows chunks if it is 1997-10-02 15:03:23 +00:00
kerberosIV Link this against -lcrypt. In the case where the user has no key available 1997-10-24 16:27:46 +00:00
lib Started getting rid of the compatibility cruft for the Lite1 mount() 1998-01-17 16:32:14 +00:00
libexec Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
lkm Include <machine/pc/display.h>, not <i386/include/pc/display.h>. This is 1998-01-16 17:58:55 +00:00
release Add a missing \ the previous committer omitted from the crunch target. 1998-01-19 16:10:51 +00:00
sbin Guard against a block size of 0 in the label. When the first 1998-01-19 16:28:29 +00:00
secure Staticise a variable. 1997-10-08 07:02:48 +00:00
share I wrote a poor, but better-than-nothing manual page for the wfd subdriver. 1998-01-17 05:15:01 +00:00
sys Set p_retval for the correct process in getpriority(). This fixes 1998-01-19 12:39:00 +00:00
tools Don't install the tcl implementation headers. The tcl distribution 1998-01-17 15:52:32 +00:00
usr.bin Started getting rid of the compatibility cruft for the Lite1 mount() 1998-01-17 16:24:27 +00:00
usr.sbin Reimplement proxy-arp address stuff using sysctl(). 1998-01-19 02:59:34 +00:00
COPYRIGHT This is the official 4.4 Lite copyright. 1994-09-11 07:53:28 +00:00
Makefile Test for ${MACHINE} == "alpha" and include the bootstrap makefile instead 1998-01-11 04:51:02 +00:00
Makefile.alpha This makefile provides a bootstrap installation of FreeBSD on an installed 1998-01-11 04:46:02 +00:00
README Note that /etc is not installed by world target either. 1997-08-09 14:36:20 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on: $Id: README,v 1.10 1997/02/23 09:18:39 peter Exp $

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel and the contents of /etc.  Please see the top of the Makefile
in this directory for more information on the standard build targets
and compile-time flags.

Building a kernel with config(8) is a somewhat more involved process,
documentation for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file LINT contains entries for all possible devices, not
just those commonly used, and is meant more as a general reference
than an actual kernel configuration file (a kernel built from it
wouldn't even run).


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

eBones		Kerberos package - NOT FOR EXPORT!

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

lib		System libraries.

libexec		System daemons.

lkm		Loadable Kernel Modules.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		DES and DES-related utilities - NOT FOR EXPORT!

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html