ssh localhost yes | true (follow up)
Damien Miller
djm at mindrot.org
Thu Apr 23 23:38:03 EST 2009
On Thu, 23 Apr 2009, Kyle wrote:
> I filed bug 6810722 with Apple and sent them a patch that makes the half-close
> fix work again without causing problems with shells (like Apple's bash that
> attempt to detect when they're being run by a remote shell daemon such as sshd
> by apparently checking standard input to see if it's a socket).
>
> On Apr 21, 2009, at 01:27, Kyle McKay wrote:
> > On Apr 20, 2009, at 23:53, Damien Miller wrote:
> > > There may be differences depending on whether
> > > Apple has modified their sshd to avoid using pipes (thwarting the
> > > half-close fix in the process), but you will need to post a full debug
> > > log from the server to tell.
> > >
> > > -d
> >
> > Yup, you're right. Apple has disabled the USE_PIPES define in their source
> > code.
>
>
> FYI, patch is below.
I think it violates some assumptions we make in channels.c to mix
socketpairs and pipes like this, but I have to check.
-d
More information about the openssh-unix-dev
mailing list