xtrans/p_xauth.diff
Stefan Dirsch caeeb8887c Accepting request 121041 from home:vuntz:branches:X11:XOrg
Rename xorg-x11-xtrans-devel to xtrans (with Provides/Obsoletes); when pushing to Factory, we'll need 'osc deleterequest -m "Renamed to xtrans" openSUSE:Factory xorg-x11-xtrans-devel'

OBS-URL: https://build.opensuse.org/request/show/121041
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xtrans?expand=0&rev=1
2012-05-15 09:25:00 +00:00

19 lines
527 B
Diff

--- Xtranssock.c.orig 2009-10-16 23:25:57.000000000 +0200
+++ Xtranssock.c 2010-04-04 16:10:29.000000000 +0200
@@ -1790,12 +1790,15 @@
{
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 {
#if defined(IPv6) && defined(AF_INET6)
struct addrinfo *localhostaddr;