2009-04-03 11:40:12 -04:00
|
|
|
$OpenBSD: patch-clients_upsstats_c,v 1.7 2009/04/03 15:40:12 sthen Exp $
|
|
|
|
--- clients/upsstats.c.orig Tue Feb 17 09:20:43 2009
|
|
|
|
+++ clients/upsstats.c Wed Mar 18 21:27:43 2009
|
|
|
|
@@ -835,7 +835,7 @@ static void display_template(const char *tfn)
|
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");
|
|
|
|
|
2009-04-03 11:40:12 -04:00
|
|
|
@@ -955,7 +955,7 @@ static void load_hosts_conf(void)
|
2003-01-16 18:42:18 -05:00
|
|
|
char fn[SMALLBUF];
|
2008-01-30 15:55:59 -05:00
|
|
|
PCONF_CTX_t 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
|
|
|
|