mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 20:12:48 -05:00
Start logging earlier in PSCP and PSFTP.
We were missing log messages about the start of the network connection.
This commit is contained in:
5
psftp.c
5
psftp.c
@ -2837,6 +2837,9 @@ static int psftp_connect(char *userhost, char *user, int portnumber)
|
||||
|
||||
back = &ssh_backend;
|
||||
|
||||
logctx = log_init(NULL, conf);
|
||||
console_provide_logctx(logctx);
|
||||
|
||||
err = back->init(NULL, &backhandle, conf,
|
||||
conf_get_str(conf, CONF_host),
|
||||
conf_get_int(conf, CONF_port),
|
||||
@ -2846,9 +2849,7 @@ static int psftp_connect(char *userhost, char *user, int portnumber)
|
||||
fprintf(stderr, "ssh_init: %s\n", err);
|
||||
return 1;
|
||||
}
|
||||
logctx = log_init(NULL, conf);
|
||||
back->provide_logctx(backhandle, logctx);
|
||||
console_provide_logctx(logctx);
|
||||
while (!back->sendok(backhandle)) {
|
||||
if (back->exitcode(backhandle) >= 0)
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user