HomeFreeBSD

MFC r365391, r365415

Description

MFC r365391, r365415

r365391:
nsswitch.conf(5): recommend placing cache after files

When cache precedes files, and nscd is configured to allow negative caching,
commands like "pw groupadd" can fail. The sequence of events looks like:

  1. A command like pkg(8) looks up the group, and finds it absent.
  2. pkg invokes pw(8) to add the group
  3. pkg queries the group, but nscd says it doesn't exist, since it has a negative cache entry for that group.

See also: https://lists.freebsd.org/pipermail/freebsd-current/2012-January/031595.html

Reviewed by: bcr (manpages)
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D26184

r365415:
nsswitch.conf.5: style fixes

Fix some whitespace, and remove the .Tn macro

Reported by: mandoc, igor
Reviewed by: bcr (manpages)
Differential Revision: https://reviews.freebsd.org/D26345

Details

Provenance
asomersAuthored on
Reviewer
bcr
Differential Revision
D26184: nsswitch.conf(5): recommend placing cache after files
Parents
rS365910: fix integer underflow in getgrnam_r and getpwnam_r
Branches
Unknown
Tags
Unknown