File p_xauth.diff of Package xtrans

Index: Xtranssock.c
===================================================================
--- Xtranssock.c.orig
+++ Xtranssock.c
@@ -1719,12 +1719,15 @@ UnixHostReallyLocal (const char *host)
 
 {
     char hostnamebuf[256];
+    char* xauthlocalname = getenv("XAUTHLOCALHOSTNAME");
 
     TRANS(GetHostname) (hostnamebuf, sizeof (hostnamebuf));
 
     if (strcmp (hostnamebuf, host) == 0)
     {
 	return (1);
+    } else if(xauthlocalname && strcmp (xauthlocalname, host) == 0) {
+	return (1);
     } else {
 #ifdef HAVE_GETADDRINFO
 	struct addrinfo *localhostaddr;
openSUSE Build Service is sponsored by