BSD 4_3 release
[unix-history] / usr / src / lib / libc / gen / initgroups.c
index e69ea41..362e3e6 100644 (file)
@@ -1,4 +1,12 @@
-/*     initgroups.c    4.4     83/06/17        */
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)initgroups.c       5.3 (Berkeley) 4/27/86";
+#endif LIBC_SCCS and not lint
 
 /*
  * initgroups
 
 /*
  * initgroups
@@ -36,7 +44,7 @@ toomany:
        endgrent();
        if (setgroups(ngroups, groups) < 0) {
                perror("setgroups");
        endgrent();
        if (setgroups(ngroups, groups) < 0) {
                perror("setgroups");
-               return (1);
+               return (-1);
        }
        return (0);
 }
        }
        return (0);
 }