openbsd-ports/sysutils/nut/patches/patch-clients_upsset_c
sthen 94f09986bc update to 2.4.1, code cleanup and adds support for a bunch of new
UPS and also now preliminary support for PDUs.

ok mbalmer (maintainer),
"commit and we fix in-tree if i run into issues" henning
2009-04-03 15:40:12 +00:00

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);