diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-04-10 17:17:33 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-04-10 17:17:33 +0000 |
commit | 74f6bded8b7389b774d5fe23b8d434305f0128a1 (patch) | |
tree | 93e1b4d883e1389d65762d6ab37d51d9b7d35c2b /net-mgmt/net-snmp/files | |
parent | dff653b3759ce5fe8efc5bf470f43b66d46b7be3 (diff) | |
download | ports-74f6bded8b7389b774d5fe23b8d434305f0128a1.tar.gz ports-74f6bded8b7389b774d5fe23b8d434305f0128a1.zip |
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)
Notes
Notes:
svn path=/head/; revision=438192
Diffstat (limited to 'net-mgmt/net-snmp/files')
-rw-r--r-- | net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c b/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c new file mode 100644 index 000000000000..564f3eabbb6d --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_fsys_fsys__getfsstats.c @@ -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 )); |