Setting of DISPLAY Variable - Patch

Frank-M Mohr frank-m.mohr at db.com
Thu Aug 9 02:24:08 EST 2001


Hi

thanks for the answers

I'm using the following Patch now
(Works for AIX 4.3.3,  I'll check other AIX Versions, Solaris and Linux later)

configure --with-cppflags=-DLOCALHOST_IN_DISPLAY

activates the change



*** channels.c  Wed Jun 13 21:18:05 2001
--- ../openssh-2.9p2.aix/channels.c     Wed Aug  8 14:55:24 2001
***************
*** 2268,2276 ****
--- 2268,2282 ----
                         display_number, screen_number);
        }
  #else /* IPADDR_IN_DISPLAY */
+ #ifdef LOCALHOST_IN_DISPLAY
+       /* Just set DISPLAY to localhost:screen.display */
+       snprintf(display, sizeof display, "%.400s:%d.%d", "localhost",
+                display_number, screen_number);
+ #else
        /* Just set DISPLAY to hostname:screen.display */
        snprintf(display, sizeof display, "%.400s:%d.%d", hostname,
                 display_number, screen_number);
+ #endif /* LOCALHOST_IN_DISPLAY */
  #endif /* IPADDR_IN_DISPLAY */

        /* Allocate a channel for each socket. */



--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.





More information about the openssh-unix-dev mailing list