summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Shadura <andrew.shadura@collabora.co.uk>2016-06-21 12:26:45 +0200
committerAndrew Shadura <andrew@shadura.me>2016-06-21 12:55:20 +0200
commit64201957955070a2bc3b5605153aab2a3c50d9b1 (patch)
tree1748167bb4bcf3d5378da408f3396428d5508f54
parent0a444bf4b7fe0d562666072e235486a49651f813 (diff)
Add a patch from upstream to allow ifplugd usage on machines that lack IPv4.
Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
-rw-r--r--debian/patches/08_allow_ipv4_less.patch27
-rw-r--r--debian/patches/series1
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/08_allow_ipv4_less.patch b/debian/patches/08_allow_ipv4_less.patch
new file mode 100644
index 0000000..0f3617d
--- /dev/null
+++ b/debian/patches/08_allow_ipv4_less.patch
@@ -0,0 +1,27 @@
+From e38f1280af7817305d823db5841a95340efb7e36 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Tue, 20 Nov 2007 21:25:46 +0000
+Subject: allow ifplugd usage on machines that lack IPv4. Patch from Alon
+ Bar-Lev
+
+git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@136 2bf48fe7-cfc1-0310-909f-d9042e1e0fef
+---
+ src/ifplugd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ifplugd.c b/src/ifplugd.c
+index ddbb024..99ab489 100644
+--- a/src/ifplugd.c
++++ b/src/ifplugd.c
+@@ -424,7 +424,7 @@
+ break;
+ }
+
+- if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
++ if ((fd = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0) {
+ daemon_log(LOG_ERR, "socket(): %s", strerror(errno));
+ goto finish;
+ }
+--
+cgit v0.12
+
diff --git a/debian/patches/series b/debian/patches/series
index 963bb4f..27e0249 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
05_396895_HOTPLUG_conf_man.patch
06_509015_better_delays.patch
07_add_fractional_delays.patch
+08_allow_ipv4_less.patch