Revert r336619, it appears to cause problems with ssh, and probably other

things which use pw_scan().
This commit is contained in:
Ian Lepore 2018-07-23 17:26:38 +00:00
parent dc8240f0da
commit c798532ffa

View File

@ -170,8 +170,7 @@ __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])