X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/1da01bc2c9c5e29456c09c08cdd92a391612fcdd..8517a3136742981ad794e45454b834c050c3b016:/libc/gen/pw_scan.c diff --git a/libc/gen/pw_scan.c b/libc/gen/pw_scan.c index 8267931..01146e9 100644 --- a/libc/gen/pw_scan.c +++ b/libc/gen/pw_scan.c @@ -29,10 +29,8 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)pw_scan.c 8.3 (Berkeley) 4/2/94"; -#endif /* LIBC_SCCS and not lint */ #include +__SCCSID("@(#)pw_scan.c 8.3 (Berkeley) 4/2/94"); __FBSDID("$FreeBSD$"); /* @@ -44,9 +42,7 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include -#include #include #include #include @@ -174,7 +170,8 @@ __pw_scan(char *bp, struct passwd *pw, int flags) if (p[0]) pw->pw_fields |= _PWF_EXPIRE; pw->pw_expire = atol(p); - } + } else + pw->pw_class = NULL; if (!(pw->pw_gecos = strsep(&bp, ":"))) /* gecos */ goto fmt; if (pw->pw_gecos[0])