getgroups on Sun systems takes an array of gid_t, not of int
[unix-history] / usr / src / usr.sbin / vipw / vipw.c
index 98d8d4f..c30bbd6 100644 (file)
@@ -1,18 +1,18 @@
 /*
 /*
- * Copyright (c) 1987 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1987, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1987 Regents of the University of California.\n\
- All rights reserved.\n";
+static char copyright[] =
+"@(#) Copyright (c) 1987, 1993\n\
      The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)vipw.c     5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)vipw.c     8.1 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -39,10 +39,7 @@ main()
        for (;;) {
                if (stat(tempname, &begin))
                        pw_error(tempname, 1, 1);
        for (;;) {
                if (stat(tempname, &begin))
                        pw_error(tempname, 1, 1);
-               if (pw_edit(0)) {
-                       (void)fprintf(stderr, "vipw: edit failed\n");
-                       pw_error((char *)NULL, 0, 1);
-               }
+               pw_edit(0);
                if (stat(tempname, &end))
                        pw_error(tempname, 1, 1);
                if (begin.st_mtime == end.st_mtime) {
                if (stat(tempname, &end))
                        pw_error(tempname, 1, 1);
                if (begin.st_mtime == end.st_mtime) {