]> granicus.if.org Git - mutt/commit
Don't close stderr when opening a tunnel. (closes #3726)
authorKevin McCarthy <kevin@8t8.us>
Mon, 21 Nov 2016 00:19:17 +0000 (16:19 -0800)
committerKevin McCarthy <kevin@8t8.us>
Mon, 21 Nov 2016 00:19:17 +0000 (16:19 -0800)
commitde209a86acafe40d6c10df69cb08e0c6f003eb21
treea5880cfda97ab01655a881f95a9b27a9619092a5
parentd746e02aa40d68d0a3ae6671f233ea6d0d7d8ac5
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.
mutt_tunnel.c