]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/uxplink.c
Since r7266, it's been possible to get a hostname into Default Settings; but
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 14 Sep 2009 21:26:48 +0000 (21:26 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 14 Sep 2009 21:26:48 +0000 (21:26 +0000)
commitd992932e1eb1515d4674ab806730d13b4bf9223c
tree06a46db132a5b5e2b64f4c09d6410379c168cb7f
parent68d9ae20ca4b95f5e8e1bab5d3010a45eec804bd
Since r7266, it's been possible to get a hostname into Default Settings; but
plink did not cope gracefully with this -- it was not possible to override that
hostname on the command line (attempts at doing so would be treated as part of
the remote command).
Fix this by applying the principle of r7265: if the user didn't explicitly
specify that they wanted to launch the hostname in the default (for instance
with '-load "Default Settings"', we assume they don't want to, and such a
hostname doesn't count when deciding whether to treat a non-option argument as
hostname or command.

[originally from svn r8651]
[r7265 == 5d76e00dac9220e8798e4d0f17a4069a58ae1667]
[r7266 == 856ed4ae73576ef5725f1ea4999f40907ab13589]
unix/uxplink.c
windows/winplink.c