Brian Somers 887ff31f06 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
2009-08-24 17:19:45 +00:00
..
2009-08-14 18:18:51 +00:00
2007-12-19 03:31:44 +00:00
2008-08-02 00:10:02 +00:00
2008-04-05 10:26:20 +00:00
2008-07-14 13:22:09 +00:00
2008-12-01 17:39:34 +00:00
2009-01-31 07:03:36 +00:00
2009-02-15 03:21:37 +00:00
2009-03-19 20:24:30 +00:00
2007-11-07 10:53:41 +00:00
2009-04-04 15:48:09 +00:00
2007-07-03 12:46:08 +00:00
2009-07-30 09:51:04 +00:00
2009-01-30 15:28:56 +00:00
2007-11-07 10:53:41 +00:00
2009-05-31 20:59:20 +00:00
2009-04-28 20:20:13 +00:00
2009-01-06 14:23:38 +00:00
2009-05-29 22:19:45 +00:00
2007-11-07 10:53:41 +00:00
2007-02-15 02:45:14 +00:00
2007-03-16 12:36:54 +00:00
2009-06-11 18:42:31 +00:00
2009-04-08 06:51:58 +00:00
2009-05-27 19:21:29 +00:00
2008-12-29 14:59:22 +00:00
2009-07-17 21:11:08 +00:00
2009-05-27 12:18:39 +00:00