openbsd-ports/sysutils/nut/patches/patch-common_common_c
marcm 4170934308 Update to the 2.0 tree of Nut.
This is a feature release so if you're upgrading, take a look at the
release notes here:

http://random.networkupstools.org/source/2.0/new-2.0.0.txt
2004-09-27 03:10:24 +00:00

22 lines
570 B
Plaintext

$OpenBSD: patch-common_common_c,v 1.2 2004/09/27 03:10:24 marcm Exp $
--- common/common.c.orig Mon Mar 8 04:09:54 2004
+++ common/common.c Thu Sep 16 08:48:42 2004
@@ -271,6 +271,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)
{