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

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Feb 20 19:24:03 AEDT 2023


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

--- Comment #3 from cadeaudeelie at gmail.com ---
The original stackexchange post link to another question with
suggestions: https://unix.stackexchange.com/q/226638/246754

--forwardfd=10:3

The default stderr is untouched. We have one tty but we explicitly
request another fd we can use for the launched application. Either in
interactive shell or in command mode. If the launched process hardcode
fd3 we can still change in the CLI the number we choose.

I am unsure but newfd in dup2 can be arbitrary value so we could have
the desired fd unless already taken for other things. It will even
allow people who know stderr won't be used with ioctl to override
destination of fd2.

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


More information about the openssh-bugs mailing list