Add fix for VuXML ID: ff00f2ce-c54c-11d8-b708-00061bc2ad93

When the IPv6 code was added to xdm a critical test to disable xdmcp was
accidentally removed. This caused xdm to create the chooser socket regardless
if DisplayManager.requestPort was disabled in xdm-config or not.

Prodded by:	Dejan Lesjak
Obtained from:	XFree86 bugzilla / X.Org CVS
This commit is contained in:
Eric Anholt
2004-07-06 00:53:26 +00:00
parent 2f364fb20e
commit dcda0e48ce
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@
PORTNAME= xorg-clients
PORTVERSION= 6.7.0
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://freedesktop.org/~xorg/X11R6.7.0/src/
DISTFILES= X11R6.7.0-src1.tar.gz \
+17
View File
@@ -0,0 +1,17 @@
Index: programs/xdm/socket.c
===================================================================
RCS file: /cvs/xorg/xc/programs/xdm/socket.c,v
retrieving revision 1.2
diff -u -r1.2 socket.c
--- programs/xdm/socket.c 23 Apr 2004 19:54:42 -0000 1.2
+++ programs/xdm/socket.c 6 Jul 2004 00:28:43 -0000
@@ -67,6 +67,9 @@
char *name = localHostname ();
registerHostname (name, strlen (name));
+ if (request_port == 0)
+ return;
+
#if defined(IPv6) && defined(AF_INET6)
chooserFd = socket (AF_INET6, SOCK_STREAM, 0);
if (chooserFd == -1)