summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-01-25 16:57:38 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-01-25 16:57:38 +0000
commit49b91fbba34c78767a674039363c5da82fb20ff0 (patch)
tree1cffa6fbb74617fc088f1cefdd120ab633089ac5 /sbin
parentf690e97692df00783a69f9d38b15d994f4ccc73c (diff)
Revert local diff now that we no longer use syslog logging in
libunbound. OK phessler
Diffstat (limited to 'sbin')
-rw-r--r--sbin/unwind/libunbound/util/log.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sbin/unwind/libunbound/util/log.c b/sbin/unwind/libunbound/util/log.c
index e8e987963c5..dfbb2334994 100644
--- a/sbin/unwind/libunbound/util/log.c
+++ b/sbin/unwind/libunbound/util/log.c
@@ -109,20 +109,16 @@ log_init(const char* filename, int use_syslog, const char* chrootdir)
fclose(cl);
}
#ifdef HAVE_SYSLOG_H
-#if 0 /* unwind handles syslog for us */
if(logging_to_syslog) {
closelog();
logging_to_syslog = 0;
}
-#endif
if(use_syslog) {
/* do not delay opening until first write, because we may
* chroot and no longer be able to access dev/log and so on */
/* the facility is LOG_DAEMON by default, but
* --with-syslog-facility=LOCAL[0-7] can override it */
-#if 0 /* unwind handles syslog for us */
openlog(ident, LOG_NDELAY, UB_SYSLOG_FACILITY);
-#endif
logging_to_syslog = 1;
lock_basic_unlock(&log_lock);
return;