openbsd-ports/sysutils/nut/patches/patch-clients_upsstats_c

22 lines
661 B
Plaintext
Raw Normal View History

$OpenBSD: patch-clients_upsstats_c,v 1.1 2003/01/16 23:42:18 marcm Exp $
--- clients/upsstats.c.orig Tue Oct 29 07:12:42 2002
+++ clients/upsstats.c Sun Dec 29 18:10:20 2002
@@ -594,7 +594,7 @@ static void display_template(const char
{
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");
@@ -670,7 +670,7 @@ static void load_hosts_conf(void)
{
char fn[SMALLBUF];
- snprintf(fn, sizeof(fn), "%s/hosts.conf", CONFPATH);
+ snprintf(fn, sizeof(fn), "%s/hosts.conf", CGICONFPATH);
parseconf(fn, hosts_conf_args, hosts_conf_error);
}