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

22 lines
719 B
Plaintext
Raw Normal View History

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