From 717129b0f240ce4cae7bded25cffe2857f760d5e Mon Sep 17 00:00:00 2001 From: Owen Dunn Date: Wed, 15 Feb 2017 20:31:56 +0000 Subject: [PATCH] Return an error if there's an error doing pscp -ls --- pscp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.1