1
0
mirror of git://git.suckless.org/ubase synced 2024-12-25 08:02:17 +00:00

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

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);