X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/037fb11340ce13d5392877509c514743f872e9b7..9acdecb3bad51f31823643b237491128d0046f84:/scp.c diff --git a/scp.c b/scp.c index cf79a061..a11d53cd 100644 --- a/scp.c +++ b/scp.c @@ -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);