X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/c3a08f5910a028cdace032ed79beb406c750d530..ac27e6b4e9f2f269ad11856171ae8e1f51fa26f0:/pwd_mkdb.tproj/pw_scan.c?ds=sidebyside diff --git a/pwd_mkdb.tproj/pw_scan.c b/pwd_mkdb.tproj/pw_scan.c index c3e0de3..bb400ef 100644 --- a/pwd_mkdb.tproj/pw_scan.c +++ b/pwd_mkdb.tproj/pw_scan.c @@ -64,6 +64,13 @@ pw_scan(char *bp, struct passwd *pw, int *flags) if (flags != (int *)NULL) *flags = 0; +#ifdef __APPLE__ + if (bp[0] == '#') { + pw->pw_name = NULL; + return(1); + } +#endif + if (!(p = strsep(&bp, ":")) || *p == '\0') /* login */ goto fmt; pw->pw_name = p;