bin/117830: who(1) no longer displays entries for folk logged in
from xdm(1)
J.R. Oldroyd
fbsd at opal.com
Sun Nov 4 19:10:02 PST 2007
>Number: 117830
>Category: bin
>Synopsis: who(1) no longer displays entries for folk logged in from xdm(1)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 05 03:10:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: J.R. Oldroyd
>Release: FreeBSD 7.0-BETA1 i386
>Organization:
>Environment:
System: FreeBSD linwhf.opal.com 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Thu Nov 1 14:21:03 EDT 2007 xx:/usr/src/sys/i386/compile/LINWHF i386
>Description:
When logging in from xdm(1), utmp entries with a ttyname of ":0", ":1", ...
are made by an invocation of sessreg(1) in /usr/local/lib/X11/xdm/Xstartup.
who(1) does not display these entries. "who -q", however, does.
>How-To-Repeat:
Run xdm. Log in. Start a shell. Run "who".
>Fix:
--- src/usr.bin/who/who.orig 2007-10-29 14:44:55.000000000 -0400
+++ src/usr.bin/who/who.c 2007-11-03 12:52:57.000000000 -0400
@@ -225,7 +225,7 @@
while (fread(&ut, sizeof(ut), 1, fp) == 1) {
if (*ut.ut_name == '\0')
continue;
- if (ttystat(ut.ut_line, UT_LINESIZE) != 0)
+ if (*ut.ut_line != ':' && ttystat(ut.ut_line, UT_LINESIZE) != 0)
continue;
row(&ut);
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list