2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +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

@@ -1,4 +1,6 @@
338. [bug] lwresd logged to syslog as named, not lwresd.
337. [bug] "dig" did not recognize "nsap-ptr" as an RR type
on the command line.

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: main.c,v 1.73 2000/07/10 11:34:56 tale Exp $ */
/* $Id: main.c,v 1.74 2000/07/18 17:49:59 bwelling Exp $ */
#include <config.h>
@@ -483,7 +483,7 @@ main(int argc, char *argv[]) {
isc_error_setfatal(library_fatal_error);
isc_error_setunexpected(library_unexpected_error);
ns_os_init();
ns_os_init(program_name);
result = isc_app_start();
if (result != ISC_R_SUCCESS)

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: os.h,v 1.8 2000/07/01 00:48:06 tale Exp $ */
/* $Id: os.h,v 1.9 2000/07/18 17:50:02 bwelling Exp $ */
#ifndef NS_OS_H
#define NS_OS_H 1
@@ -23,7 +23,7 @@
#include <isc/types.h>
void
ns_os_init(void);
ns_os_init(const char *progname);
void
ns_os_daemonize(void);

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