termux-packages/packages/net-snmp/agent-mibgroup-host-data_access-swinst_pkginfo.c.patch

12 lines
500 B
Diff
Raw Normal View History

2022-01-30 23:25:19 +01:00
--- a/agent/mibgroup/host/data_access/swinst_pkginfo.c
+++ b/agent/mibgroup/host/data_access/swinst_pkginfo.c
@@ -68,7 +68,7 @@
#elif defined(freebsd2) || defined(openbsd)
snprintf( pkg_directory, SNMP_MAXPATH, "/var/db/pkg" );
#elif defined(linux)
- snprintf( pkg_directory, SNMP_MAXPATH, "/var/cache/hrmib" );
+ snprintf( pkg_directory, SNMP_MAXPATH, "@TERMUX_PREFIX@/var/cache/hrmib" );
#else
pkg_directory[0] = '\0';
snmp_log( LOG_ERR, "SWInst: No package directory\n" );