mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
338. [bug] lwresd logged to syslog as named, not lwresd.
This commit is contained in:
parent
e54e6744d6
commit
663841abe0
2
CHANGES
2
CHANGES
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user