openbsd-ports/sysutils/nut/patches/patch-clients_upsset_c

22 lines
729 B
Plaintext
Raw Normal View History

$OpenBSD: patch-clients_upsset_c,v 1.6 2008/01/30 20:55:59 mbalmer Exp $
--- clients/upsset.c.orig Sat May 26 16:24:26 2007
+++ clients/upsset.c Wed Aug 1 12:59:05 2007
@@ -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");
@@ -979,7 +979,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);