From: Owen Dunn Date: Wed, 15 Feb 2017 20:31:56 +0000 (+0000) Subject: Return an error if there's an error doing pscp -ls X-Git-Tag: 0.68~13 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=717129b0f240ce4cae7bded25cffe2857f760d5e;p=PuTTY.git Return an error if there's an error doing pscp -ls --- diff --git a/pscp.c b/pscp.c index 35873553..150b5492 100644 --- 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;