94f09986bc
UPS and also now preliminary support for PDUs. ok mbalmer (maintainer), "commit and we fix in-tree if i run into issues" henning
22 lines
727 B
Plaintext
22 lines
727 B
Plaintext
$OpenBSD: patch-clients_upsset_c,v 1.8 2009/04/03 15:40:12 sthen Exp $
|
|
--- clients/upsset.c.orig Tue Feb 17 09:20:43 2009
|
|
+++ clients/upsset.c Wed Mar 18 21:27:43 2009
|
|
@@ -192,7 +192,7 @@ static void do_pickups(const char *currfunc)
|
|
char hostfn[SMALLBUF];
|
|
PCONF_CTX_t ctx;
|
|
|
|
- snprintf(hostfn, sizeof(hostfn), "%s/hosts.conf", confpath());
|
|
+ snprintf(hostfn, sizeof(hostfn), "%s/hosts.conf", cgiconfpath());
|
|
|
|
printf("<FORM METHOD=\"POST\" ACTION=\"upsset.cgi\">\n");
|
|
|
|
@@ -981,7 +981,7 @@ static void check_conf(void)
|
|
char fn[SMALLBUF];
|
|
PCONF_CTX_t ctx;
|
|
|
|
- snprintf(fn, sizeof(fn), "%s/upsset.conf", confpath());
|
|
+ snprintf(fn, sizeof(fn), "%s/upsset.conf", cgiconfpath());
|
|
|
|
pconf_init(&ctx, upsset_conf_err);
|
|
|