freebsd kernel with SKQ
Go to file
Jacques Vidrine c849849d06 It was reported that when using nss_ldap, getgrent(3) would behave
incorrectly when encountering `large' groups (many members and/or many
long member names).  The reporter tracked this down to the glibc NSS
module compatibility code (nss_compat.c): it would prematurely record
that a NSS module was finished iterating through its database in some
cases.

Two aspects are corrected:

1. nss_compat.c recorded that a NSS module was finished iterating
   whenever the module reported something other than SUCCESS.  The
   correct logic is to continue iteration when the module reports
   either SUCCESS or RETURN.  The __nss_compat_getgrent_r and
   __nss_compat_getpwent_r routines are updated to reflect this.

2. An internal helper macro __nss_compat_result is used to map glibc
   NSS status codes to BSD NSS status codes (e.g. NSS_STATUS_SUCCESS ->
   NS_SUCCESS).  It provided the obvious mapping.

   When a NSS routine is called with a too-small buffer, the
   convention in the BSD NSS code is to report RETURN.  (This is used
   to implement reentrant APIs such as getpwnam_r(3).)  However, the
   convention in glibc for this case is to set errno = ERANGE and
   overload TRYAGAIN.  __nss_compat_result is updated to handle this
   case.

PR:		bin/60287
Reported by:	Lachlan O'Dea <odela01@ca.com>
2004-01-09 13:43:49 +00:00
bin Note the Linux required format. 2004-01-06 19:01:34 +00:00
contrib Quick fix for breakage of non-i386 arches in previous commit. Only 2004-01-06 10:38:48 +00:00
crypto This commit was generated by cvs2svn to compensate for changes in r124287, 2004-01-09 12:57:36 +00:00
etc Get moduli from the OpenSSH sources instead of keeping a local copy. 2004-01-07 11:55:44 +00:00
games Add a tip on how to print a manual page. 2004-01-07 19:49:12 +00:00
gnu Correct the atomicity.h fallback path on architectures which do not 2004-01-06 19:20:30 +00:00
include It was reported that when using nss_ldap, getgrent(3) would behave 2004-01-09 13:43:49 +00:00
kerberos5 Set RPATH when the Kerberos KDC is linked with the LDAP backend 2003-12-17 16:13:10 +00:00
lib It was reported that when using nss_ldap, getgrent(3) would behave 2004-01-09 13:43:49 +00:00
libexec man ftpd says that "by default, anonymous users cannot modify existing files." 2004-01-07 19:28:31 +00:00
release '+' can also appear in a package file name. 2004-01-02 22:58:29 +00:00
rescue Properly spell make binary as ${MAKE}. 2003-12-24 10:59:33 +00:00
sbin Correct an instance of an erroneous "it's". 2004-01-07 23:31:22 +00:00
secure Cosmetics: rearrange the dependency list to match that of ssh and sshd. 2004-01-08 11:41:02 +00:00
share Correct capitalization. 2004-01-07 23:00:01 +00:00
sys Fix a warning when NATM is not defined. In this case s is not used. 2004-01-09 11:25:14 +00:00
tools Add pirtool, a tool for dumping the $PIR table on i386 machines at runtime. 2004-01-06 20:59:49 +00:00
usr.bin Move declarations of Procfd to a header file. 2004-01-07 14:29:45 +00:00
usr.sbin Add a GraphViz-exporting ngctl(8) "dot" command. You can now create 2004-01-09 03:19:40 +00:00
COPYRIGHT Update the COPYRIGHT file to include FreeBSD's compilation copyright 2003-12-31 22:35:22 +00:00
MAINTAINERS I'll maintain dhclient from now on. 2003-08-01 17:54:11 +00:00
Makefile Put on some factor 30+ bikeshed repellent and export the internal 2003-12-09 02:08:19 +00:00
Makefile.inc1 Fix a problem where 'make installworld' will fail and leave the 2003-12-09 00:42:44 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Add a note to say that the ACPI module has been turned back on now. 2003-12-15 19:19:16 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

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, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  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 is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/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 NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


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

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

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.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

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/doc/en_US.ISO8859-1/books/handbook/synching.html