1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00

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)
This commit is contained in:
John Baldwin 2017-04-10 17:17:33 +00:00
parent dff653b375
commit 74f6bded8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438192
2 changed files with 12 additions and 1 deletions

View File

@ -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-

View File

@ -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 ));