$OpenBSD: patch-clients_upsstats_c,v 1.4 2007/05/18 12:22:46 henning Exp $ --- clients/upsstats.c.orig Wed Nov 8 03:08:45 2006 +++ clients/upsstats.c Fri May 18 13:54:23 2007 @@ -830,7 +830,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"); @@ -970,7 +970,7 @@ static void load_hosts_conf(void) char fn[SMALLBUF]; PCONF_CTX ctx; - snprintf(fn, sizeof(fn), "%s/hosts.conf", CONFPATH); + snprintf(fn, sizeof(fn), "%s/hosts.conf", cgiconfpath()); pconf_init(&ctx, upsstats_hosts_err);