[Bug 3542] Allow to redirect stderr only even with tty

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Feb 20 14:54:26 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3542

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org

--- Comment #2 from Damien Miller <djm at mindrot.org> ---
How would you implement this? I don't see any clear way to do it.

You can't use pipes/socketpair for the stderr, as any process that used
stderr for ioctl() fstat() etc would not be talking to a tty. This
would be very brittle.

You couldn't use another pty, as then the process would have two pty
states to contend with and only one of these would be a controlling
pty.

IMO you're trying to force ssh around an access management system that
it doesn't fit. Maybe you should reconsider your access management
system instead?

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list