summaryrefslogtreecommitdiff
path: root/debian/patches/dyson-bind-0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/dyson-bind-0.patch')
-rw-r--r--debian/patches/dyson-bind-0.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/dyson-bind-0.patch b/debian/patches/dyson-bind-0.patch
new file mode 100644
index 0000000..f40ae6b
--- /dev/null
+++ b/debian/patches/dyson-bind-0.patch
@@ -0,0 +1,22 @@
+Description: it is ok to bind on 0, otherwise it fails with
+fakeroot daemon: listen (Address family not supported by protocol family)
+Index: fakeroot.git/faked.c
+===================================================================
+--- fakeroot.git.orig/faked.c
++++ fakeroot.git/faked.c
+@@ -1434,7 +1434,6 @@ int main(int argc, char **argv){
+ if (setsockopt(sd, SOL_TCP, TCP_NODELAY, &val, sizeof (val)) < 0)
+ fail("setsockopt(TCP_NODELAY)");
+
+- if (port > 0) {
+ memset((char *) &addr, 0, sizeof (addr));
+ addr.sin_family = AF_INET;
+ addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
+@@ -1442,7 +1441,6 @@ int main(int argc, char **argv){
+
+ if (bind(sd, (struct sockaddr *) &addr, sizeof (addr)) < 0)
+ fail("bind");
+- }
+
+ if (listen(sd, SOMAXCONN) < 0)
+ fail("listen");