Formerly ../grp/initgroups.c.~4~
authorroland <roland>
Wed, 12 Feb 1992 17:15:51 +0000 (17:15 +0000)
committerroland <roland>
Wed, 12 Feb 1992 17:15:51 +0000 (17:15 +0000)
grp/initgroups.c

index e35811f..9bafc7d 100644 (file)
@@ -49,8 +49,7 @@ DEFUN(initgroups, (user, group),
     return -1;
 
   n = 0;
     return -1;
 
   n = 0;
-  if (group >= 0)
-    groups[n++] = group;
+  groups[n++] = group;
 
   while (n < NGROUPS_MAX && (g = __grpread(stream, info)) != NULL)
     if (g->gr_gid != group)
 
   while (n < NGROUPS_MAX && (g = __grpread(stream, info)) != NULL)
     if (g->gr_gid != group)