From 699a28cfd315d63c32b4c309d0b6cbd9197a6ee4 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Mon, 23 Jul 2018 17:26:38 +0000 Subject: Revert r336619, it appears to cause problems with ssh, and probably other things which use pw_scan(). --- libc/gen/pw_scan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]) -- cgit v1.2.3-56-ge451