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

12 lines
382 B
Diff
Raw Normal View History

2022-01-30 23:25:19 +01:00
--- a/agent/mibgroup/host/hr_filesys.c
+++ b/agent/mibgroup/host/hr_filesys.c
@@ -892,7 +892,7 @@
if (cp1 == NULL)
cp1 = filesys;
- if ((dump_fp = fopen("/etc/dumpdates", "r")) == NULL)
+ if ((dump_fp = fopen("@TERMUX_PREFIX@/etc/dumpdates", "r")) == NULL)
return date_n_time(NULL, length);
while (fgets(line, sizeof(line), dump_fp) != NULL) {