*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)pw_scan.c 8.3 (Berkeley) 4/2/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
/*
#include <err.h>
#include <fcntl.h>
#include <pwd.h>
-#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
}
if (id > USHRT_MAX) {
warnx("%s > max uid value (%d)", p, USHRT_MAX);
- return (0);
+ /*return (0);*/ /* THIS SHOULD NOT BE FATAL! */
}
pw->pw_uid = id;
id = atol(p);
if (id > USHRT_MAX) {
warnx("%s > max gid value (%d)", p, USHRT_MAX);
- return (0);
+ /* return (0); This should not be fatal! */
}
pw->pw_gid = id;
}
if(p[0]) pw->pw_fields |= _PWF_SHELL;
- if (p = strsep(&bp, ":")) { /* too many */
+ if ((p = strsep(&bp, ":"))) { /* too many */
fmt: warnx("corrupted entry");
return (0);
}