From owner-freebsd-bugs Mon Mar 11 14:10:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C42CA37B41B for ; Mon, 11 Mar 2002 14:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2BMA3K19476; Mon, 11 Mar 2002 14:10:03 -0800 (PST) (envelope-from gnats) Date: Mon, 11 Mar 2002 14:10:03 -0800 (PST) Message-Id: <200203112210.g2BMA3K19476@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Michael Wardle Subject: Re: bin/35769: w does not correctly interpret X sessions Reply-To: Michael Wardle Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/35769; it has been noted by GNATS. From: Michael Wardle To: cjclark@alum.mit.edu, Michael Wardle 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" 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