mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-16 02:28:05 -05:00
Regard dir/ls on non-existent directory as an error.
sftp_cmd_ls - return an error if attempting to open the directory fails.
This commit is contained in:
parent
4b372b0877
commit
988e26068e
1
psftp.c
1
psftp.c
@ -1050,6 +1050,7 @@ int sftp_cmd_ls(struct sftp_command *cmd)
|
|||||||
|
|
||||||
if (dirh == NULL) {
|
if (dirh == NULL) {
|
||||||
printf("Unable to open %s: %s\n", dir, fxp_error());
|
printf("Unable to open %s: %s\n", dir, fxp_error());
|
||||||
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
nnames = namesize = 0;
|
nnames = namesize = 0;
|
||||||
ournames = NULL;
|
ournames = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user