diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-02-28 23:20:48 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-02-28 23:20:48 +1100 |
commit | 1f1e17bd61850dfa74455cfad9905c6da252c4af (patch) | |
tree | cba52762a7dcda70d9c338876f1c5c2dcc9b932d /sshd.c | |
parent | 0f26b1386a8beaa1884178f8793c91d84274ea7d (diff) |
- (dtucker) [sshd.c] Bug #1042: make log messages for tcpwrappers use the
same SyslogFacility as the rest of sshd. Patch from William Knox,
ok djm@.
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -122,8 +122,8 @@ | |||
122 | #ifdef LIBWRAP | 122 | #ifdef LIBWRAP |
123 | #include <tcpd.h> | 123 | #include <tcpd.h> |
124 | #include <syslog.h> | 124 | #include <syslog.h> |
125 | int allow_severity = LOG_INFO; | 125 | int allow_severity; |
126 | int deny_severity = LOG_WARNING; | 126 | int deny_severity; |
127 | #endif /* LIBWRAP */ | 127 | #endif /* LIBWRAP */ |
128 | 128 | ||
129 | #ifndef O_NOCTTY | 129 | #ifndef O_NOCTTY |
@@ -1747,6 +1747,8 @@ main(int ac, char **av) | |||
1747 | audit_connection_from(remote_ip, remote_port); | 1747 | audit_connection_from(remote_ip, remote_port); |
1748 | #endif | 1748 | #endif |
1749 | #ifdef LIBWRAP | 1749 | #ifdef LIBWRAP |
1750 | allow_severity = options.log_facility|LOG_INFO; | ||
1751 | deny_severity = options.log_facility|LOG_WARNING; | ||
1750 | /* Check whether logins are denied from this host. */ | 1752 | /* Check whether logins are denied from this host. */ |
1751 | if (packet_connection_is_on_socket()) { | 1753 | if (packet_connection_is_on_socket()) { |
1752 | struct request_info req; | 1754 | struct request_info req; |