svn commit: r438192 - in head/net-mgmt/net-snmp: . files

John Baldwin jhb at FreeBSD.org
Mon Apr 10 17:17:34 UTC 2017


Author: jhb (src,doc committer)
Date: Mon Apr 10 17:17:33 2017
New Revision: 438192
URL: https://svnweb.freebsd.org/changeset/ports/438192

Log:
  Always pass MNT_NOWAIT to getfsstat() as documented in the manpage.
  
  One of the four calls in net-snmp currently passes 0 which triggers an
  EINVAL change after recent changes in HEAD and 11-stable to add stricter
  argument checking for the flags passed to getsstat().
  
  Bump PORTREVISION.
  
  PR:		218011
  Reported by:	Slawa Olhovchenkov <slw at zxy.spb.ru>
  Reviewed by:	brooks
  Approved by:	maintainer (zi)

Added:
  head/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c   (contents, props changed)
Modified:
  head/net-mgmt/net-snmp/Makefile

Modified: head/net-mgmt/net-snmp/Makefile
==============================================================================
--- head/net-mgmt/net-snmp/Makefile	Mon Apr 10 17:11:46 2017	(r438191)
+++ head/net-mgmt/net-snmp/Makefile	Mon Apr 10 17:17:33 2017	(r438192)
@@ -3,7 +3,7 @@
 
 PORTNAME=	snmp
 PORTVERSION=	5.7.3
-PORTREVISION=	14
+PORTREVISION=	15
 CATEGORIES=	net-mgmt ipv6
 MASTER_SITES=	SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	net-

Added: head/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c	Mon Apr 10 17:17:33 2017	(r438192)
@@ -0,0 +1,11 @@
+--- agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig	2017-03-22 16:28:29 UTC
++++ agent/mibgroup/hardware/fsys/fsys_getfsstats.c
+@@ -116,7 +116,7 @@ netsnmp_fsys_arch_load( void )
+     /*
+      * Retrieve information about the currently mounted filesystems...
+      */
+-    n = NSFS_GETFSSTAT( NULL, 0, 0 );
++    n = NSFS_GETFSSTAT( NULL, 0, MNT_NOWAIT );
+     if ( n==0 )
+         return;
+     stats = (struct NSFS_STATFS *)malloc( n * sizeof( struct NSFS_STATFS ));


More information about the svn-ports-head mailing list