Subject: breakage in make world (libexec/ftpd/ftpd.c glitch?)
To: None <current-users@netbsd.org>
From: George Michaelson <ggm@apnic.net>
List: current-users
Date: 02/20/2003 11:48:45
/usr/src/libexec/ftpd/ftpd.c: In function `pass':
/usr/src/libexec/ftpd/ftpd.c:1098: incompatible types in assignment
*** Error code 1

The last edit in this region was 7 hours ago. The complaint is on the malloc()
call.

-George


-	gidcount = getgroups(sizeof(gidlist), gidlist);
+	gidcount = getgroups(0, NULL);
+	if (gidlist)
+		free(gidlist);
+	gidlist = malloc(gidcount * sizeof *gidlist);
+	gidcount = getgroups(gidcount, gidlist);