summaryrefslogtreecommitdiffstats
path: root/network/openntpd/patches
diff options
context:
space:
mode:
Diffstat (limited to 'network/openntpd/patches')
-rw-r--r--network/openntpd/patches/01-ntpctl_rename.diff23
-rw-r--r--network/openntpd/patches/02-ntpd_8_clean.diff9
2 files changed, 17 insertions, 15 deletions
diff --git a/network/openntpd/patches/01-ntpctl_rename.diff b/network/openntpd/patches/01-ntpctl_rename.diff
index 5406b5cc35..c24c6f8bf3 100644
--- a/network/openntpd/patches/01-ntpctl_rename.diff
+++ b/network/openntpd/patches/01-ntpctl_rename.diff
@@ -1,6 +1,7 @@
---- a/src/ntpd.c.orig 2015-03-25 02:18:56.000000000 +0100
-+++ b/src/ntpd.c 2015-03-25 14:55:29.964709538 +0100
-@@ -100,9 +100,8 @@ usage(void)
+diff -Nur openntpd-6.8p1.orig/src/ntpd.c openntpd-6.8p1/src/ntpd.c
+--- openntpd-6.8p1.orig/src/ntpd.c 2020-12-07 02:20:35.000000000 -0600
++++ openntpd-6.8p1/src/ntpd.c 2021-07-18 21:33:55.169706930 -0500
+@@ -113,9 +113,8 @@
{
extern char *__progname;
@@ -10,28 +11,28 @@
+ if (strcmp(__progname, "openntpctl") == 0)
+ fprintf(stderr, "usage: %s -s all | peers | Sensors | status\n", __progname);
else
- fprintf(stderr, "usage: %s [-dnSsv] [-f file] [-p file]\n",
+ fprintf(stderr, "usage: %s [-dnv] [-f file] [-p file]\n",
__progname);
-@@ -131,7 +130,7 @@ main(int argc, char *argv[])
- struct passwd *pw;
- extern char *__progname;
+@@ -171,7 +170,7 @@
+
+ __progname = get_progname(argv[0]);
- if (strcmp(__progname, "ntpctl") == 0) {
+ if (strcmp(__progname, "openntpctl") == 0) {
ctl_main(argc, argv);
/* NOTREACHED */
}
-@@ -598,7 +597,7 @@ ctl_main(int argc, char *argv[])
+@@ -736,7 +735,7 @@
/* NOTREACHED */
if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
- err(1, "ntpctl: socket");
+ err(1, "openntpctl: socket");
- bzero(&sa, sizeof(sa));
+ memset(&sa, 0, sizeof(sa));
sa.sun_family = AF_UNIX;
-@@ -643,7 +642,7 @@ ctl_main(int argc, char *argv[])
- if ((n = imsg_read(ibuf_ctl)) == -1)
+@@ -784,7 +783,7 @@
+ if ((n = imsg_read(ibuf_ctl)) == -1 && errno != EAGAIN)
err(1, "ibuf_ctl: imsg_read error");
if (n == 0)
- errx(1, "ntpctl: pipe closed");
diff --git a/network/openntpd/patches/02-ntpd_8_clean.diff b/network/openntpd/patches/02-ntpd_8_clean.diff
index 8e999afdec..049806b1f4 100644
--- a/network/openntpd/patches/02-ntpd_8_clean.diff
+++ b/network/openntpd/patches/02-ntpd_8_clean.diff
@@ -1,6 +1,7 @@
---- a/src/ntpd.8.orig 2017-10-30 09:57:40.000000000 +0100
-+++ b/src/ntpd.8 2017-10-30 16:40:00.501570572 +0100
-@@ -102,18 +102,6 @@ adjusts the clock frequency using the
+diff -Nur openntpd-6.8p1.orig/src/ntpd.8 openntpd-6.8p1/src/ntpd.8
+--- openntpd-6.8p1.orig/src/ntpd.8 2020-12-07 02:20:35.000000000 -0600
++++ openntpd-6.8p1/src/ntpd.8 2021-07-18 21:34:49.338076927 -0500
+@@ -102,18 +102,6 @@
.Xr adjfreq 2
system call to compensate for systematic drift.
.Pp
@@ -19,7 +20,7 @@
When
.Nm
starts up, it reads settings from its configuration file,
-@@ -138,8 +126,6 @@ Socket file for communication with
+@@ -138,8 +126,6 @@
.Xr adjtime 2 ,
.Xr ntpd.conf 5 ,
.Xr ntpctl 8 ,