The functions in getgrent.c don't work right, because gr_mem isn't
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Mar 1994 09:40:47 +0000 (01:40 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Mar 1994 09:40:47 +0000 (01:40 -0800)
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" <cgd@vangogh.CS.Berkeley.EDU>

SCCS-vsn: lib/libc/gen/getgrent.c 8.2

usr/src/lib/libc/gen/getgrent.c

index cfa219d..6f9920b 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #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 <sys/types.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>