summaryrefslogtreecommitdiffstats
path: root/usr.bin/users
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-03 17:05:36 +0000
committered <ed@FreeBSD.org>2009-12-03 17:05:36 +0000
commit8ed84589ca5300180e8242effe8d9b72fe38280a (patch)
treeaacd1519b4e057808c4b1be81b7237ba37310918 /usr.bin/users
parent03da910d8db01460d044c3ff90cc30e8a00c63d0 (diff)
downloadFreeBSD-src-8ed84589ca5300180e8242effe8d9b72fe38280a.zip
FreeBSD-src-8ed84589ca5300180e8242effe8d9b72fe38280a.tar.gz
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.
Diffstat (limited to 'usr.bin/users')
-rw-r--r--usr.bin/users/users.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud