Code

patches: Removed ntpd_type_pun_fix.dpatch.
authorSebastian Harl <sh@tokkee.org>
Tue, 2 Jun 2009 19:11:47 +0000 (21:11 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 2 Jun 2009 19:13:25 +0000 (21:13 +0200)
This patch has been included upstream.

debian/changelog
debian/patches/00list
debian/patches/ntpd_type_pun_fix.dpatch [deleted file]

index 0b8d183a295e0e31d9824e3ae7965d02cba34cad..5ee8603591895e4bb900ff360d1bc8afc15f32be 100644 (file)
@@ -4,10 +4,11 @@ collectd (4.6.3-1) unstable; urgency=low
   * debian/patches:
     - Removed battery_acpi_complain.dpatch - included upstream.
     - Removed include_empty_files.dpatch - included upstream.
+    - Removed ntpd_type_pun_fix.dpatch - included upstream.
   * debian/rules:
     - Install collectd-network.py to /usr/share/doc/collectd/examples/.
 
- -- Sebastian Harl <tokkee@debian.org>  Tue, 02 Jun 2009 21:08:34 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Tue, 02 Jun 2009 21:11:22 +0200
 
 collectd (4.6.2-3) unstable; urgency=low
 
index d28f1dcdbc1438241517c9ff1a2572de57ff1515..de7db354c739296500bd04c2ea593e4bc1c114cb 100644 (file)
@@ -1,5 +1,4 @@
 rrd_filter_path.dpatch
 collection_conf_path.dpatch
-ntpd_type_pun_fix.dpatch
 rrdtool_uninitialized_fix.dpatch
 
diff --git a/debian/patches/ntpd_type_pun_fix.dpatch b/debian/patches/ntpd_type_pun_fix.dpatch
deleted file mode 100755 (executable)
index db185cf..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## ntpd_type_pun_fix.dpatch by Florian Forster <octo@verplant.org>
-##
-## DP: ntpd plugin: Fix dereference of type-punned pointer.
-
-@DPATCH@
-
-diff a/src/ntpd.c b/src/ntpd.c
---- a/src/ntpd.c
-+++ b/src/ntpd.c
-@@ -896,25 +896,33 @@ static int ntpd_read (void)
-                       if (ptr->v6_flag)
-                       {
--                              struct sockaddr_in6 *sa_ptr;
--                              sa_ptr = (struct sockaddr_in6 *) &sa;
-+                              struct sockaddr_in6 sa6;
--                              sa_ptr->sin6_family = AF_INET6;
--                              sa_ptr->sin6_port = htons (123);
--                              memcpy (&sa_ptr->sin6_addr, &ptr->srcadr6,
-+                              assert (sizeof (sa) >= sizeof (sa6));
-+
-+                              memset (&sa6, 0, sizeof (sa6));
-+                              sa6.sin6_family = AF_INET6;
-+                              sa6.sin6_port = htons (123);
-+                              memcpy (&sa6.sin6_addr, &ptr->srcadr6,
-                                               sizeof (struct in6_addr));
--                              sa_len = sizeof (struct sockaddr_in6);
-+                              sa_len = sizeof (sa6);
-+
-+                              memcpy (&sa, &sa6, sizeof (sa6));
-                       }
-                       else
-                       {
--                              struct sockaddr_in *sa_ptr;
--                              sa_ptr = (struct sockaddr_in *) &sa;
-+                              struct sockaddr_in sa4;
--                              sa_ptr->sin_family = AF_INET;
--                              sa_ptr->sin_port = htons (123);
--                              memcpy (&sa_ptr->sin_addr, &ptr->srcadr,
-+                              assert (sizeof (sa) >= sizeof (sa4));
-+
-+                              memset (&sa4, 0, sizeof (sa4));
-+                              sa4.sin_family = AF_INET;
-+                              sa4.sin_port = htons (123);
-+                              memcpy (&sa4.sin_addr, &ptr->srcadr,
-                                               sizeof (struct in_addr));
--                              sa_len = sizeof (struct sockaddr_in);
-+                              sa_len = sizeof (sa4);
-+
-+                              memcpy (&sa, &sa4, sizeof (sa4));
-                       }
-                       if (do_reverse_lookups == 0)