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.
This commit is contained in:
quamrulmina 2016-02-24 23:23:23 -06:00
parent 7181f2b3d3
commit 1f825c7e30

4
sftp.c
View File

@ -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 {