]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only print entries for which ut_host points to a character device.
authored <ed@FreeBSD.org>
Tue, 5 Jul 2011 14:12:48 +0000 (14:12 +0000)
committered <ed@FreeBSD.org>
Tue, 5 Jul 2011 14:12:48 +0000 (14:12 +0000)
commit384aa0c6964cf9f105c817090d97e648700f4539
treed1048751916250fac781f5dbca277d4340e5180a
parent6abbb93d5fb70390974d5b0bb73e75616bd9c39a
Only print entries for which ut_host points to a character device.

Now that we use utmpx, we more often have entries for which the ut_line
is left blank. To prevent us from returning struct stat for "/dev/",
check that the resulting stat structure belongs to a character device.
usr.bin/w/w.c