On Sun, Aug 19, 2012 at 11:43:11PM -0700, Garrett Cooper wrote:
> On Sun, Aug 19, 2012 at 11:42 PM, Garrett Cooper <yaneg...@gmail.com> wrote:
> > On Sun, Aug 19, 2012 at 11:39 PM, Niels Baggesen
> > <n...@users.sourceforge.net> wrote:
> >> A rather trivial patch, but useful :-)
> >
> > First hunk in the diff is incorrect:

Sometimes things are just too trivial :-(

Here is a corrected version!

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming
diff --git a/agent/mibgroup/host/data_access/swinst.h 
b/agent/mibgroup/host/data_access/swinst.h
index 887c355..591e957 100644
--- a/agent/mibgroup/host/data_access/swinst.h
+++ b/agent/mibgroup/host/data_access/swinst.h
@@ -26,7 +26,7 @@ config_exclude(host/hr_swinst)
 #elif defined( HAVE_LIBRPM ) && defined( linux )
     config_require(host/data_access/swinst_rpm)
-#elif defined( HAVE_PKGLOCS_H ) || defined( hpux9 ) || defined( hpux10 ) || 
defined( hpux11 ) || defined( freebsd2 ) || defined( linux )
+#elif defined( HAVE_PKGLOCS_H ) || defined( hpux9 ) || defined( hpux10 ) || 
defined( hpux11 ) || defined( freebsd2 ) || defined( linux ) || defined( 
openbsd )
     config_require(host/data_access/swinst_pkginfo)
 #else
     config_warning(This platform does not yet support hrSWInstalledTable 
rewrites)
     config_require(host/data_access/swinst_null)
diff --git a/agent/mibgroup/host/data_access/swinst_pkginfo.c 
b/agent/mibgroup/host/data_access/swinst_pkginfo.c
index 327ca70..965a7ef 100644
--- a/agent/mibgroup/host/data_access/swinst_pkginfo.c
+++ b/agent/mibgroup/host/data_access/swinst_pkginfo.c
@@ -59,7 +59,7 @@ netsnmp_swinst_arch_init(void)
     snprintf( pkg_directory, SNMP_MAXPATH, "/system" );
 #elif defined(hpux10) ||  defined(hpux11) 
     snprintf( pkg_directory, SNMP_MAXPATH, "/var/adm/sw/products" );
-#elif defined(freebsd2)
+#elif defined(freebsd2) || defined(openbsd)
     snprintf( pkg_directory, SNMP_MAXPATH, "/var/db/pkg" );
 #elif defined(linux)
     snprintf( pkg_directory, SNMP_MAXPATH, "/var/cache/hrmib" );
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to