openbsd-ports/sysutils/nut/patches/patch-clients_upsset_c
marcm 85dc249d41 Update to 1.4.1.
In addition to the standard bugfixes, this is a major port rewrite.
The port now uses a '_ups' user and the CGIs created can now run under
either chrooted Apache or non-chrooted Apache.
2004-02-09 06:48:48 +00:00

22 lines
743 B
Plaintext

$OpenBSD: patch-clients_upsset_c,v 1.3 2004/02/09 06:48:48 marcm Exp $
--- clients/upsset.c.orig 2004-01-03 14:55:55.000000000 -0800
+++ clients/upsset.c 2004-01-03 14:56:19.000000000 -0800
@@ -299,7 +299,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");
@@ -1495,7 +1495,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);