Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Factory:PowerPC
libxcb
bug-262309_xcb-xauthlocalhostname.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-262309_xcb-xauthlocalhostname.diff of Package libxcb
Index: src/xcb_auth.c =================================================================== --- src/xcb_auth.c.orig +++ src/xcb_auth.c @@ -118,6 +118,7 @@ static Xauth *get_authptr(struct sockadd char hostnamebuf[256]; /* big enough for max hostname */ char dispbuf[40]; /* big enough to hold more than 2^64 base 10 */ int dispbuflen; + Xauth *authptr = NULL; family = FamilyLocal; /* 256 */ switch(sockname->sa_family) @@ -162,10 +163,20 @@ static Xauth *get_authptr(struct sockadd addrlen = strlen(addr); } - return XauGetBestAuthByAddr (family, + authptr = XauGetBestAuthByAddr (family, (unsigned short) addrlen, addr, (unsigned short) dispbuflen, dispbuf, N_AUTH_PROTOS, (char **)authnames, authnameslen); + // && !phostname + if ((!authptr || !authptr->data_length) && family == FamilyLocal) { + if ( (addr = getenv("XAUTHLOCALHOSTNAME")) ) { + authptr = XauGetBestAuthByAddr (family, + (unsigned short) strlen(addr), addr, + (unsigned short) dispbuflen, dispbuf, + N_AUTH_PROTOS, (char **) authnames, authnameslen); + } + } + return authptr; } #ifdef HASXDMAUTH
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor