patch-common_common_c 570 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-common_common_c,v 1.7 2011/09/19 15:59:57 sthen Exp $
  2. --- common/common.c.orig Thu Sep 15 12:30:44 2011
  3. +++ common/common.c Mon Sep 19 09:22:03 2011
  4. @@ -363,6 +363,17 @@ const char * confpath(void)
  5. return path;
  6. }
  7. +/* return a config path for the CGIs so they can be kept seperate */
  8. +const char * cgiconfpath(void)
  9. +{
  10. + const char * path;
  11. +
  12. + if ((path = getenv("NUT_CGICONFPATH")) == NULL)
  13. + path = CGICONFPATH;
  14. +
  15. + return path;
  16. +}
  17. +
  18. /* Return the default path for the directory containing state files */
  19. const char * dflt_statepath(void)
  20. {