1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Forgot to call fxp_init() in `pscp -ls' mode under SFTP.

[originally from svn r1748]
This commit is contained in:
Simon Tatham 2002-06-25 18:51:06 +00:00
parent 802aeb2d5e
commit 0605d6d3c1

6
scp.c
View File

@ -690,6 +690,12 @@ void scp_sftp_listdir(char *dirname)
int nnames, namesize;
int i;
if (!fxp_init()) {
tell_user(stderr, "unable to initialise SFTP: %s", fxp_error());
errs++;
return;
}
printf("Listing directory %s\n", dirname);
dirh = fxp_opendir(dirname);