diff options
author | Ian Lepore <ian@FreeBSD.org> | 2018-07-23 17:26:38 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2018-07-23 17:26:38 +0000 |
commit | 699a28cfd315d63c32b4c309d0b6cbd9197a6ee4 (patch) | |
tree | eb5b6ab30771bd231a407b766b4866d3c6694854 /libc | |
parent | d35fa53013c51b95da25d2c5803af3239f02e23b (diff) | |
download | pw-darwin-699a28cfd315d63c32b4c309d0b6cbd9197a6ee4.tar.gz pw-darwin-699a28cfd315d63c32b4c309d0b6cbd9197a6ee4.tar.zst pw-darwin-699a28cfd315d63c32b4c309d0b6cbd9197a6ee4.zip |
Revert r336619, it appears to cause problems with ssh, and probably other
things which use pw_scan().
Diffstat (limited to 'libc')
-rw-r--r-- | libc/gen/pw_scan.c | 3 |
1 files changed, 1 insertions, 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]) |