Ignore `LOGIN' name when counting the number of users

This commit is contained in:
sin 2013-09-01 17:50:03 +01:00
parent a1bc935354
commit b66839681f
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ main(int argc, char *argv[])
if (!*usr.ut_name || !*usr.ut_line ||
usr.ut_line[0] == '~')
continue;
if (strcmp(usr.ut_name, "LOGIN") == 0)
continue;
nusers++;
}
fclose(ufp);