summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2018-07-23 17:26:38 +0000
committerIan Lepore <ian@FreeBSD.org>2018-07-23 17:26:38 +0000
commit699a28cfd315d63c32b4c309d0b6cbd9197a6ee4 (patch)
treeeb5b6ab30771bd231a407b766b4866d3c6694854
parentd35fa53013c51b95da25d2c5803af3239f02e23b (diff)
downloadpw-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().
-rw-r--r--libc/gen/pw_scan.c3
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])