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:
4
psftp.c
4
psftp.c
@ -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);
|
||||
|
Reference in New Issue
Block a user