mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Forgot to call fxp_init() in `pscp -ls' mode under SFTP.
[originally from svn r1748]
This commit is contained in:
parent
802aeb2d5e
commit
0605d6d3c1
6
scp.c
6
scp.c
@ -690,6 +690,12 @@ void scp_sftp_listdir(char *dirname)
|
|||||||
int nnames, namesize;
|
int nnames, namesize;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!fxp_init()) {
|
||||||
|
tell_user(stderr, "unable to initialise SFTP: %s", fxp_error());
|
||||||
|
errs++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
printf("Listing directory %s\n", dirname);
|
printf("Listing directory %s\n", dirname);
|
||||||
|
|
||||||
dirh = fxp_opendir(dirname);
|
dirh = fxp_opendir(dirname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user