2004-09-26 23:10:24 -04:00
|
|
|
$OpenBSD: patch-clients_upsstats_c,v 1.3 2004/09/27 03:10:24 marcm Exp $
|
|
|
|
--- clients/upsstats.c.orig Mon Sep 29 21:50:10 2003
|
|
|
|
+++ clients/upsstats.c Thu Sep 16 08:48:42 2004
|
|
|
|
@@ -658,7 +658,7 @@ static void display_template(const char
|
2003-01-16 18:42:18 -05:00
|
|
|
{
|
|
|
|
char fn[SMALLBUF], buf[LARGEBUF];
|
|
|
|
|
2004-02-09 01:48:48 -05:00
|
|
|
- snprintf(fn, sizeof(fn), "%s/%s", confpath(), tfn);
|
|
|
|
+ snprintf(fn, sizeof(fn), "%s/%s", cgiconfpath(), tfn);
|
2003-01-16 18:42:18 -05:00
|
|
|
|
|
|
|
tf = fopen(fn, "r");
|
|
|
|
|
2004-09-26 23:10:24 -04:00
|
|
|
@@ -715,7 +715,7 @@ static void load_hosts_conf(void)
|
2003-01-16 18:42:18 -05:00
|
|
|
char fn[SMALLBUF];
|
2004-02-09 01:48:48 -05:00
|
|
|
PCONF_CTX ctx;
|
2003-01-16 18:42:18 -05:00
|
|
|
|
|
|
|
- snprintf(fn, sizeof(fn), "%s/hosts.conf", CONFPATH);
|
2004-02-09 01:48:48 -05:00
|
|
|
+ snprintf(fn, sizeof(fn), "%s/hosts.conf", cgiconfpath());
|
|
|
|
|
|
|
|
pconf_init(&ctx, upsstats_hosts_err);
|
2003-01-16 18:42:18 -05:00
|
|
|
|