2007-05-18 08:22:45 -04:00
|
|
|
$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)
|
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-09-26 23:10:24 -04:00
|
|
|
@@ -989,7 +989,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
|
|
|
|