From 1f825c7e3007b8a7b6117590f7086e88d1a5f8fe Mon Sep 17 00:00:00 2001 From: quamrulmina Date: Wed, 24 Feb 2016 23:23:23 -0600 Subject: [PATCH] sftp client lls did not work in Windows if cygwin or linux ls not available Now lls is mapped to "dir" in Windows port which is available in Windows shell (cmd or powershell ). Cygwin or Linux emulation tools which has "ls" are not needed. --- sftp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sftp.c b/sftp.c index 7d5e0e27..cef03cbe 100644 --- a/sftp.c +++ b/sftp.c @@ -346,6 +346,10 @@ local_do_shell(const char *args) static void local_do_ls(const char *args) { +#ifdef WIN32_FIXME +#undef _PATH_LS +#define _PATH_LS "dir" +#endif if (!args || !*args) local_do_shell(_PATH_LS); else {