Date: Thu, 27 Aug 2009 07:07:38 +0000 (UTC) From: Brian Somers <brian@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.sbin/ppp exec.c exec.h main.c physical.c Message-ID: <200908270708.n7R7806p087847@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2009-08-27 07:07:38 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
usr.sbin/ppp exec.c exec.h main.c physical.c
Log:
SVN rev 196576 on 2009-08-27 07:07:38Z by brian
MFC: When ``ppp -direct'' is invoked by a program that uses pipe(2) to
create stdin and stdout, don't blindly try to use stdin as a bi-directional
channel. Instead, detect the pipe and set up a special exec handler
that indirects write() calls through stdout.
This fixes the problem where ``set device "!ssh -e none host ppp
-direct label"'' no longer works with an openssh-5.2 server side as
that version of openssh ignores the USE_PIPES config setting and
*always* uses pipes (rather than socketpair) for stdin/stdout channels.
Approved by: re (kib)
Revision Changes Path
1.29.22.2 +298 -122 src/usr.sbin/ppp/exec.c
1.5.58.2 +1 -1 src/usr.sbin/ppp/exec.h
1.194.2.2 +4 -2 src/usr.sbin/ppp/main.c
1.61.2.2 +1 -0 src/usr.sbin/ppp/physical.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908270708.n7R7806p087847>
