summaryrefslogtreecommitdiff
path: root/net/bftpd/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/bftpd/patches/patch-ac')
-rw-r--r--net/bftpd/patches/patch-ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/bftpd/patches/patch-ac b/net/bftpd/patches/patch-ac
new file mode 100644
index 00000000000..7d0546a40a0
--- /dev/null
+++ b/net/bftpd/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1.2.2 2010/06/07 19:06:20 tron Exp $
+
+Bind failed: Address famly not supported by protocol family
+
+--- main.c.orig 2010-04-11 12:21:24.000000000 +0000
++++ main.c
+@@ -248,6 +248,7 @@ int main(int argc, char **argv)
+ sizeof(i));
+ #endif
+ memset((void *) &myaddr, 0, sizeof(myaddr));
++ myaddr.sin_family = AF_INET;
+ if (!((port = strtoul(config_getoption("PORT"), NULL, 10))))
+ port = DEFAULT_PORT;
+ myaddr.sin_port = htons(port);