Cygwin/X server -query fails with recent versions of Gnome GDM

Richard Evans richard.evans@datanomic.com
Wed Sep 30 09:35:00 GMT 2009


Cygwin 1.7beta, cygcheck output attached.

I am trying to start a remote session using:

XWin -query host

where the host is running GDM from Gnome 2.28.  The connect fails.   A
wireshark network snoop (attached) shows that GDM is sending
X_ChangeHosts requests with an address family of 5 (ServerInterpreted)
and a address like

	localuser:root

XWin responds with a BadValue error and the connection attempt fails.  I
speculate that XWin was compiled without support for the
ServerInterpreted address family.

I cannot find a workround for this.

For reference, here is a code snippet from GDM:

                XHostAddress host_entries[2] = {
                        { FamilyServerInterpreted },
                        { FamilyServerInterpreted }
                };
                XServerInterpretedAddress si_entries[2];

                g_debug ("GdmSlave: Connected to display %s",
slave->priv->display_name);
                ret = TRUE;

                /* Give programs run by the slave and greeter access to
the display
                 * independent of current hostname
                 */
                si_entries[0].type = "localuser";
                si_entries[0].typelength = strlen ("localuser");
                si_entries[1].type = "localuser";
                si_entries[1].typelength = strlen ("localuser");

                si_entries[0].value = "root";
                si_entries[0].valuelength = strlen ("root");
                si_entries[1].value = GDM_USERNAME;
                si_entries[1].valuelength = strlen (GDM_USERNAME);

                host_entries[0].address = (char *) &si_entries[0];
                host_entries[0].length = sizeof
(XServerInterpretedAddress);
                host_entries[1].address = (char *) &si_entries[1];
                host_entries[1].length = sizeof
(XServerInterpretedAddress);

                XAddHosts (slave->priv->server_display, host_entries,
                           G_N_ELEMENTS (host_entries));

Richard Evans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-q1.pcap
Type: application/octet-stream
Size: 6614 bytes
Desc: x11-q1.pcap
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20090930/f333293f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 88333 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20090930/f333293f/attachment-0001.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


More information about the Cygwin-xfree mailing list