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