ports/148116: net-mgmt/net-snmp 5.5 broken libwrap s

Y.A. nexther0 at gmail.com
Thu Jun 24 19:00:13 UTC 2010


>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 at 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:



More information about the freebsd-ports-bugs mailing list