]> git.saurik.com Git - apple/system_cmds.git/blobdiff - pwd_mkdb.tproj/pw_scan.c
system_cmds-671.10.3.tar.gz
[apple/system_cmds.git] / pwd_mkdb.tproj / pw_scan.c
index c3e0de3988d157f6006c4007442b7725f7e5d303..bb400ef9c403e30ab2627811416ed18f5b9899da 100644 (file)
@@ -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;