Date: Sun, 14 Jul 2002 17:11:59 -0700 (PDT) From: Alex Vasylenko <lxv@a-send-pr.sink.omut.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Ruslan Ermilov <ru@FreeBSD.org> Subject: ports/40576: Message-ID: <200207150011.g6F0BxO9031902@mix.omut.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207150011.g6F0BxO9031902>