2008-01-30 15:55:59 -05:00
|
|
|
$OpenBSD: patch-clients_upsset_c,v 1.6 2008/01/30 20:55:59 mbalmer Exp $
|
|
|
|
--- clients/upsset.c.orig Sat May 26 16:24:26 2007
|
|
|
|
+++ clients/upsset.c Wed Aug 1 12:59:05 2007
|
|
|
|
@@ -192,7 +192,7 @@ static void do_pickups(const char *currfunc)
|
2002-10-14 12:14:33 -04:00
|
|
|
char hostfn[SMALLBUF];
|
2008-01-30 15:55:59 -05:00
|
|
|
PCONF_CTX_t 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");
|
|
|
|
|
2008-01-30 15:55:59 -05:00
|
|
|
@@ -979,7 +979,7 @@ static void check_conf(void)
|
2002-10-14 12:14:33 -04:00
|
|
|
char fn[SMALLBUF];
|
2008-01-30 15:55:59 -05:00
|
|
|
PCONF_CTX_t 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
|
|
|
|