patch-src_config_c 956 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-src_config_c,v 1.6 2016/05/10 09:38:48 dcoppa Exp $
  2. Recognize LOG_DAEMON as a valid facility
  3. --- src/config.c.orig Fri May 6 09:11:36 2016
  4. +++ src/config.c Tue May 10 10:09:59 2016
  5. @@ -54,6 +54,7 @@ configEnum maxmemory_policy_enum[] = {
  6. };
  7. configEnum syslog_facility_enum[] = {
  8. + {"daemon", LOG_DAEMON},
  9. {"user", LOG_USER},
  10. {"local0", LOG_LOCAL0},
  11. {"local1", LOG_LOCAL1},
  12. @@ -278,7 +279,7 @@ void loadServerConfigFromString(char *config) {
  13. server.syslog_facility =
  14. configEnumGetValue(syslog_facility_enum,argv[1]);
  15. if (server.syslog_facility == INT_MIN) {
  16. - err = "Invalid log facility. Must be one of USER or between LOCAL0-LOCAL7";
  17. + err = "Invalid log facility. Must be one of DAEMON, USER or between LOCAL0-LOCAL7";
  18. goto loaderr;
  19. }
  20. } else if (!strcasecmp(argv[0],"databases") && argc == 2) {