Date: Sun, 4 Nov 2007 16:14:31 -0500 (EST) From: "J.R. Oldroyd" <fbsd@opal.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/117830: who(1) no longer displays entries for folk logged in from xdm(1) Message-ID: <200711042114.lA4LEVGY004363@linwhf.opal.com> Resent-Message-ID: <200711050310.lA53A1B2096990@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711042114.lA4LEVGY004363>