From: Ian Lepore Date: Mon, 23 Jul 2018 17:26:38 +0000 (+0000) Subject: Revert r336619, it appears to cause problems with ssh, and probably other X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/commitdiff_plain/699a28cfd315d63c32b4c309d0b6cbd9197a6ee4?ds=inline Revert r336619, it appears to cause problems with ssh, and probably other things which use pw_scan(). --- diff --git a/libc/gen/pw_scan.c b/libc/gen/pw_scan.c index 01146e9..a7dbdf2 100644 --- a/libc/gen/pw_scan.c +++ b/libc/gen/pw_scan.c @@ -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])