X11 Forwarding and Red Hat
Matthew C. Weigel
weigel+ at pitt.edu
Mon May 22 03:35:36 EST 2000
I just got around to upgrading th 2.1.0p2-1, and X11 forwarding is working
great. Thanks all.
On Thu, 18 May 2000, Markus Friedl wrote:
> does this help?
>
> Index: session.c
> ===================================================================
> RCS file: /home/markus/cvs/ssh/session.c,v
> retrieving revision 1.12
> diff -u -r1.12 session.c
> --- session.c 2000/05/03 18:03:07 1.12
> +++ session.c 2000/05/18 19:18:53
> @@ -949,13 +953,20 @@
> else {
> /* Add authority data to .Xauthority if appropriate. */
> if (auth_proto != NULL && auth_data != NULL) {
> - if (debug_flag)
> + char *screen = strchr(display, ':');
> + if (debug_flag) {
> fprintf(stderr, "Running %.100s add %.100s %.100s %.100s\n",
> - XAUTH_PATH, display, auth_proto, auth_data);
> -
> + XAUTH_PATH, display, auth_proto, auth_data);
> + if (screen != NULL)
> + fprintf(stderr, "Adding %.*s/unix%s %s %s\n",
> + screen-display, display, screen, auth_proto, auth_data);
> + }
> f = popen(XAUTH_PATH " -q -", "w");
> if (f) {
> fprintf(f, "add %s %s %s\n", display, auth_proto, auth_data);
> + if (screen != NULL)
> + fprintf(f, "add %.*s/unix%s %s %s\n",
> + screen-display, display, screen, auth_proto, auth_data);
> pclose(f);
> } else
> fprintf(stderr, "Could not run %s -q -\n", XAUTH_PATH);
>
Matthew Weigel
Programmer/Sysadmin/Student
weigel+ at pitt.edu
More information about the openssh-unix-dev
mailing list