mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Return an error if there's an error doing pscp -ls
This commit is contained in:
3
pscp.c
3
pscp.c
@ -699,7 +699,8 @@ void scp_sftp_listdir(const char *dirname)
|
|||||||
dirh = fxp_opendir_recv(pktin, req);
|
dirh = fxp_opendir_recv(pktin, req);
|
||||||
|
|
||||||
if (dirh == NULL) {
|
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 {
|
} else {
|
||||||
nnames = namesize = 0;
|
nnames = namesize = 0;
|
||||||
ournames = NULL;
|
ournames = NULL;
|
||||||
|
Reference in New Issue
Block a user