1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Jacob points out that I introduced a bug in PSFTP when I did the

timing shakeup: just running `psftp' caused the net/stdin select
loop (on both Unix and Windows) to get confused at the lack of any
network connection and give up immediately. Should now be fixed.

[originally from svn r4993]
This commit is contained in:
Simon Tatham
2004-12-16 19:15:38 +00:00
parent 69303f2d3e
commit f1585f8f46
4 changed files with 20 additions and 10 deletions

View File

@ -1866,7 +1866,7 @@ struct sftp_command *sftp_getcmd(FILE *fp, int mode, int modeflags)
printf("psftp> ");
line = fgetline(fp);
} else {
line = ssh_sftp_get_cmdline("psftp> ");
line = ssh_sftp_get_cmdline("psftp> ", back == NULL);
}
if (!line || !*line) {
@ -2004,6 +2004,8 @@ void do_sftp_cleanup()
sftp_recvdata(&ch, 1);
back->free(backhandle);
sftp_cleanup_request();
back = NULL;
backhandle = NULL;
}
if (pwd) {
sfree(pwd);