4170934308
This is a feature release so if you're upgrading, take a look at the release notes here: http://random.networkupstools.org/source/2.0/new-2.0.0.txt
22 lines
719 B
Plaintext
22 lines
719 B
Plaintext
$OpenBSD: patch-clients_upsset_c,v 1.4 2004/09/27 03:10:24 marcm Exp $
|
|
--- clients/upsset.c.orig Mon Mar 8 04:09:03 2004
|
|
+++ clients/upsset.c Thu Sep 16 08:48:42 2004
|
|
@@ -202,7 +202,7 @@ static void do_pickups(const char *currf
|
|
char hostfn[SMALLBUF];
|
|
PCONF_CTX 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");
|
|
|
|
@@ -989,7 +989,7 @@ static void check_conf(void)
|
|
char fn[SMALLBUF];
|
|
PCONF_CTX ctx;
|
|
|
|
- snprintf(fn, sizeof(fn), "%s/upsset.conf", confpath());
|
|
+ snprintf(fn, sizeof(fn), "%s/upsset.conf", cgiconfpath());
|
|
|
|
pconf_init(&ctx, upsset_conf_err);
|
|
|