From fc69ee442cd100571b929943ed081fa51e3d46f3 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 3 May 2017 17:06:54 -0400 Subject: [PATCH] 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 --- man5/nsswitch.conf.5 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/man5/nsswitch.conf.5 b/man5/nsswitch.conf.5 index 0405d4ff7..007c5826f 100644 --- a/man5/nsswitch.conf.5 +++ b/man5/nsswitch.conf.5 @@ -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