]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
In GUI PuTTY, log standard error from local proxy commands.
authorSimon Tatham <anakin@pobox.com>
Sun, 22 Nov 2015 11:50:37 +0000 (11:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 22 Nov 2015 15:11:00 +0000 (15:11 +0000)
commit297efff30350ddffbc77dd6da4269db87103789c
tree8619e756b4d832b274995b95bddd4c977af3b324
parent3d4d4004e83f19310d90e6341dbf363a47382ec2
In GUI PuTTY, log standard error from local proxy commands.

On both Unix and Windows, we now redirect the local proxy command's
standard error into a third pipe; data received from that pipe is
broken up at newlines and logged in the Event Log. So if the proxy
command emits any error messages in the course of failing to connect
to something, you now have a fighting chance of finding out what went
wrong.

This feature is disabled in command-line tools like PSFTP and Plink,
on the basis that in that situation it seems more likely that the user
would expect standard-error output to go to the ordinary standard
error in the ordinary way. Only GUI PuTTY catches it and logs it like
this, because it either doesn't have a standard error at all (on
Windows) or is likely to be pointing it at some completely unhelpful
session log file (under X).
be_misc.c
network.h
unix/uxproxy.c
windows/winhsock.c
windows/winnpc.c
windows/winnps.c
windows/winproxy.c