f025b2164e
(now called agiler-old) upses such as the below can now work again: {0x0665, 0x5161, &agiler_old_subdriver}, /* Belkin F6C1200-UNV */ {0x06da, 0x0003, &agiler_old_subdriver}, /* Mustek Powermust */ {0x0f03, 0x0001, &agiler_old_subdriver}, /* Unitek Alpha 1200Sx * ok sthen@
22 lines
678 B
Plaintext
22 lines
678 B
Plaintext
$OpenBSD: patch-clients_upsstats_c,v 1.6 2008/09/08 19:38:30 martynas Exp $
|
|
--- clients/upsstats.c.orig Fri Feb 22 21:21:11 2008
|
|
+++ clients/upsstats.c Wed Aug 27 17:18:49 2008
|
|
@@ -825,7 +825,7 @@ static void display_template(const char *tfn)
|
|
{
|
|
char fn[SMALLBUF], buf[LARGEBUF];
|
|
|
|
- snprintf(fn, sizeof(fn), "%s/%s", confpath(), tfn);
|
|
+ snprintf(fn, sizeof(fn), "%s/%s", cgiconfpath(), tfn);
|
|
|
|
tf = fopen(fn, "r");
|
|
|
|
@@ -957,7 +957,7 @@ static void load_hosts_conf(void)
|
|
char fn[SMALLBUF];
|
|
PCONF_CTX_t ctx;
|
|
|
|
- snprintf(fn, sizeof(fn), "%s/hosts.conf", CONFPATH);
|
|
+ snprintf(fn, sizeof(fn), "%s/hosts.conf", cgiconfpath());
|
|
|
|
pconf_init(&ctx, upsstats_hosts_err);
|
|
|