diff options
author | sylvio <sylvio@FreeBSD.org> | 2010-05-01 09:38:48 +0800 |
---|---|---|
committer | sylvio <sylvio@FreeBSD.org> | 2010-05-01 09:38:48 +0800 |
commit | d2a481c7ef07b4f8701365cdf4143815e0875b76 (patch) | |
tree | 0978320729e7335c79f0ecd19c7f014abd28e3f7 /net-mgmt | |
parent | 2375f856ef54070e38ea09f2c96d5214e4da2062 (diff) | |
download | freebsd-ports-gnome-d2a481c7ef07b4f8701365cdf4143815e0875b76.tar.gz freebsd-ports-gnome-d2a481c7ef07b4f8701365cdf4143815e0875b76.tar.zst freebsd-ports-gnome-d2a481c7ef07b4f8701365cdf4143815e0875b76.zip |
- Fix problem of empty hrStorageTable when skipNFSInHostResources is set to 1
- BUMP PORTREVISION
PR: ports/144200
Submitted by: Chris van der Wel <chris@argeweb.nl>
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-agent_mibgroup_host_hr_storage.c | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index fd292b88597f..e5635215e1c9 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.4.2.1 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= net-mgmt ipv6 MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= net- diff --git a/net-mgmt/net-snmp/files/patch-agent_mibgroup_host_hr_storage.c b/net-mgmt/net-snmp/files/patch-agent_mibgroup_host_hr_storage.c new file mode 100644 index 000000000000..72ba4a164333 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent_mibgroup_host_hr_storage.c @@ -0,0 +1,21 @@ +--- agent/mibgroup/host/hr_storage.c.orig 2008-06-05 18:11:53.000000000 -0300 ++++ agent/mibgroup/host/hr_storage.c 2010-04-30 21:39:50.000000000 -0300 +@@ -523,12 +523,12 @@ + return NULL; + + store_idx = name[ HRSTORE_ENTRY_NAME_LENGTH ]; +- if (HRFS_entry && +- netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID, +- NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES) && +- Check_HR_FileSys_NFS()) +- return NULL; +- if (store_idx > NETSNMP_MEM_TYPE_MAX ) { ++ if (store_idx > NETSNMP_MEM_TYPE_MAX ) { ++ if (netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID, ++ NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES) && ++ Check_HR_FileSys_NFS()) ++ return NULL; ++ + if (HRFS_statfs(HRFS_entry->HRFS_mount, &stat_buf) < 0) { + snmp_log_perror(HRFS_entry->HRFS_mount); + goto try_next; |