2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

338. [bug] lwresd logged to syslog as named, not lwresd.

This commit is contained in:
Brian Wellington
2000-07-18 17:50:02 +00:00
parent e54e6744d6
commit 663841abe0
4 changed files with 11 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: os.c,v 1.26 2000/07/08 00:12:21 bwelling Exp $ */
/* $Id: os.c,v 1.27 2000/07/18 17:50:01 bwelling Exp $ */
#include <config.h>
@@ -175,7 +175,7 @@ linux_keepcaps(void) {
static void
setup_syslog(void) {
setup_syslog(const char *progname) {
int options;
options = LOG_PID;
@@ -183,12 +183,12 @@ setup_syslog(void) {
options |= LOG_NDELAY;
#endif
openlog("named", options, LOG_DAEMON);
openlog(progname, options, LOG_DAEMON);
}
void
ns_os_init(void) {
setup_syslog();
ns_os_init(const char *progname) {
setup_syslog(progname);
#ifdef HAVE_LINUX_CAPABILITY_H
linux_initialprivs();
#endif