$OpenBSD: patch-common_common_c,v 1.4 2008/01/30 20:55:59 mbalmer Exp $ --- common/common.c.orig Sun May 27 16:07:56 2007 +++ common/common.c Wed Aug 1 12:59:05 2007 @@ -301,6 +301,17 @@ const char * confpath(void) return path; } +/* return a config path for the CGIs so they can be kept seperate */ +const char * cgiconfpath(void) +{ + const char * path; + + if ((path = getenv("NUT_CGICONFPATH")) == NULL) + path = CGICONFPATH; + + return path; +} + /* Return the default path for the directory containing state files */ const char * dflt_statepath(void) {