openbsd-ports/sysutils/nut/patches/patch-common_common_c
mbalmer 903d6ac650 Update to nut ver. 2.2.1.
requested by and ok henning
2008-01-30 20:55:59 +00:00

22 lines
572 B
Plaintext

$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)
{