diff options
Diffstat (limited to 'nis/nss_nis/nis-initgroups.c')
-rw-r--r-- | nis/nss_nis/nis-initgroups.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nis/nss_nis/nis-initgroups.c b/nis/nss_nis/nis-initgroups.c index 4469e4f4d8..e3ba0cd2dd 100644 --- a/nis/nss_nis/nis-initgroups.c +++ b/nis/nss_nis/nis-initgroups.c @@ -162,6 +162,10 @@ check_default_nss (void) while (isspace (*cp)) ++cp; + /* Recognize comment lines. */ + if (*cp == '#') + continue; + static const char netid_authoritative[] = "NETID_AUTHORITATIVE"; if (strncmp (cp, netid_authoritative, sizeof (netid_authoritative) - 1) != 0) |