From db6ad48673c00e86d5b39b101e468bcb9659b52f Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sun, 4 Jan 2009 23:28:25 +0000 Subject: [PATCH] r8305 seems to have made Unix PuTTY rather over-keen on Unix-domain sockets; unless a protocol is explicitly specified with "tcp/foovax:0", it assume a Unix-domain socket, thus not allowing a remote display on a machine other than the client. [originally from svn r8381] [r8305 == ca6fc3a4daf51166a15693feffc967bee9e3f59a] --- x11fwd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x11fwd.c b/x11fwd.c index 50300ad1..1fd4e190 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -125,8 +125,10 @@ struct X11Display *x11_setup_display(char *display, int authtype, if (protocol) disp->unixdomain = (!strcmp(protocol, "local") || !strcmp(protocol, "unix")); - else + else if (!*hostname || !strcmp(hostname, "unix")) disp->unixdomain = platform_uses_x11_unix_by_default; + else + disp->unixdomain = FALSE; if (!disp->hostname && !disp->unixdomain) disp->hostname = dupstr("localhost"); -- 2.45.2