Date: Thu, 24 Jun 2010 18:50:23 GMT From: "Y.A." <nexther0@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/148116: net-mgmt/net-snmp 5.5 broken libwrap s Message-ID: <201006241850.o5OIoNNa016036@www.freebsd.org> Resent-Message-ID: <201006241900.o5OJ0C9i024683@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 148116 >Category: ports >Synopsis: net-mgmt/net-snmp 5.5 broken libwrap s >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 24 19:00:12 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Y.A. >Release: 7.3-RELEASE-p1 >Organization: >Environment: FreeBSD proxy4.umc.ua 7.3-RELEASE-p1 FreeBSD 7.3-RELEASE-p1 #2: Fri Jun 11 13:45:01 EEST 2010 root@test.inernal.net:/usr/obj/usr/src/sys/TEST amd64 >Description: net-mgmt/net-snmp port has broken libwrap support >How-To-Repeat: try to allow access to snmpd only from exact ip-address in /etc/hosts.allow and you get Connection REFUSED and no answer on snmp requests from this source. >Fix: remove patch files/patch-snmp_agent.c from ports directory and rebuild net-snmp port or apply this patch to portfiles: --- files/patch-snmp_agent.c.orig 2010-06-24 21:42:18.000000000 +0300 +++ files/patch-snmp_agent.c 2010-06-24 21:43:08.000000000 +0300 @@ -7,7 +7,7 @@ #ifdef USE_LIBWRAP /* Catch udp,udp6,tcp,tcp6 transports using "[" */ - tcpudpaddr = strstr(addr_string, "["); -+ tcpudpaddr = strrchr(addr_string, '['); ++ tcpudpaddr = strchr(addr_string, '['); if ( tcpudpaddr != 0 ) { char sbuf[64]; char *xp; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006241850.o5OIoNNa016036>