forwarded message from mouring at etoh.eviladmin.org

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Tue Jul 24 20:53:49 EST 2001


i really like to have the gethostname() disappear from the
x11 fwd code, and set the display to localhost:xx.yy

perhaps someone can make this work?


On Tue, Jul 24, 2001 at 11:41:40AM +0200, Robert Bihlmeyer wrote:
> Markus Friedl <markus.friedl at informatik.uni-erlangen.de> writes:
> 
> > however, i don't want to see a magic numer 401 in openssh's code.
> 
> Well, there's already a magic number in the same file (channel.c)
> Lines 2271-2273:
> 
> 	/* Just set DISPLAY to hostname:screen.display */
> 	snprintf(display, sizeof display, "%.400s:%d.%d", hostname,
> 		 display_number, screen_number);
> 
> It may be good to "#define DISPLAY_MAXHOSTLEN 400" somewhere.
> 
> > why not just define MAXHOSTNAMELEN for HURD ?
> 
> #ifndef MAXHOSTNAMELEN
> #define MAXHOSTNAMELEN 256
> #endif
> 
> somewhere in openssh's code would be fine with us. We would like the
> other alternatives better, of course.
> 
> -- 
> Robbe





More information about the openssh-unix-dev mailing list