OpenSSH 5.1: call for testing

Damien Miller djm at mindrot.org
Mon Jul 14 11:59:07 EST 2008


On Tue, 8 Jul 2008, Corinna Vinschen wrote:

> On Jul  9 00:18, Damien Miller wrote:
> > On Mon, 7 Jul 2008, Corinna Vinschen wrote:
> > 
> > > Other than that:
> > > 
> > > - session.c, line 427:
> > > 
> > >     #define USE_PIPES
> > > 
> > >   Is that planned or just left over fomr some test?
> > 
> > No, that is planned. We now unconditionally use pipes for communicating
> > with the session subprocesses because they seem to give better semantics
> > for half-closed channels (cf. https://bugzilla.mindrot.org/b/85).
> 
> Ok.  Given that USE_PIPES is now only used in sftp.c, wouldn't it 
> be easier now to always use pipes, even in sftp.c?  That would drop
> the whole test and a bunch of conditional code.

USE_PIPES wastes an extra file descriptor where it isn't needed, so
we still prefer sockets where possible.

> > I'm not sure of a good way to determine at runtime whether IPv6 is
> > available on a platform. Perhaps these tests should be disabled in
> > portable or made non-fatal.
> 
> Ack.  Unfortunately `ssh -6' falls silently back to IPv4 instead of
> complaining on platforms not supporting IPv6.  Complaining would allow
> to use this as a test.

It shouldn't!

[djm at fuyu ssh]$ ssh -6 anoncvs.mindrot.org
ssh: Could not resolve hostname anoncvs.mindrot.org: no address associated with name
[djm at fuyu ssh]$ echo $?
255

(verified on OpenBSD and Linux)

-d


More information about the openssh-unix-dev mailing list