2004-02-09 01:48:48 -05:00
|
|
|
$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
|
2002-10-14 12:14:33 -04:00
|
|
|
char hostfn[SMALLBUF];
|
2004-02-09 01:48:48 -05:00
|
|
|
PCONF_CTX ctx;
|
2002-10-14 12:14:33 -04:00
|
|
|
|
2004-02-09 01:48:48 -05:00
|
|
|
- snprintf(hostfn, sizeof(hostfn), "%s/hosts.conf", confpath());
|
|
|
|
+ snprintf(hostfn, sizeof(hostfn), "%s/hosts.conf", cgiconfpath());
|
2002-10-14 12:14:33 -04:00
|
|
|
|
|
|
|
printf("<FORM METHOD=\"POST\" ACTION=\"upsset.cgi\">\n");
|
|
|
|
|
2004-02-09 01:48:48 -05:00
|
|
|
@@ -1495,7 +1495,7 @@ static void check_conf(void)
|
2002-10-14 12:14:33 -04:00
|
|
|
char fn[SMALLBUF];
|
2004-02-09 01:48:48 -05:00
|
|
|
PCONF_CTX ctx;
|
2002-10-14 12:14:33 -04:00
|
|
|
|
2004-02-09 01:48:48 -05:00
|
|
|
- snprintf(fn, sizeof(fn), "%s/upsset.conf", confpath());
|
|
|
|
+ snprintf(fn, sizeof(fn), "%s/upsset.conf", cgiconfpath());
|
2002-10-14 12:14:33 -04:00
|
|
|
|
2004-02-09 01:48:48 -05:00
|
|
|
pconf_init(&ctx, upsset_conf_err);
|
2002-10-14 12:14:33 -04:00
|
|
|
|