Bug 117830 - [patch] who(1) no longer displays entries for folk logged in from xdm(1)
Summary: [patch] who(1) no longer displays entries for folk logged in from xdm(1)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.0-BETA1
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 03:10 UTC by J.R. Oldroyd
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments
file.diff (380 bytes, patch)
2007-11-05 03:10 UTC, J.R. Oldroyd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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