Commit 76b9f2d9 authored by Reinhard Tartler's avatar Reinhard Tartler

Imported nxauth-3.2.0-1.tar.gz

Summary: Imported nxauth-3.2.0-1.tar.gz Keywords: Imported nxauth-3.2.0-1.tar.gz into Git repository
parent 9610c1e7
ChangeLog:
nxauth-3.2.0-1
- Opened the 3.2.0 branch based on nxauth-3.1.0-2.
nxauth-3.1.0-2
- Added support for launchd socket.
nxauth-3.1.0-1
- Opened the 3.1.0 branch based on nxauth-3.0.0-6.
......
......@@ -503,6 +503,20 @@ get_displayname_auth(char *displayname, Xauth *auth)
if (cp && strncmp (cp, "/unix:", 6) == 0)
prelen = (cp - displayname);
#ifdef __APPLE__
/*
* FIXME: This is an attempt to get the right
* cookie, because no one can grant that the
* X server is running on the display number
* reported in the launchd display name.
*/
if (strncmp (displayname, "/tmp/launch", 11) == 0)
displayname = strrchr(displayname, '/') + 1;
#endif
if (!parse_displayname (displayname + ((prelen > 0) ? prelen + 1 : 0),
&family, &host, &dpynum, &scrnum, &rest)) {
return False;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment