From owner-svn-src-all@FreeBSD.ORG Wed Nov 25 16:31:23 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA7BD1065672; Wed, 25 Nov 2009 16:31:23 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-px0-f190.google.com (mail-px0-f190.google.com [209.85.216.190]) by mx1.freebsd.org (Postfix) with ESMTP id A6ED28FC12; Wed, 25 Nov 2009 16:31:23 +0000 (UTC) Received: by pxi28 with SMTP id 28so5407266pxi.7 for ; Wed, 25 Nov 2009 08:31:23 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.142.6.11 with SMTP id 11mr873411wff.68.1259166683163; Wed, 25 Nov 2009 08:31:23 -0800 (PST) In-Reply-To: References: <200911221651.nAMGpiIO023873@svn.freebsd.org> From: Juli Mallett Date: Wed, 25 Nov 2009 08:31:03 -0800 X-Google-Sender-Auth: e0ef5782ee3e529e Message-ID: To: Hajimu UMEMOTO Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r199655 - head/usr.bin/w X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 16:31:24 -0000 On Wed, Nov 25, 2009 at 08:28, Hajimu UMEMOTO wrote: > The feature was present in the past, and was dropped by 1.48. =A0The > reason is that we have no idea what address family they belong to. > So, I reintroduce it for just one A/AAAA RR case. > > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/w/w.c#rev1.48 > > However, a hostname in utmp is truncated in many cases. =A0It is useless > to query for a truncated hostname. =A0How about this patch? This catches hostnames that have been truncated but ignores hostnames that would have been truncated if they were still one letter longer. In any event, it generates traffic if '-n' is specified and tries to use the resolver, which is undesirable to at least me and DES.