Skip to content

Commit 1f825c7

Browse files
committed
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.
1 parent 7181f2b commit 1f825c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sftp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ local_do_shell(const char *args)
346346
static void
347347
local_do_ls(const char *args)
348348
{
349+
#ifdef WIN32_FIXME
350+
#undef _PATH_LS
351+
#define _PATH_LS "dir"
352+
#endif
349353
if (!args || !*args)
350354
local_do_shell(_PATH_LS);
351355
else {

0 commit comments

Comments
 (0)