nsswitch.conf.5: Clarify group merge rules

This minor patch clarifies when merging is not done, and how duplicate
entries are merged.

Found while extending glibc's NSS test suite, discussed with glibc
team and Stephen Gallagher.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
DJ Delorie 2017-05-03 17:06:54 -04:00 committed by Michael Kerrisk
parent 8fe4dd0885
commit fc69ee442c
1 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,10 @@ If the group is also found in the next entry (and the group name and GID
are an exact match), the member list of the second entry will be added
to the group object to be returned.
Available since glibc 2.24.
Note that merging will not be done for
.BR getgrent (3)
nor will duplicate members be pruned when they occur in both entries
being merged.
.RE
.SS Compatibility mode (compat)
The NSS "compat" service is similar to "files" except that it