chiark / gitweb /
ptyfwd: Don't set the output prop of stdin, nor the input props of stdout.
authorLuke Shumaker <LukeShu@sbcglobal.net>
Sat, 23 Nov 2013 09:57:43 +0000 (04:57 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Dec 2013 01:04:21 +0000 (01:04 +0000)
commit90d14d2015dda79c7b465b74dd3aaf2dfc25d43c
treef85d5dd216f2055444169302906ea9c6d896276b
parenteaf73b061604c028aa28f960870a9b46aab2f76a
ptyfwd: Don't set the output prop of stdin, nor the input props of stdout.

It was calling cfmakeraw(3) on the properties for STDIN_FILENO; cfmakeraw
sets both input and output properties.  If (and only if) stdin and stdout
are the same device is this correct.  Otherwise, we must change only the
input properties of stdin, and only the output properties of stdout.
src/shared/ptyfwd.c