2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

1082. [bug] The -g option to named incorrectly caused logging

to be sent to syslog in addition to stderr.
This commit is contained in:
Andreas Gustafsson 2001-10-31 17:42:04 +00:00
parent 3b0c7a322a
commit cc8e8b59d6
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,6 @@
1082. [bug] The -g option to named incorrectly caused logging
to be sent to syslog in addition to stderr.
1081. [bug] Multicast queries were incorrectly identified
based on the source address, not the destination
address.

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: log.c,v 1.33 2001/06/14 14:14:17 gson Exp $ */
/* $Id: log.c,v 1.34 2001/10/31 17:42:04 gson Exp $ */
#include <config.h>
@ -168,10 +168,12 @@ isc_result_t
ns_log_setdefaultcategory(isc_logconfig_t *lcfg) {
isc_result_t result;
result = isc_log_usechannel(lcfg, "default_syslog",
ISC_LOGCATEGORY_DEFAULT, NULL);
if (result != ISC_R_SUCCESS)
goto cleanup;
if (! ns_g_logstderr) {
result = isc_log_usechannel(lcfg, "default_syslog",
ISC_LOGCATEGORY_DEFAULT, NULL);
if (result != ISC_R_SUCCESS)
goto cleanup;
}
result = isc_log_usechannel(lcfg, "default_debug",
ISC_LOGCATEGORY_DEFAULT, NULL);