From 8ed84589ca5300180e8242effe8d9b72fe38280a Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 3 Dec 2009 17:05:36 +0000 Subject: Use USER_PROCESS instead of LOGIN_PROCESS. POSIX isn't clear about how the fields should be used, but according to utmpx(5) on Linux, LOGIN_PROCESS refers to a TTY that's still running a getty. --- usr.bin/users/users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c index 73dd619..66e1da9 100644 --- a/usr.bin/users/users.c +++ b/usr.bin/users/users.c @@ -80,7 +80,7 @@ main(int argc, char **argv) ulog_setutxent(); while ((ut = ulog_getutxent()) != NULL) { - if (ut->ut_type != LOGIN_PROCESS) + if (ut->ut_type != USER_PROCESS) continue; if (ncnt >= nmax) { nmax += 32; -- cgit v1.1