]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Return an error if there's an error doing pscp -ls
authorOwen Dunn <owen@greenend.org.uk>
Wed, 15 Feb 2017 20:31:56 +0000 (20:31 +0000)
committerOwen Dunn <owen@greenend.org.uk>
Wed, 15 Feb 2017 20:54:10 +0000 (20:54 +0000)
pscp.c

diff --git a/pscp.c b/pscp.c
index 3587355347685815cfe4c76cfb741ed6f51fd02d..150b5492b8948b3a90b0a17895970f58ab081df2 100644 (file)
--- a/pscp.c
+++ b/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;