|
|
- From 48f06e1fee38cd2dafffe55bd94d14f23863c4ef Mon Sep 17 00:00:00 2001
- From: Brent Cook <busterb@gmail.com>
- Date: Tue, 30 Dec 2014 09:00:12 -0600
- Subject: [PATCH 11/16] Use LOG_NTP syslog facility.
-
- FreeBSD PR: 114191
- Submitted by: Robert Archer <freebsd@deathbeforedecaf.net>
- ---
- src/usr.sbin/ntpd/log.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
- diff --git a/src/usr.sbin/ntpd/log.c b/src/usr.sbin/ntpd/log.c
- index 618f4cc..32575e8 100644
- --- a/src/usr.sbin/ntpd/log.c
- +++ b/src/usr.sbin/ntpd/log.c
- @@ -26,6 +26,10 @@
-
- #include "ntpd.h"
-
- +#ifndef LOG_NTP
- +#define LOG_NTP LOG_DAEMON
- +#endif
- +
- int debug;
- extern int debugsyslog;
-
- @@ -37,7 +41,7 @@ log_init(int n_debug)
- debug = n_debug;
-
- if (!debug)
- - openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
- + openlog(__progname, LOG_PID | LOG_NDELAY, LOG_NTP);
-
- tzset();
- }
- --
- 1.9.1
-
|