1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 02:27:32 -05:00

OS X Leopard, it turns out, has a new and exciting strategy for

addressing X displays. Update PuTTY's display-name-to-Unix-socket-
path translation code to cope with it, thus causing X forwarding to
start working again on Leopard.

[originally from svn r8020]
This commit is contained in:
Simon Tatham
2008-05-28 19:23:57 +00:00
parent b0dc24a779
commit 14d825d42f
5 changed files with 25 additions and 8 deletions

View File

@ -301,9 +301,9 @@ const char *x11_init(Socket * s, char *display, void *c, void *auth,
host[n] = '\0';
sfree(display);
if(!strcmp(host, "unix")) {
if(!strcmp(host, "unix") || host[0] == '/') {
/* use AF_UNIX sockets (doesn't make sense on all platforms) */
addr = platform_get_x11_unix_address(displaynum,
addr = platform_get_x11_unix_address(display, displaynum,
&dummy_realhost);
port = 0; /* to show we are not confused */
} else {