@ -1,8 +1,10 @@ | |||||
From 53006c85af7c8b69afa3847e12107588c1460c5a Mon Sep 17 00:00:00 2001 | |||||
From 27f9b15fed29f671606ce6f5322c6407c0456615 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Tue, 30 Dec 2014 08:58:26 -0600 | Date: Tue, 30 Dec 2014 08:58:26 -0600 | ||||
Subject: [PATCH 01/16] include time.h for clock_gettime | |||||
Subject: [PATCH 01/16] include time.h for strftime, clock_gettime | |||||
Add a missing include for time.h to get the definitions of | |||||
clock_gettime and strftime. | |||||
--- | --- | ||||
src/usr.sbin/ntpd/ntpd.c | 1 + | src/usr.sbin/ntpd/ntpd.c | 1 + | ||||
src/usr.sbin/ntpd/util.c | 2 ++ | src/usr.sbin/ntpd/util.c | 2 ++ |
@ -1,8 +1,10 @@ | |||||
From da6f7a99e25c9fa0fca75576eaf29f0e8fe67441 Mon Sep 17 00:00:00 2001 | |||||
From 0d94976a5b804c445cb8c34d2d0665c379e86ee5 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Tue, 30 Dec 2014 08:59:19 -0600 | Date: Tue, 30 Dec 2014 08:59:19 -0600 | ||||
Subject: [PATCH 02/16] removed unused libevent header and structures | |||||
Subject: [PATCH 02/16] removed unused libevent header and structures in ntpd.h | |||||
It does not appear anything actually uses libevent in ntpd, so remove | |||||
the libevent-using structures from ntpd.h | |||||
--- | --- | ||||
src/usr.sbin/ntpd/ntpd.h | 10 ---------- | src/usr.sbin/ntpd/ntpd.h | 10 ---------- | ||||
1 file changed, 10 deletions(-) | 1 file changed, 10 deletions(-) |
@ -1,8 +1,10 @@ | |||||
From 06c8339b3a1bde6f71d437d792ae01d118832fb4 Mon Sep 17 00:00:00 2001 | |||||
From a74e51f0e68d0d437c340a197ef7fcba8ab3b3aa Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Wed, 31 Dec 2014 22:39:58 -0600 | Date: Wed, 31 Dec 2014 22:39:58 -0600 | ||||
Subject: [PATCH 04/16] add MAX macro | |||||
Subject: [PATCH 04/16] add MAX macro, used in a few places in ntpd | |||||
Do not assume that the system #includes happen to include a MAX macro | |||||
somewhere along the way. | |||||
--- | --- | ||||
src/usr.sbin/ntpd/ntpd.h | 4 ++++ | src/usr.sbin/ntpd/ntpd.h | 4 ++++ | ||||
1 file changed, 4 insertions(+) | 1 file changed, 4 insertions(+) |
@ -1,9 +1,10 @@ | |||||
From 8c872d895d50214a23aad90a7cb31a7a51a08e29 Mon Sep 17 00:00:00 2001 | |||||
From 0a52220f114d2134d0e6180aa1c9fccdb6050700 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Wed, 31 Dec 2014 22:08:09 -0600 | Date: Wed, 31 Dec 2014 22:08:09 -0600 | ||||
Subject: [PATCH 08/16] rename socket to avoid a variable called 'sun' | |||||
Subject: [PATCH 05/16] rename the s_un socket to avoid a variable called 'sun' | |||||
Solaris defines 'sun' as a constant. | |||||
Solaris build environments seem to define 'sun' as a constant. | |||||
Hilarity ensues. | |||||
--- | --- | ||||
src/usr.sbin/ntpd/control.c | 18 +++++++++--------- | src/usr.sbin/ntpd/control.c | 18 +++++++++--------- | ||||
src/usr.sbin/ntpd/ntpd.c | 12 ++++++------ | src/usr.sbin/ntpd/ntpd.c | 12 ++++++------ |
@ -1,7 +1,7 @@ | |||||
From b0d68d365d6b4512a5a07d14e56f0c51cdeae0c3 Mon Sep 17 00:00:00 2001 | |||||
From 0b2940a2ba2e04fe876b7e8828d05e2d6b750797 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Thu, 1 Jan 2015 13:06:38 -0600 | Date: Thu, 1 Jan 2015 13:06:38 -0600 | ||||
Subject: [PATCH 05/16] be more verbose when logging privsep errors | |||||
Subject: [PATCH 06/16] be more verbose when logging privsep errors | |||||
Make it easy for a sysadmin to diagnose a privilege separation path | Make it easy for a sysadmin to diagnose a privilege separation path | ||||
problem without looking at the source code. | problem without looking at the source code. |
@ -1,7 +1,7 @@ | |||||
From 555e4346d4a441e2385b91c3188edbe9b093cfd5 Mon Sep 17 00:00:00 2001 | |||||
From f478e7be28896cd6e42622a72c691b0f56b01aa9 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Thu, 1 Jan 2015 13:26:29 -0600 | Date: Thu, 1 Jan 2015 13:26:29 -0600 | ||||
Subject: [PATCH 06/16] do not allow privsep user to be a privileged user | |||||
Subject: [PATCH 07/16] do not allow privsep user to be a privileged user | |||||
This may need to be a function call for different platforms with | This may need to be a function call for different platforms with | ||||
different capability / privilege mechanisms. | different capability / privilege mechanisms. |
@ -1,7 +1,7 @@ | |||||
From 42535b62e78e5869fd6fef0f075eb17fb0148559 Mon Sep 17 00:00:00 2001 | |||||
From abc0fb186de14dae5cacae4d1a8352c7f78106f6 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Tue, 30 Dec 2014 09:10:22 -0600 | Date: Tue, 30 Dec 2014 09:10:22 -0600 | ||||
Subject: [PATCH 07/16] Handle IPv6 DNS records on IPv4 networks more liberally | |||||
Subject: [PATCH 08/16] Handle IPv6 DNS records on IPv4 networks more liberally | |||||
Rather than fail on IPv4 only networks when seeing an IPv6 DNS record, | Rather than fail on IPv4 only networks when seeing an IPv6 DNS record, | ||||
just give a warning. | just give a warning. |
@ -1,18 +1,24 @@ | |||||
From d874a2d6c44f3656289437b49002ba0f19ca63a2 Mon Sep 17 00:00:00 2001 | |||||
From 9404e4f538cde156e08393f7a88a62c631a5ab42 Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Tue, 30 Dec 2014 09:04:08 -0600 | Date: Tue, 30 Dec 2014 09:04:08 -0600 | ||||
Subject: [PATCH 12/16] EAI_NODATA does not exist everywhere | |||||
Subject: [PATCH 10/16] EAI_NODATA does not exist everywhere | |||||
FreeBSD says it is deprecated and should be removed. | |||||
FreeBSD says it is deprecated #ifdef's it out. | |||||
Linux glibc hides it and many other return codes behind __USE_GNU. | |||||
What is that supposed to mean? | |||||
It seems the only effect of 'deprecating' this value has been that all | |||||
portable software now has to have a special check instead. | |||||
--- | --- | ||||
src/usr.sbin/ntpd/config.c | 10 ++++++++-- | src/usr.sbin/ntpd/config.c | 10 ++++++++-- | ||||
1 file changed, 8 insertions(+), 2 deletions(-) | 1 file changed, 8 insertions(+), 2 deletions(-) | ||||
diff --git a/src/usr.sbin/ntpd/config.c b/src/usr.sbin/ntpd/config.c | diff --git a/src/usr.sbin/ntpd/config.c b/src/usr.sbin/ntpd/config.c | ||||
index b651c62..d571dd7 100644 | |||||
index d660750..22b692b 100644 | |||||
--- a/src/usr.sbin/ntpd/config.c | --- a/src/usr.sbin/ntpd/config.c | ||||
+++ b/src/usr.sbin/ntpd/config.c | +++ b/src/usr.sbin/ntpd/config.c | ||||
@@ -128,8 +128,14 @@ host_dns(const char *s, struct ntp_addr **hn) | |||||
@@ -124,8 +124,14 @@ host_dns(const char *s, struct ntp_addr **hn) | |||||
hints.ai_family = PF_UNSPEC; | hints.ai_family = PF_UNSPEC; | ||||
hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ | hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ | ||||
error = getaddrinfo(s, NULL, &hints, &res0); | error = getaddrinfo(s, NULL, &hints, &res0); |
@ -1,7 +1,7 @@ | |||||
From 204f212fd5905b8af28f22c49254be4a29923c94 Mon Sep 17 00:00:00 2001 | |||||
From 48f06e1fee38cd2dafffe55bd94d14f23863c4ef Mon Sep 17 00:00:00 2001 | |||||
From: Brent Cook <busterb@gmail.com> | From: Brent Cook <busterb@gmail.com> | ||||
Date: Tue, 30 Dec 2014 09:00:12 -0600 | Date: Tue, 30 Dec 2014 09:00:12 -0600 | ||||
Subject: [PATCH 10/16] Use LOG_NTP syslog facility. | |||||
Subject: [PATCH 11/16] Use LOG_NTP syslog facility. | |||||
FreeBSD PR: 114191 | FreeBSD PR: 114191 | ||||
Submitted by: Robert Archer <freebsd@deathbeforedecaf.net> | Submitted by: Robert Archer <freebsd@deathbeforedecaf.net> |