From 545d8c91aa3eccaba0e4ff816db6c5cec33837da Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 22 Mar 1994 01:40:47 -0800 Subject: [PATCH] The functions in getgrent.c don't work right, because gr_mem isn't set up properly to deal with emtpy groups or the end-of-line. The return value from strsep() is the buffer pointer given to strsep() so there's an extra blnak entry at the end of the user list. The field can be zero length if there are extra space. From: "Chris G. Demetriou" SCCS-vsn: lib/libc/gen/getgrent.c 8.2 --- usr/src/lib/libc/gen/getgrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/lib/libc/gen/getgrent.c b/usr/src/lib/libc/gen/getgrent.c index cfa219d151..6f9920bafa 100644 --- a/usr/src/lib/libc/gen/getgrent.c +++ b/usr/src/lib/libc/gen/getgrent.c @@ -6,7 +6,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)getgrent.c 8.1 (Berkeley) %G%"; +static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) %G%"; #endif /* LIBC_SCCS and not lint */ #include -- 2.20.1