Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 17:17:33 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438192 - in head/net-mgmt/net-snmp: . files
Message-ID:  <201704101717.v3AHHXV9047004@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 ));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704101717.v3AHHXV9047004>