]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix bug in which the SSH-only tools (pscp, psftp) did not honour a
authorSimon Tatham <anakin@pobox.com>
Wed, 27 Jul 2011 18:43:16 +0000 (18:43 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 27 Jul 2011 18:43:16 +0000 (18:43 +0000)
commitf14953d9e94c176cfc928bb719d6f613da96717e
tree0db1c32ae1f46fac1a61b2aa3f268a3ff1a44c10
parent13c993da0729ca6a93594ac50306f00e44bbe71a
Fix bug in which the SSH-only tools (pscp, psftp) did not honour a
nonstandard port number when loading a saved session.

Occurs because those tools include be_none.c which defines no entries
in backends[] at all, as a result of which settings.c doesn't
recognise the word 'ssh' in the saved session's protocol field and
instead sets the protocol to something idiotic - which _then_ means
that when pscp.c forces the protocol to PROT_SSH, it also resets the
port number as it would when overriding a saved session specifying a
protocol other than SSH.

The immediate solution is to define a new be_ssh.c citing only
ssh_backend, and include that in the SSH-only tools. However, I wonder
if a better approach (perhaps when I redesign session loading and
saving) would be not to be so clever, and just have all the tools
contain a complete list of known protocol names for purposes of
understanding what's in the saved session data, and complain if you
try to use one they don't know how to actually speak.

[originally from svn r9254]
Recipe
be_none.c
be_ssh.c [new file with mode: 0644]