summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-05 21:23:31 +1100
committerDamien Miller <djm@mindrot.org>2001-03-05 21:23:31 +1100
commit30246a8f2bc6f492f0d78b65da07e78d13869591 (patch)
treeb1eb405026a34b9f2ef06baab301bd265e1e1b8b /log.c
parent53f11c60b1802424f5d8817d3689750ff5c91073 (diff)
- (djm) Fix up LOG_AUTHPRIV for systems that have it
Diffstat (limited to 'log.c')
-rw-r--r--log.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/log.c b/log.c
index 11633fe3f..6131f4cdd 100644
--- a/log.c
+++ b/log.c
@@ -57,6 +57,9 @@ static struct {
57 { "DAEMON", SYSLOG_FACILITY_DAEMON }, 57 { "DAEMON", SYSLOG_FACILITY_DAEMON },
58 { "USER", SYSLOG_FACILITY_USER }, 58 { "USER", SYSLOG_FACILITY_USER },
59 { "AUTH", SYSLOG_FACILITY_AUTH }, 59 { "AUTH", SYSLOG_FACILITY_AUTH },
60#ifdef LOG_AUTHPRIV
61 { "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
62#endif
60 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 }, 63 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
61 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 }, 64 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
62 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 }, 65 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
@@ -284,12 +287,10 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
284 case SYSLOG_FACILITY_AUTH: 287 case SYSLOG_FACILITY_AUTH:
285 log_facility = LOG_AUTH; 288 log_facility = LOG_AUTH;
286 break; 289 break;
287#if 0 /* This is broken. =) - BAL */ 290#ifdef LOG_AUTHPRIV
288#ifdef LOG_AUTHPRIV /** BAL: Verify */ 291 case SYSLOG_FACILITY_AUTHPRIV:
289 case SYSLOG_FACILITY_AUTHPRIV 292 log_facility = LOG_AUTHPRIV;
290 log_facility = AUTHPRIV; 293 break;
291 break
292#endif
293#endif 294#endif
294 case SYSLOG_FACILITY_LOCAL0: 295 case SYSLOG_FACILITY_LOCAL0:
295 log_facility = LOG_LOCAL0; 296 log_facility = LOG_LOCAL0;