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

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