diff options
author | zi <zi@FreeBSD.org> | 2012-04-05 02:49:59 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2012-04-05 02:49:59 +0800 |
commit | 7985886b57152296c846275c538bb000372b4d47 (patch) | |
tree | 4ed0d057affb8b596f207c2f9412671b3821aa8e /net-mgmt | |
parent | 5aafaca8f2740a46e85c175e0ce0562e6909325b (diff) | |
download | freebsd-ports-gnome-7985886b57152296c846275c538bb000372b4d47.tar.gz freebsd-ports-gnome-7985886b57152296c846275c538bb000372b4d47.tar.zst freebsd-ports-gnome-7985886b57152296c846275c538bb000372b4d47.zip |
- Merge in upstream patch to resolve bug 3460364: Fix use of block factor when detecting error conditions
- Bump PORTREVISION
Feature safe: yes
Obtained from: upstream git repo
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__ucd-snmp__disk_hw.c | 31 |
2 files changed, 30 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index a930a8190434..05a94f885017 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.7.1 -PORTREVISION= 5 +PORTREVISION= 6 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__ucd-snmp__disk_hw.c b/net-mgmt/net-snmp/files/patch-agent__mibgroup__ucd-snmp__disk_hw.c index 3fd748d01a01..1859fab33fc2 100644 --- a/net-mgmt/net-snmp/files/patch-agent__mibgroup__ucd-snmp__disk_hw.c +++ b/net-mgmt/net-snmp/files/patch-agent__mibgroup__ucd-snmp__disk_hw.c @@ -1,5 +1,5 @@ ---- agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-27 20:53:47.000000000 -0800 -+++ agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-19 16:21:29.000000000 -0900 +--- ./agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-28 00:53:47.000000000 -0400 ++++ ./agent/mibgroup/ucd-snmp/disk_hw.c 2012-04-04 06:33:38.000000000 -0400 @@ -137,6 +137,7 @@ if (disks) { free( disks ); @@ -26,3 +26,30 @@ return ((u_char *) (&long_ret)); case ERRORNAME: /* DISKPATH */ *var_len = strlen(entry->path); +@@ -388,8 +389,9 @@ + + case ERRORFLAG: + long_ret = 0; ++ val = netsnmp_fsys_avail_ull(entry); + if (( entry->minspace >= 0 ) && +- ( entry->avail < entry->minspace )) ++ ( val < entry->minspace )) + long_ret = 1; + else if (( entry->minpercent >= 0 ) && + (_percent( entry->avail, entry->size ) < entry->minpercent )) +@@ -398,12 +400,13 @@ + + case ERRORMSG: + errmsg[0] = 0; ++ val = netsnmp_fsys_avail_ull(entry); + if (( entry->minspace >= 0 ) && +- ( entry->avail < entry->minspace )) ++ ( val < entry->minspace )) + snprintf(errmsg, sizeof(errmsg), + "%s: less than %d free (= %d)", + entry->path, entry->minspace, +- (int) entry->avail); ++ (int) val); + else if (( entry->minpercent >= 0 ) && + (_percent( entry->avail, entry->size ) < entry->minpercent )) + snprintf(errmsg, sizeof(errmsg), |