Date: Mon, 11 Mar 2002 14:10:03 -0800 (PST) From: Michael Wardle <michael@endbracket.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/35769: w does not correctly interpret X sessions Message-ID: <200203112210.g2BMA3K19476@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/35769; it has been noted by GNATS. From: Michael Wardle <michael@endbracket.net> To: cjclark@alum.mit.edu, Michael Wardle <michael@endbracket.net> Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/35769: w does not correctly interpret X sessions Date: Mon, 11 Mar 2002 14:01:33 -0800 (PST) --- "Crist J. Clark" <crist.clark@attbi.com> wrote: > On Mon, Mar 11, 2002 at 05:09:30AM -0800, Michael Wardle wrote: > > > > [...] > > > > > What does 'tty' return for one of these sessions? > > > > This is precisely the problem -- it is not a terminal... [...] > Ah. Now I realize what you are talking about. You're using > xdm(8). xdm(8) is well known for putting broken entries into > utmp(5). There isn't much w(1) can do about it. xdm(8) is feeding it > invalid data. > -- So we could file bugs against xdm, kdm, and gdm, and hope that they change their manipulation of utmp, but as I stated in my original bug, "who" gives some useful information about users logged in on X sessions, presumably derived from utmp, so I'm guessing what we get from utmp isn't about to change. At the very least, as there seems to be agreement that this is a common problem, could "w" be modified to first test whether a corresponding entry exists in /dev for that "terminal", and if it does not, "w" ignores that one? I would actually wonder whether "w" should indeed print useful information about each session (including non-terminal logins), to give it parity with "who", but at least ignoring non-terminals would workaround the error messages. ===== MICHAEL WARDLE MAIL michael@endbracket.net MOBILE +61-415-439-838 WWW http://www.endbracket.net/michael/ __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203112210.g2BMA3K19476>