From owner-freebsd-ports Sun Jul 14 17:20:15 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BE4C37B405 for ; Sun, 14 Jul 2002 17:20:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E98A43E5E for ; Sun, 14 Jul 2002 17:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6F0K5JU045464 for ; Sun, 14 Jul 2002 17:20:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6F0K5Hw045462; Sun, 14 Jul 2002 17:20:05 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56EF837B400; Sun, 14 Jul 2002 17:12:04 -0700 (PDT) Received: from mix.omut.org (12-235-92-46.client.attbi.com [12.235.92.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23B7943E31; Sun, 14 Jul 2002 17:12:00 -0700 (PDT) (envelope-from lxv@mix.omut.org) Received: from mix.omut.org (IDENT:qr3c43uEAGUBlCcFaSfSWmqadDBPVMzR@localhost [127.0.0.1]) by mix.omut.org (8.12.3/8.12.3) with ESMTP id g6F0BxKp031903; Sun, 14 Jul 2002 17:12:00 -0700 (PDT) (envelope-from lxv@mix.omut.org) Received: (from lxv@localhost) by mix.omut.org (8.12.3/8.12.3/Submit) id g6F0BxO9031902; Sun, 14 Jul 2002 17:11:59 -0700 (PDT) Message-Id: <200207150011.g6F0BxO9031902@mix.omut.org> Date: Sun, 14 Jul 2002 17:11:59 -0700 (PDT) From: Alex Vasylenko Reply-To: Alex Vasylenko To: FreeBSD-gnats-submit@FreeBSD.org Cc: Ruslan Ermilov X-Send-Pr-Version: 3.113 Subject: ports/40576: Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40576 >Category: ports >Synopsis: >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 14 17:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alex Vasylenko >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD 4.5-STABLE #0: Wed Apr 17 23:24:43 PDT 2002 >Description: /usr/bin/w -n doesn't show IP addresses >How-To-Repeat: login with ssh; /usr/bin/w -n displays host name in 'FROM' >Fix: Integrate a patch from the source tree: http://www.freebsd.org/cgi/cvsweb.cgi/src/crypto/openssh/loginrec.c.diff?r1=1.1&r2=1.2&f=h --- loginrec.c.orig Tue Apr 23 06:09:19 2002 +++ loginrec.c Sun Jul 14 16:50:15 2002 @@ -654,7 +654,8 @@ /* Use strncpy because we don't necessarily want null termination */ strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username)); # ifdef HAVE_HOST_IN_UTMP - strncpy(ut->ut_host, li->hostname, MIN_SIZEOF(ut->ut_host, li->hostname)); + realhostname_sa(ut->ut_host, sizeof(ut->ut_host), &li->hostaddr.sa, + li->hostaddr.sa.sa_len); # endif # ifdef HAVE_ADDR_IN_UTMP /* this is just a 32-bit IP address */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message