Files
xtrans/p_xauth.diff
Stefan Dirsch 30fcf1807f - Update to 1.6.0
Support for using getaddrinfo(), inet_ntop(), and struct sockaddr_storage
  was originally added to support IPv6, and only used if IPv6 support was
  enabled. Two decades later, these interfaces are ubiquitous and OS'es have
  starting marking the old interfaces as deprecated, so this release changes
  to use the modern interface whenever we can now.  (Note that this depends
  on the configure script or meson.build setting the appropriate HAVE_*
  defines in the calling code, so this may not be fully effective in code
  whose configure script was generated with a pre-1.6 version of xtrans.m4
  or whose meson.build has not had equivalent updates.)
- refreshed p_xauth.diff

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xtrans?expand=0&rev=36
2025-03-09 03:55:15 +00:00

21 lines
567 B
Diff

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;