From owner-freebsd-bugs Mon Mar 11 2:20: 7 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 ECD2437B419 for ; Mon, 11 Mar 2002 02:20:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2BAK0U37379; Mon, 11 Mar 2002 02:20:00 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BDB337B41F for ; Mon, 11 Mar 2002 02:10:17 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2BAAHb35625; Mon, 11 Mar 2002 02:10:17 -0800 (PST) (envelope-from nobody) Message-Id: <200203111010.g2BAAHb35625@freefall.freebsd.org> Date: Mon, 11 Mar 2002 02:10:17 -0800 (PST) From: Michael Wardle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/35769: w does not correctly interpret X sessions 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 >Number: 35769 >Category: bin >Synopsis: w does not correctly interpret X sessions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 11 02:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Michael Wardle >Release: 4.5 >Organization: >Environment: FreeBSD water 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Feb 11 20:27:00 EST 2002 root@water:/usr/obj/usr/src/sys/WATER i386 >Description: If I do "w" on my system, I get this output: ----- w: /dev/:0: No such file or directory w: /dev/air.:0: No such file or directory 9:04PM up 20:32, 0 users, load averages: 0.04, 0.06, 0.02 USER TTY FROM LOGIN@ IDLE WHAT ----- I guess it tries to interpret the terminal (usually something like ttyv1) as an entry in /dev, however a user can also be logged in on an X session such as :0 or remotehost:0. These "terminals" should not be interpreted as entries in /dev. Running "who" on my system shows what is really happening: ----- michael :0 Mar 11 20:57 alison air.:0 Mar 11 20:52 ----- I have configured this host as a remote X server, so most logins are actually performed remotely using XDMCP, but I expect this will also work if only a local X session is active. >How-To-Repeat: establish an X session on the host, then issue "w". >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message