Date: Mon, 24 Aug 2009 17:19:45 +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: <200908241720.n7OHK5O7099934@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2009-08-24 17:19:45 UTC FreeBSD src repository Modified files: usr.sbin/ppp exec.c exec.h main.c physical.c Log: SVN rev 196514 on 2009-08-24 17:19:45Z by brian 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. MFC after: 3 days Revision Changes Path 1.30 +298 -122 src/usr.sbin/ppp/exec.c 1.6 +2 -2 src/usr.sbin/ppp/exec.h 1.195 +4 -2 src/usr.sbin/ppp/main.c 1.62 +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?200908241720.n7OHK5O7099934>