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

22 lines
725 B
Plaintext
Raw Normal View History

$OpenBSD: patch-clients_upsset_c,v 1.5 2007/05/18 12:22:46 henning Exp $
--- clients/upsset.c.orig Mon Jul 10 14:33:14 2006
+++ clients/upsset.c Fri May 18 13:54:23 2007
@@ -202,7 +202,7 @@ static void do_pickups(const char *currfunc)
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);