From owner-cvs-src-old@FreeBSD.ORG Thu Aug 27 07:08:00 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2AC1106568F for ; Thu, 27 Aug 2009 07:08:00 +0000 (UTC) (envelope-from brian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D06ED8FC2F for ; Thu, 27 Aug 2009 07:08:00 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7R780la087848 for ; Thu, 27 Aug 2009 07:08:00 GMT (envelope-from brian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7R7806p087847 for cvs-src-old@freebsd.org; Thu, 27 Aug 2009 07:08:00 GMT (envelope-from brian@repoman.freebsd.org) Message-Id: <200908270708.n7R7806p087847@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to brian@repoman.freebsd.org using -f From: Brian Somers Date: Thu, 27 Aug 2009 07:07:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/usr.sbin/ppp exec.c exec.h main.c physical.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 07:08:01 -0000 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