Bug 117830

Summary: [patch] who(1) no longer displays entries for folk logged in from xdm(1)
Product: Base System Reporter: J.R. Oldroyd <fbsd>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: 7.0-BETA1   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description J.R. Oldroyd 2007-11-05 03:10:01 UTC
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".
Comment 1 Matteo Riondato freebsd_committer freebsd_triage 2008-11-21 02:49:33 UTC
State Changed
From-To: open->suspended

Mark this PR as suspended: I think the problem actually resides in how xdm  
registers the session in utmp. This is done by the command sessreg in  
/usr/local/lib/X11/xdm/Xstartup. Instead of using -l $DISPLAY -h "", I suggest 
using just -h $DISPLAY (no -l), so that xdm behaves like gdm does and adds a  
more invormative entry in utmp. 
Just in case we want to reopen this PR: Notice that w(1) is affected too.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2012-11-02 20:47:26 UTC
State Changed
From-To: suspended->open

while this is an application bug; we can support these entries without 
harm so we should
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:13 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:43 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>