$OpenBSD: patch-clients_upsstats_c,v 1.6 2008/09/08 19:38:30 martynas Exp $
--- clients/upsstats.c.orig	Fri Feb 22 21:21:11 2008
+++ clients/upsstats.c	Wed Aug 27 17:18:49 2008
@@ -825,7 +825,7 @@ static void display_template(const char *tfn)
 {
 	char	fn[SMALLBUF], buf[LARGEBUF];	
 
-	snprintf(fn, sizeof(fn), "%s/%s", confpath(), tfn);
+	snprintf(fn, sizeof(fn), "%s/%s", cgiconfpath(), tfn);
 
 	tf = fopen(fn, "r");
 
@@ -957,7 +957,7 @@ static void load_hosts_conf(void)
 	char	fn[SMALLBUF];
 	PCONF_CTX_t	ctx;
 
-	snprintf(fn, sizeof(fn), "%s/hosts.conf", CONFPATH);
+	snprintf(fn, sizeof(fn), "%s/hosts.conf", cgiconfpath());
 
 	pconf_init(&ctx, upsstats_hosts_err);
 
