mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Another wart in the command-line processing: if the user just specifies
`-load sessname', and that mentions a hostname, that should be sufficient to start a connection. [originally from svn r4369]
This commit is contained in:
parent
3b647115a5
commit
c57951cc7d
9
psftp.c
9
psftp.c
@ -2066,6 +2066,15 @@ int psftp_main(int argc, char *argv[])
|
||||
argv += i;
|
||||
back = NULL;
|
||||
|
||||
/*
|
||||
* If the loaded session provides a hostname, and a hostname has not
|
||||
* otherwise been specified, pop it in `userhost' so that
|
||||
* `psftp -load sessname' is sufficient to start a session.
|
||||
*/
|
||||
if (!userhost && cfg.host[0] != '\0') {
|
||||
userhost = dupstr(cfg.host);
|
||||
}
|
||||
|
||||
/*
|
||||
* If a user@host string has already been provided, connect to
|
||||
* it now.
|
||||
|
Loading…
Reference in New Issue
Block a user