diff options
author | Damien Miller <djm@mindrot.org> | 2001-03-05 21:23:31 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-03-05 21:23:31 +1100 |
commit | 30246a8f2bc6f492f0d78b65da07e78d13869591 (patch) | |
tree | b1eb405026a34b9f2ef06baab301bd265e1e1b8b /log.c | |
parent | 53f11c60b1802424f5d8817d3689750ff5c91073 (diff) | |
download | openssh-git-30246a8f2bc6f492f0d78b65da07e78d13869591.tar.gz |
- (djm) Fix up LOG_AUTHPRIV for systems that have it
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -57,6 +57,9 @@ static struct { { "DAEMON", SYSLOG_FACILITY_DAEMON }, { "USER", SYSLOG_FACILITY_USER }, { "AUTH", SYSLOG_FACILITY_AUTH }, +#ifdef LOG_AUTHPRIV + { "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV }, +#endif { "LOCAL0", SYSLOG_FACILITY_LOCAL0 }, { "LOCAL1", SYSLOG_FACILITY_LOCAL1 }, { "LOCAL2", SYSLOG_FACILITY_LOCAL2 }, @@ -284,12 +287,10 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr) case SYSLOG_FACILITY_AUTH: log_facility = LOG_AUTH; break; -#if 0 /* This is broken. =) - BAL */ -#ifdef LOG_AUTHPRIV /** BAL: Verify */ - case SYSLOG_FACILITY_AUTHPRIV - log_facility = AUTHPRIV; - break -#endif +#ifdef LOG_AUTHPRIV + case SYSLOG_FACILITY_AUTHPRIV: + log_facility = LOG_AUTHPRIV; + break; #endif case SYSLOG_FACILITY_LOCAL0: log_facility = LOG_LOCAL0; |