From owner-svn-ports-head@freebsd.org Mon Apr 10 17:17:34 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C091ED377AD; Mon, 10 Apr 2017 17:17:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7343F8E6; Mon, 10 Apr 2017 17:17:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3AHHX91047006; Mon, 10 Apr 2017 17:17:33 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3AHHXV9047004; Mon, 10 Apr 2017 17:17:33 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201704101717.v3AHHXV9047004@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Mon, 10 Apr 2017 17:17:33 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2017 17:17:34 -0000 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 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 ));