1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00
putty-source/unix
Simon Tatham e230751853 Remove FLAG_STDERR completely.
Originally, it controlled whether ssh.c should send terminal messages
(such as login and password prompts) to terminal.c or to stderr. But
we've had the from_backend() abstraction for ages now, which even has
an existing flag to indicate that the data is stderr rather than
stdout data; applications which set FLAG_STDERR are precisely those
that link against uxcons or wincons, so from_backend will do the
expected thing anyway with data sent to it with that flag set. So
there's no reason ssh.c can't just unconditionally pass everything
through that, and remove the special case.

FLAG_STDERR was also used by winproxy and uxproxy to decide whether to
capture standard error from a local proxy command, or whether to let
the proxy command send its diagnostics directly to the usual standard
error. On reflection, I think it's better to unconditionally capture
the proxy's stderr, for three reasons. Firstly, it means proxy
diagnostics are prefixed with 'proxy:' so that you can tell them apart
from any other stderr spew (which used to be particularly confusing if
both the main application and the proxy command were instances of
Plink); secondly, proxy diagnostics are now reliably copied to packet
log files along with all the other Event Log entries, even by
command-line tools; and thirdly, this means the option to suppress
proxy command diagnostics after the main session starts will actually
_work_ in the command-line tools, which it previously couldn't.

A more minor structure change is that copying of Event Log messages to
stderr in verbose mode is now done by wincons/uxcons, instead of
centrally in logging.c (since logging.c can now no longer check
FLAG_STDERR to decide whether to do it). The total amount of code to
do this is considerably smaller than the defensive-sounding comment in
logevent.c explaining why I did it the other way instead :-)
2018-09-21 16:46:03 +01:00
..
configure Move the Unix configure script up to the top level. 2014-02-22 18:01:32 +00:00
gtkapp.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkask.c gtkask: rework the mechanism for keyboard grabs. 2018-05-13 23:05:46 +01:00
gtkcfg.c Expose the structure tag 'dlgparam'. 2018-09-19 23:08:07 +01:00
gtkcols.c Memory leak: add a columns_finalize() method. 2017-11-26 11:36:00 +00:00
gtkcols.h New Columns method, columns_force_same_height(). 2015-08-24 19:34:23 +01:00
gtkcomm.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkcompat.h Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
gtkdlg.c Expose the structure tag 'dlgparam'. 2018-09-19 23:08:07 +01:00
gtkfont.c New memory management macro 'snew_plus'. 2018-06-06 07:22:06 +01:00
gtkfont.h Handle GTK 3.22's deprecation of gdk_cairo_create(). 2017-02-27 19:58:39 +00:00
gtkmain.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkmisc.c Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
gtkmisc.h Move more functions into the new gtkmisc.c. 2015-08-31 15:45:43 +01:00
gtkwin.c Rework handling of untrusted terminal data. 2018-09-19 23:08:28 +01:00
osxlaunch.c osxlaunch: stop setting DYLD_LIBRARY_PATH. 2017-12-20 10:04:02 +00:00
pterm.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
pterm.plist Create OS X application bundles for PuTTY and pterm. 2016-03-23 22:22:48 +00:00
putty.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
putty.plist Create OS X application bundles for PuTTY and pterm. 2016-03-23 22:22:48 +00:00
unix.h Clean up a 'void *' in a unix.h typedef. 2018-09-19 23:08:07 +01:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Build outgoing SSH agent requests in a strbuf. 2018-05-25 14:36:16 +01:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Remove FLAG_STDERR completely. 2018-09-21 16:46:03 +01:00
uxgen.c Unix PuTTYgen: switch to /dev/urandom by default. 2018-06-03 15:15:51 +01:00
uxgss.c Support GSS key exchange, for Kerberos 5 only. 2018-04-26 07:21:16 +01:00
uxmisc.c GPG key rollover. 2018-08-25 14:38:47 +01:00
uxnet.c Modernise the Socket/Plug vtable system. 2018-05-27 15:28:54 +01:00
uxnogtk.c Include the compile-time GTK version in the build info. 2017-02-15 19:32:42 +00:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxpeer.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxpgnt.c Put a layer of abstraction in front of struct ssh_channel. 2018-09-19 23:08:27 +01:00
uxplink.c Remove FLAG_STDERR completely. 2018-09-21 16:46:03 +01:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Remove FLAG_STDERR completely. 2018-09-21 16:46:03 +01:00
uxpterm.c Turn Backend into a sensible classoid. 2018-09-19 22:10:58 +01:00
uxpty.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
uxputty.c Turn Backend into a sensible classoid. 2018-09-19 22:10:58 +01:00
uxsel.c unix: make select_result() return void. 2017-05-14 16:34:48 +01:00
uxser.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
uxsftp.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
uxshare.c Replace all uses of SHA*_Bytes / MD5Update. 2018-05-25 14:36:16 +01:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c Invent structure tags for the storage.h abstractions. 2018-09-19 23:08:07 +01:00
uxucs.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
x11misc.c Ignore X11 BadMatch errors during cut buffer setup. 2016-03-20 18:30:03 +00:00
x11misc.h Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00