From owner-freebsd-questions Wed Jun 2 8:40:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from davida.com (davida.com [204.107.144.130]) by hub.freebsd.org (Postfix) with ESMTP id D579E15284 for ; Wed, 2 Jun 1999 08:40:21 -0700 (PDT) (envelope-from jd@davida.com) Received: (from jd@localhost) by davida.com (8.9.3/8.9.3) id KAA04706 for questions@freebsd.org; Wed, 2 Jun 1999 10:40:15 -0500 (CDT) (envelope-from jd) Date: Wed, 2 Jun 1999 10:40:15 -0500 (CDT) From: Joseph Davida Message-Id: <199906021540.KAA04706@davida.com> To: questions@freebsd.org Subject: command who (and w) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In releases 2.x, who and w would show the fully qualified hostname of all users who login from a remote host. If the fully qualified name is too long for display, then the IP address would get printed. For example on 2.2.1: user1 ttyp1 Jun 2 07:29 (relay.mfa.com) user2 ttyp2 Jun 2 08:06 (204.154.227.254) In 3.2, 'who' no longer prints the IP address if the fully qualified hostname is too long. It just truncates the name. For example: roger ttyp3 Jun 2 10:00 (xxxxxx.xxxxxxx) (Name of remote host replaced char for char with an x to keep the confidentiality of the user's host name. Roger is also a fictitious user name). As you can see, it truncated the .com from the hostname. Other commands suffer the same behavior: last, finger. The odd behavior is that if the hostname is really long, such as .worldnet.att.net, then in 3.2, 'who' does resort to printing the IP address. Many user shell scripts which relied on getting either the IP address or the fully qualified hostname from the who command will no longer work if the hostname falls within certain (unknown) length ranges. Machine I am on does not keep sources online, so I will have to lookup the who source code on another machine. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message