]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Revert r336619, it appears to cause problems with ssh, and probably other
authorIan Lepore <ian@FreeBSD.org>
Mon, 23 Jul 2018 17:26:38 +0000 (17:26 +0000)
committerIan Lepore <ian@FreeBSD.org>
Mon, 23 Jul 2018 17:26:38 +0000 (17:26 +0000)
things which use pw_scan().

libc/gen/pw_scan.c

index 01146e9111d102670774dd2f3a3181599ddcb665..a7dbdf2cb5b98fd6a866de50c4dca51e1aa55c5e 100644 (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);
                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])
        if (!(pw->pw_gecos = strsep(&bp, ":")))         /* gecos */
                goto fmt;
        if (pw->pw_gecos[0])