diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 1997-03-08 16:21:40 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 1997-03-08 16:21:40 +0000 |
| commit | 4ccb26e49ae2de527a21c8146e8148f8effb827c (patch) | |
| tree | e51a60b8afc997fae1fbc120392eb8b4d89f46d6 /lib/libc/gen | |
| parent | 15d8c5b5a3002a29168b49e3fcb54862079e020e (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen')
| -rw-r--r-- | lib/libc/gen/getgrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 47d229ee6e04..26069c6f5684 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -70,7 +70,7 @@ static int maxlinelength; /* current length of *line */ * 256K is enough for 64,000 uids */ #define MAXLINELENGTHLIMIT (256 * 1024) - +#define GROUP_IGNORE_COMMENTS 1 /* allow comments in /etc/group */ struct group * getgrent() @@ -287,7 +287,7 @@ grscan(search, gid, name) for (cp = line; *cp != '\0'; cp++) if (*cp != ' ' && *cp != '\t') break; - if (*cp == '#') + if (*cp == '#' || *cp == '\0') continue; #endif |
