]> git.pld-linux.org Git - packages/chrony.git/commitdiff
- rel 5; revert commit which breaks responses on some multihomed machines; https... auto/th/chrony-3.5-5
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 28 Apr 2020 10:13:19 +0000 (12:13 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 28 Apr 2020 10:13:19 +0000 (12:13 +0200)
chrony.spec
dont-force-index.patch [new file with mode: 0644]

index 18f6cdb1ea1d8b1c596a7299c1555d0b36243f65..8bff36d10b8970f1fc5336798ac5e2b29a7d08f3 100644 (file)
@@ -3,7 +3,7 @@
 Summary:       An NTP client/server
 Name:          chrony
 Version:       3.5
-Release:       4
+Release:       5
 License:       GPL v2
 Group:         Daemons
 Source0:       http://download.tuxfamily.org/chrony/%{name}-%{version}.tar.gz
@@ -15,6 +15,7 @@ Source4:      %{name}d.init
 Source5:       %{name}.logrotate
 Patch0:                allow-clock_adjtime.patch
 Patch1:                fix-seccomp-build.patch
+Patch2:                dont-force-index.patch
 URL:           http://chrony.tuxfamily.org/
 BuildRequires: asciidoc
 BuildRequires: bison
@@ -55,6 +56,7 @@ in permanently connected environments.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 # NOTE: It is not autoconf generated configre
diff --git a/dont-force-index.patch b/dont-force-index.patch
new file mode 100644 (file)
index 0000000..32cb39c
--- /dev/null
@@ -0,0 +1,22 @@
+diff --git a/ntp_io.c b/ntp_io.c
+index ec844cb..e92d27e 100644
+--- a/ntp_io.c
++++ b/ntp_io.c
+@@ -827,8 +827,6 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
+     ipi = (struct in_pktinfo *) CMSG_DATA(cmsg);
+     ipi->ipi_spec_dst.s_addr = htonl(local_addr->ip_addr.addr.in4);
+-    if (local_addr->if_index != INVALID_IF_INDEX)
+-      ipi->ipi_ifindex = local_addr->if_index;
+   }
+ #endif
+@@ -847,8 +845,6 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
+     ipi = (struct in6_pktinfo *) CMSG_DATA(cmsg);
+     memcpy(&ipi->ipi6_addr.s6_addr, &local_addr->ip_addr.addr.in6,
+         sizeof(ipi->ipi6_addr.s6_addr));
+-    if (local_addr->if_index != INVALID_IF_INDEX)
+-      ipi->ipi6_ifindex = local_addr->if_index;
+   }
+ #endif
This page took 0.158889 seconds and 4 git commands to generate.