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)
downloadopenssh-git-30246a8f2bc6f492f0d78b65da07e78d13869591.tar.gz
- (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 11633fe3..6131f4cd 100644
--- a/log.c
+++ b/log.c
@@ -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;