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:
4
x11fwd.c
4
x11fwd.c
@ -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 {
|
||||
|
Reference in New Issue
Block a user