Blame SOURCES/net-snmp-5.7.2-hrFSTable-read-write.patch

b5ae06
commit aff1fb31dac236bb5f8e641c92e5651f00fa4f7d
b5ae06
Author: Jan Safranek <jsafranek@users.sourceforge.net>
b5ae06
Date:   Thu Jul 30 11:25:48 2015 +0200
b5ae06
b5ae06
    CHANGES: snmpd: restore read-write flag in hrFSTable when a device becomes writable
b5ae06
b5ae06
diff --git a/agent/mibgroup/hardware/fsys/fsys_mntent.c b/agent/mibgroup/hardware/fsys/fsys_mntent.c
b5ae06
index 6fe4ed4..8a12181 100644
b5ae06
--- a/agent/mibgroup/hardware/fsys/fsys_mntent.c
b5ae06
+++ b/agent/mibgroup/hardware/fsys/fsys_mntent.c
b5ae06
@@ -206,6 +206,8 @@ netsnmp_fsys_arch_load( void )
b5ae06
 #if HAVE_HASMNTOPT
b5ae06
         if (hasmntopt( m, "ro" ))
b5ae06
             entry->flags |= NETSNMP_FS_FLAG_RONLY;
b5ae06
+        else
b5ae06
+            entry->flags &= ~NETSNMP_FS_FLAG_RONLY;
b5ae06
 #endif
b5ae06
         /*
b5ae06
          *  The root device is presumably bootable.