1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-11 16:18:06 -05:00

Return an error if there's an error doing pscp -ls

This commit is contained in:
Owen Dunn 2017-02-15 20:31:56 +00:00
parent 52a4ccad27
commit 717129b0f2

3
pscp.c
View File

@ -699,7 +699,8 @@ void scp_sftp_listdir(const char *dirname)
dirh = fxp_opendir_recv(pktin, req);
if (dirh == NULL) {
printf("Unable to open %s: %s\n", dirname, fxp_error());
tell_user(stderr, "Unable to open %s: %s\n", dirname, fxp_error());
errs++;
} else {
nnames = namesize = 0;
ournames = NULL;