From owner-cvs-usrbin Mon Jun 17 12:33:01 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA21618 for cvs-usrbin-outgoing; Mon, 17 Jun 1996 12:33:01 -0700 (PDT) Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA21591; Mon, 17 Jun 1996 12:32:44 -0700 (PDT) Received: by sequent.kiae.su id AA10483 (5.65.kiae-2 ); Mon, 17 Jun 1996 23:31:54 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Mon, 17 Jun 96 23:31:53 +0400 Received: (from ache@localhost) by astral.msk.su (8.7.5/8.7.3) id XAA00442; Mon, 17 Jun 1996 23:30:54 +0400 (MSD) Message-Id: <199606171930.XAA00442@astral.msk.su> Subject: Re: cvs commit: src/usr.bin/w w.c To: peter@spinner.dialix.com (Peter Wemm) Date: Mon, 17 Jun 1996 23:30:53 +0400 (MSD) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org In-Reply-To: <199606171849.CAA01858@spinner.DIALix.COM> from "Peter Wemm" at "Jun 18, 96 02:49:00 am" From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast X-Mailer: ELM [version 2.4ME+ PL19 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >ache 96/06/17 11:35:19 > > > > Modified: usr.bin/w w.c > > Log: > > Don't try convert "-" to numeric form for -n option > > I'm not sure I like the direction this is going.. The ut_host field is > useful for storing various sorts of useful information, the changes that Well, I need an example, at least one. All programs that I found keeps hostname in this field and _not_ various sorts of info. I mean general [][:] format. Moreover some statistics packages assume real hostname there, it will be nice for security reasons too or one host can mimic to another by using truncated names assumption. I think nobody wants to keep junk in utmp/wtmp/lastlog and junk will be there for all hostnames > 16. > have just been made cause 'w -n' to break and print error messages if it > cant resolve an internet-visible hostname in the field. At the very > least, it should print what was there rather than breaking the formatting > to print an error and no ut_host data. "What is there" can be an attempt to mimic to another host, I prefer error which is normally will _not_ printed because your machine _already_ got this name from nameserver before writing it to utmp. > IMHO, the -n option was documented badly. As originally implemented, it > was a "dont convert IP addresses to names" flag, but the man page wasn't > in sync. I think that actively attempting to *convert* ut_host data to IP I think manpage is right (it is the same flag as for netstat and it is very useful for scripts, please check PR original 402). I think w historically assumes IP address in utmp. > addresses (consider what 'screen' and the various 'xterm' etc programs put > in there) is a mistake. Sorry, I am not complete my changes at this moment, next w.c version will be compatible with xterm, screen and others. w.c already parses hostname using general format from above (I mean :xxx). -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - http://dt.demos.su/~ache : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849