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:
parent
52a4ccad27
commit
717129b0f2
3
pscp.c
3
pscp.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user