]> granicus.if.org Git - neomutt/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)
commite5b24b0a51ad602909ae3157512970b9a524c769
treea5880cfda97ab01655a881f95a9b27a9619092a5
parentfd92e05724c1b68b033570d91236d39afe7fe038
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