diff options
author | Krzysztof (3ED) AS | 2015-07-02 10:03:49 +0200 |
---|---|---|
committer | Krzysztof (3ED) AS | 2015-07-02 10:03:49 +0200 |
commit | 216fde130d34817b728581c921519db5c59bacf8 (patch) | |
tree | 5776aa2f2f3e7474fbfac440d78ca883effa12a5 /02_xdmcp-ipv6_bindv6only.patch | |
download | aur-216fde130d34817b728581c921519db5c59bacf8.tar.gz |
moving files, making space for additional scripts, aur4 and other stuff
Diffstat (limited to '02_xdmcp-ipv6_bindv6only.patch')
-rw-r--r-- | 02_xdmcp-ipv6_bindv6only.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/02_xdmcp-ipv6_bindv6only.patch b/02_xdmcp-ipv6_bindv6only.patch new file mode 100644 index 000000000000..b6278c9c32e2 --- /dev/null +++ b/02_xdmcp-ipv6_bindv6only.patch @@ -0,0 +1,29 @@ +Debian #563406 + +Index: gdm-2.20.10/daemon/gdm-xdmcp-manager.c +=================================================================== +--- gdm-2.20.10.orig/daemon/gdm-xdmcp-manager.c 2010-02-28 13:57:47.685002928 +0100 ++++ gdm-2.20.10/daemon/gdm-xdmcp-manager.c 2010-02-28 14:01:54.697504018 +0100 +@@ -398,6 +398,7 @@ static int + create_socket (struct addrinfo *ai) + { + int sock; ++ int zero = 0; + + sock = socket (ai->ai_family, ai->ai_socktype, ai->ai_protocol); + if (sock < 0) { +@@ -405,6 +406,14 @@ create_socket (struct addrinfo *ai) + return sock; + } + ++ if (ai->ai_family == AF_INET6) { ++ if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof zero) < 0) { ++ gdm_error("setsockopt(IPV6_V6ONLY): %s\n", g_strerror(errno)); ++ close(sock); ++ return -1; ++ } ++ } ++ + if (bind (sock, ai->ai_addr, ai->ai_addrlen) < 0) { + gdm_error ("bind: %s", g_strerror (errno)); + close (sock); |