Remove FLAG_INTERACTIVE test from "login as:" prompt. Kelly John Carney
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 19 Nov 2004 20:57:32 +0000 (20:57 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 19 Nov 2004 20:57:32 +0000 (20:57 +0000)
commitaa09f7d03c79870c460fa57602673d48e3d6aa1f
tree6a8d49d8adfc20433e56ef410b629e86fce8d7e1
parent9d219e03a6a3a04fcda1f4976c70955b67ca8776
Remove FLAG_INTERACTIVE test from "login as:" prompt. Kelly John Carney
pointed out that Plink would attempt to use a zero-length username iff
a remote command was specified (because the FLAG_INTERACTIVE test was
erroneously combined with the no-username test).

I don't think this will break non-interactive use; in the cases which
behave differently, Plink would be attempting to use the empty
username, which was almost certainly wrong, whereas now it will give a
prompt (which can be avoided with -batch as usual).

(Although perhaps we should attempt to use a local username as a guess for
the remote username, as PSCP does? I've not done this.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@4831 cda61777-01e9-0310-a592-d414129be87e
ssh.c