summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b20eedb)
raw | patch | inline | side by side (parent: b20eedb)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 2 Jun 2009 19:11:47 +0000 (21:11 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 2 Jun 2009 19:13:25 +0000 (21:13 +0200) |
This patch has been included upstream.
debian/changelog | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/ntpd_type_pun_fix.dpatch | [deleted file] | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 0b8d183a295e0e31d9824e3ae7965d02cba34cad..5ee8603591895e4bb900ff360d1bc8afc15f32be 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
* 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
diff --git a/debian/patches/00list b/debian/patches/00list
index d28f1dcdbc1438241517c9ff1a2572de57ff1515..de7db354c739296500bd04c2ea593e4bc1c114cb 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
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
+++ /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)