ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit b66839681f89d46698ea59076d766bec0ee12a03
parent a1bc9353541051eabe7d128c58cbd64745c69ddd
Author: sin <sin@2f30.org>
Date:   Sun,  1 Sep 2013 17:50:03 +0100

Ignore `LOGIN' name when counting the number of users

Diffstat:
Muptime.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/uptime.c b/uptime.c @@ -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);