Date: Wed, 22 Mar 2017 16:50:39 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218011] net-mgmt/net-snmp: Always pass valid flags to getfsstat() Message-ID: <bug-218011-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218011 Bug ID: 218011 Summary: net-mgmt/net-snmp: Always pass valid flags to getfsstat() Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: zi@FreeBSD.org Reporter: jhb@FreeBSD.org CC: slw@zxy.spb.ru Assignee: zi@FreeBSD.org Flags: maintainer-feedback?(zi@FreeBSD.org) Created attachment 181062 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D181062&action= =3Dedit net-snmp.getfsstat.patch The getfsstat() manpage says that the last argument should either be MNT_NO= WAIT or MNT_WAIT. I recently changed the code in HEAD (and then merged to stable/11) to validate this argument so that invalid values are rejected wi= th EINVAL. net-snmp calls getfsstat() in 4 places, 3 of which use MNT_NOWAIT = and 1 which passes '0'. This patch fixes the 4th instance to use MNT_NOWAIT. Issue reported by Slawa (cc'd). I've only tested that the patch applies, I have not run-tested this. Hopefully Slawa can verify the patch works corre= ctly at runtime. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218011-13>