Skip to content

Commit

Permalink
sftp client lls did not work in Windows if cygwin or linux ls not ava…
Browse files Browse the repository at this point in the history
…ilable

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.
  • Loading branch information
quamrulmina committed Feb 25, 2016
1 parent 7181f2b commit 1f825c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1f825c7

Please sign in to comment.