#3726: tunnel mode closes child's stderr
----------------------+----------------------
Reporter: lotheac | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version: 1.5.23
Resolution: fixed | Keywords:
----------------------+----------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"b319ec2dc93a4ea6261daa8218f44fa961135e69"
6870:b319ec2dc93a]:
{{{
#!CommitTicketReference repository=""
revision="b319ec2dc93a4ea6261daa8218f44fa961135e69"
Don't close stderr when opening a tunnel. (closes #3726)
Instead of closing stderr, redirect it to /dev/null in
tunnel_socket_open(). Otherwise a program can accidentally open a
file into handle 2 and then unknowingly use that when trying to print
to stderr.
Thanks to lotheac for the original patch, which I just modified
slightly.
}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3726#comment:8>
Mutt <http://www.mutt.org/>
The Mutt mail user agent